Changeset 42343 for trunk/src/wp-includes/class-walker-page.php
- Timestamp:
- 11/30/2017 11:09:33 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-walker-page.php
r42201 r42343 36 36 * @todo Decouple this. 37 37 */ 38 public $db_fields = array( 'parent' => 'post_parent', 'id' => 'ID' ); 38 public $db_fields = array( 39 'parent' => 'post_parent', 40 'id' => 'ID', 41 ); 39 42 40 43 /** … … 58 61 $n = ''; 59 62 } 60 $indent = str_repeat( $t, $depth );63 $indent = str_repeat( $t, $depth ); 61 64 $output .= "{$n}{$indent}<ul class='children'>{$n}"; 62 65 } … … 82 85 $n = ''; 83 86 } 84 $indent = str_repeat( $t, $depth );87 $indent = str_repeat( $t, $depth ); 85 88 $output .= "{$indent}</ul>{$n}"; 86 89 } … … 128 131 $css_class[] = 'current_page_parent'; 129 132 } 130 } elseif ( $page->ID == get_option( 'page_for_posts') ) {133 } elseif ( $page->ID == get_option( 'page_for_posts' ) ) { 131 134 $css_class[] = 'current_page_parent'; 132 135 } … … 154 157 155 158 $args['link_before'] = empty( $args['link_before'] ) ? '' : $args['link_before']; 156 $args['link_after'] = empty( $args['link_after'] ) ? '' : $args['link_after'];157 158 $atts = array();159 $args['link_after'] = empty( $args['link_after'] ) ? '' : $args['link_after']; 160 161 $atts = array(); 159 162 $atts['href'] = get_permalink( $page->ID ); 160 163 … … 179 182 foreach ( $atts as $attr => $value ) { 180 183 if ( ! empty( $value ) ) { 181 $value = esc_attr( $value );184 $value = esc_attr( $value ); 182 185 $attributes .= ' ' . $attr . '="' . $value . '"'; 183 186 } … … 202 205 203 206 $date_format = empty( $args['date_format'] ) ? '' : $args['date_format']; 204 $output .= " ". mysql2date( $date_format, $time );207 $output .= ' ' . mysql2date( $date_format, $time ); 205 208 } 206 209 }
Note: See TracChangeset
for help on using the changeset viewer.