]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/revision.php
WordPress 4.7
[autoinstalls/wordpress.git] / wp-admin / includes / revision.php
index 3f038f129475dbe5e6b7ea92f0b5f1545eb75d12..9edf52d2a08c94a6d43a6c9d706f49a5d9dc1fcf 100644 (file)
@@ -70,24 +70,24 @@ function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) {
                 * @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.
@@ -119,7 +119,7 @@ function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) {
        }
 
        /**
-        * Filter the fields displayed in the post revision diff UI.
+        * Filters the fields displayed in the post revision diff UI.
         *
         * @since 4.1.0
         *
@@ -213,7 +213,7 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null
                );
 
                /**
-                * Filter the array of revisions used on the revisions screen.
+                * Filters the array of revisions used on the revisions screen.
                 *
                 * @since 4.4.0
                 *
@@ -340,7 +340,7 @@ function wp_print_revision_templates() {
                                }
                                #>
                                />
-                               <?php esc_attr_e( 'Compare any two revisions' ); ?>
+                               <?php esc_html_e( 'Compare any two revisions' ); ?>
                        </label>
                </div>
        </script>
@@ -400,4 +400,4 @@ function wp_print_revision_templates() {
                <# }); #>
                </div>
        </script><?php
-}
\ No newline at end of file
+}