Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Remove markup from post list table excerpts since now escaped #146

Merged
merged 1 commit into from
Jul 26, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions php/class-post-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,13 @@ function suspend_kses_for_snapshot_revision_restore() {
public function filter_snapshot_excerpt( $excerpt, $post = null ) {
$post = get_post( $post );
if ( static::SLUG === $post->post_type ) {
$excerpt = '<ol>';
$settings = array();
foreach ( $this->get_post_content( $post ) as $setting_id => $setting_params ) {
if ( ! isset( $setting_params['dirty'] ) || true === $setting_params['dirty'] ) {
$excerpt .= sprintf( '<li><code>%s</code></li>', esc_attr( $setting_id ) );
$settings[] = $setting_id;
}
}
$excerpt .= '</ol>';
$excerpt = join( ', ', array_map( 'esc_html', $settings ) );
}
return $excerpt;
}
Expand Down