WordPress.org

Make WordPress Core

Ticket #9023: 9023_minor_change.diff

File 9023_minor_change.diff, 1.9 KB (added by hailin, 9 years ago)

minor change

  • C:/xampp/htdocs/wordpress_trunk/wp-includes/comment-template.php

     
    12851285        $comment_depth = 1;
    12861286
    12871287        $defaults = array('walker' => null, 'max_depth' => '', 'style' => 'ul', 'callback' => null, 'end-callback' => null, 'type' => 'all',
    1288                 'page' => '', 'per_page' => '', 'avatar_size' => 32, 'reverse_top_level' => null, 'reverse_children' => '');
     1288                'page' => '', 'per_page' => '', 'avatar_size' => 32, 'reverse_top_level' => null );
    12891289
    12901290        $r = wp_parse_args( $args, $defaults );
    12911291
  • C:/xampp/htdocs/wordpress_trunk/wp-includes/classes.php

     
    952952         *
    953953         * @package WordPress
    954954         * @since 2.7
    955          * @param $max_depth = 0  means display all levels; $max_depth > 0  specifies the number of display levels.
     955         * @param $max_depth = -1 means flat display; $max_depth = 0  means display all levels; $max_depth > 0  specifies the number of display levels.
    956956         * @param $page_num the specific page number, beginning with 1.
    957957         * @return XHTML of the specified page of elements
    958958         */
     
    10281028                        $end = $total_top;
    10291029
    10301030                if ( !empty($args[0]['reverse_top_level']) ) {
     1031                       
    10311032                        $top_level_elements = array_reverse( $top_level_elements );
    10321033                        $oldstart = $start;
    10331034                        $start = $total_top - $end;
    10341035                        $end = $total_top - $oldstart;
    1035                 }
    1036                 if ( !empty($args[0]['reverse_children']) ) {
     1036                       
    10371037                        foreach ( $children_elements as $parent => $children )
    10381038                                $children_elements[$parent] = array_reverse( $children );
    10391039                }