Changeset 44415
- Timestamp:
- 01/07/2019 12:53:22 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-walker-page.php
r42875 r44415 149 149 */ 150 150 $css_classes = implode( ' ', apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page ) ); 151 $css_classes = $css_classes ? ' class="' . esc_attr( $css_classes ) . '"' : ''; 151 152 152 153 if ( '' === $page->post_title ) { … … 187 188 188 189 $output .= $indent . sprintf( 189 '<li class="%s"><a%s>%s%s%s</a>',190 '<li%s><a%s>%s%s%s</a>', 190 191 $css_classes, 191 192 $attributes,
Note: See TracChangeset
for help on using the changeset viewer.