Changeset 40537
- Timestamp:
- 04/23/2017 07:15:47 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-walker-nav-menu.php
r38575 r40537 59 59 } 60 60 $indent = str_repeat( $t, $depth ); 61 $output .= "{$n}{$indent}<ul class=\"sub-menu\">{$n}"; 61 62 /** 63 * Filters the CSS class(es) applied to a menu list element. 64 * 65 * @since 4.8.0 66 * 67 * @param array $classes The CSS classes that are applied to the menu `<ul>` element. 68 * @param stdClass $args An object of `wp_nav_menu()` arguments. 69 * @param int $depth Depth of menu item. Used for padding. 70 */ 71 72 $classes = array( 'sub-menu' ); 73 $classes = apply_filters( 'nav_menu_submenu_css_class', $classes, $args, $depth ); 74 $class_names = join( ' ', $classes ); 75 76 $output .= "{$n}{$indent}<ul class='" . esc_attr( $class_names ) . "'>{$n}"; 62 77 } 63 78
Note: See TracChangeset
for help on using the changeset viewer.