Make WordPress Core

Ticket #47224: 47224.diff

File 47224.diff, 1.3 KB (added by riddhiehta02, 7 years ago)

Added description for "show_split_view" in the file

  • src/wp-includes/pluggable.php

    diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
    index b398e5fe54..6a07dbca42 100644
    a b if ( ! function_exists( 'wp_text_diff' ) ) : 
    26902690         *      title.
    26912691         * 'title_right' : Default is an empty string. Change the HTML to the right of
    26922692         *      the title.
     2693         * 'show_split_view' : Default is an empty string. Show the HTML in split view to the right of
     2694         *      the title and Left of the title.
    26932695         *
    26942696         * @since 2.6.0
    26952697         *
    if ( ! function_exists( 'wp_text_diff' ) ) : 
    26992701         *
    27002702         * @param string       $left_string  "old" (left) version of string
    27012703         * @param string       $right_string "new" (right) version of string
    2702          * @param string|array $args         Optional. Change 'title', 'title_left', and 'title_right' defaults.
     2704         * @param string|array $args         Optional. Change 'title', 'title_left', title_right and 'show_split_view' defaults.
    27032705         * @return string Empty string if strings are equivalent or HTML with differences.
    27042706         */
    27052707        function wp_text_diff( $left_string, $right_string, $args = null ) {
    if ( ! function_exists( 'wp_text_diff' ) ) : 
    27072709                        'title'       => '',
    27082710                        'title_left'  => '',
    27092711                        'title_right' => '',
     2712                        'show_split_view' => '',
    27102713                );
    27112714                $args     = wp_parse_args( $args, $defaults );
    27122715