* @param string null The context of whether the current revision is the old
* or the new one. Values are 'to' or 'from'.
*/
- $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_$field", $compare_from->$field, $field, $compare_from, 'from' ) : '';
+ $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' ) : '';
/** This filter is documented in wp-admin/includes/revision.php */
- $content_to = apply_filters( "_wp_post_revision_field_$field", $compare_to->$field, $field, $compare_to, 'to' );
+ $content_to = apply_filters( "_wp_post_revision_field_{$field}", $compare_to->$field, $field, $compare_to, 'to' );
$args = array(
'show_split_view' => true
);
/**
- * Filter revisions text diff options.
+ * Filters revisions text diff options.
*
- * Filter the options passed to {@see wp_text_diff()} when viewing a post revision.
+ * Filters the options passed to wp_text_diff() when viewing a post revision.
*
* @since 4.1.0
*
* @param array $args {
- * Associative array of options to pass to {@see wp_text_diff()}.
+ * Associative array of options to pass to wp_text_diff().
*
* @type bool $show_split_view True for split view (two columns), false for
* un-split view (single column). Default true.
}
/**
- * Filter the fields displayed in the post revision diff UI.
+ * Filters the fields displayed in the post revision diff UI.
*
* @since 4.1.0
*
);
/**
- * Filter the array of revisions used on the revisions screen.
+ * Filters the array of revisions used on the revisions screen.
*
* @since 4.4.0
*
}
#>
/>
- <?php esc_attr_e( 'Compare any two revisions' ); ?>
+ <?php esc_html_e( 'Compare any two revisions' ); ?>
</label>
</div>
</script>
<# }); #>
</div>
</script><?php
-}
\ No newline at end of file
+}