Make WordPress Core

Changeset 30497


Ignore:
Timestamp:
11/21/2014 03:49:43 AM (12 years ago)
Author:
DrewAPicture
Message:

Minor syntactical adjustments to the inline documentation for the revision_text_diff_options hook.

Converts backticked-inline-code to inline @see tags (for the full benefit of Code Reference automagical behavior).

See [30396]. See #24908.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/revision.php

    r30396 r30497  
    7777                        'show_split_view' => false
    7878                );
     79
    7980                /**
    8081                 * Filter revisions text diff options.
    8182                 *
    82                  * Filter the options passed to `wp_text_diff()` when viewing a post revision.
     83                 * Filter the options passed to {@see wp_text_diff()} when viewing a post revision.
    8384                 *
    8485                 * @since 4.1.0
    8586                 *
    8687                 * @param array   $args {
    87                  *     Associative array of options to pass to `wp_text_diff()`.
     88                 *     Associative array of options to pass to {@see wp_text_diff()}.
    8889                 *
    8990                 *     @type bool $show_split_view False for split view (two columns), true for
    … …  
    9596                 */
    9697                $args = apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to );
     98
    9799                $diff = wp_text_diff( $content_from, $content_to, $args );
    98100
  • trunk/src/wp-includes/wp-diff.php

    r30396 r30497  
    195195                        if ( $encode ) {
    196196                                $processed_line = htmlspecialchars( $line );
     197
    197198                                /** This filter is documented in wp-includes/wp-diff.php */
    198199                                $line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'deleted' );
    … …  
    221222                        if ( $encode ) {
    222223                                $processed_line = htmlspecialchars( $line );
     224
    223225                                /** This filter is documented in wp-includes/wp-diff.php */
    224226                                $line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'unchanged' );
Note: See TracChangeset for help on using the changeset viewer.