X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..4ea0dca21bda49aab5ccb91ec12bb4ef5924ed3e:/wp-admin/includes/revision.php diff --git a/wp-admin/includes/revision.php b/wp-admin/includes/revision.php index eb03e609..9edf52d2 100644 --- a/wp-admin/includes/revision.php +++ b/wp-admin/includes/revision.php @@ -55,7 +55,7 @@ function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) { $return = array(); - foreach ( _wp_post_revision_fields() as $field => $name ) { + foreach ( _wp_post_revision_fields( $post ) as $field => $name ) { /** * Contextually filter a post revision field. * @@ -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() { } #> /> - + @@ -400,4 +400,4 @@ function wp_print_revision_templates() { <# }); #>