Ticket #39564: 39564.2.patch
File 39564.2.patch, 1.5 KB (added by , 8 years ago) |
---|
-
src/wp-includes/class-walker-page.php
53 53 * Default empty array. 54 54 */ 55 55 public function start_lvl( &$output, $depth = 0, $args = array() ) { 56 if ( 'preserve' === $args['item_spacing'] ) {56 if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) { 57 57 $t = "\t"; 58 58 $n = "\n"; 59 59 } else { … … 78 78 * Default empty array. 79 79 */ 80 80 public function end_lvl( &$output, $depth = 0, $args = array() ) { 81 if ( 'preserve' === $args['item_spacing'] ) {81 if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) { 82 82 $t = "\t"; 83 83 $n = "\n"; 84 84 } else { … … 103 103 * @param int $current_page Optional. Page ID. Default 0. 104 104 */ 105 105 public function start_el( &$output, $page, $depth = 0, $args = array(), $current_page = 0 ) { 106 if ( 'preserve' === $args['item_spacing'] ) {106 if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) { 107 107 $t = "\t"; 108 108 $n = "\n"; 109 109 } else { … … 196 196 * @param array $args Optional. Array of arguments. Default empty array. 197 197 */ 198 198 public function end_el( &$output, $page, $depth = 0, $args = array() ) { 199 if ( 'preserve' === $args['item_spacing'] ) {199 if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) { 200 200 $t = "\t"; 201 201 $n = "\n"; 202 202 } else {