Changeset 45778 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 08/10/2019 10:27:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r45715 r45778 2670 2670 * are equivalent, then an empty string will be returned. 2671 2671 * 2672 * The arguments supported and can be changed are listed below.2673 *2674 * 'title' : Default is an empty string. Titles the diff in a manner compatible2675 * with the output.2676 * 'title_left' : Default is an empty string. Change the HTML to the left of the2677 * title.2678 * 'title_right' : Default is an empty string. Change the HTML to the right of2679 * the title.2680 *2681 2672 * @since 2.6.0 2682 2673 * … … 2687 2678 * @param string $left_string "old" (left) version of string 2688 2679 * @param string $right_string "new" (right) version of string 2689 * @param string|array $args Optional. Change 'title', 'title_left', and 'title_right' defaults. 2680 * @param string|array $args { 2681 * Associative array of options to pass to WP_Text_Diff_Renderer_Table(). 2682 * 2683 * @type string $title Titles the diff in a manner compatible 2684 * with the output. Default empty. 2685 * @type string $title_left Change the HTML to the left of the title. 2686 * Default empty. 2687 * @type string $title_right Change the HTML to the right of the title. 2688 * Default empty. 2689 * @type bool $show_split_view True for split view (two columns), false for 2690 * un-split view (single column). Default true. 2691 * } 2690 2692 * @return string Empty string if strings are equivalent or HTML with differences. 2691 2693 */ 2692 2694 function wp_text_diff( $left_string, $right_string, $args = null ) { 2693 2695 $defaults = array( 2694 'title' => '', 2695 'title_left' => '', 2696 'title_right' => '', 2696 'title' => '', 2697 'title_left' => '', 2698 'title_right' => '', 2699 'show_split_view' => true, 2697 2700 ); 2698 2701 $args = wp_parse_args( $args, $defaults );
Note: See TracChangeset
for help on using the changeset viewer.