- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentynineteen/inc/template-functions.php
r46827 r47122 239 239 function twentynineteen_nav_menu_link_attributes( $atts, $item, $args, $depth ) { 240 240 241 // Add [aria-haspopup] and [aria-expanded] to menu items that have children 241 // Add [aria-haspopup] and [aria-expanded] to menu items that have children. 242 242 $item_has_children = in_array( 'menu-item-has-children', $item->classes ); 243 243 if ( $item_has_children ) { … … 275 275 ); 276 276 277 // replace opening <a> with <button>277 // Replace opening <a> with <button>. 278 278 $output = preg_replace( 279 279 '/<a\s.*?>/', … … 283 283 ); 284 284 285 // replace closing </a> with </button>285 // Replace closing </a> with </button>. 286 286 $output = preg_replace( 287 287 '#</a>#i',
Note: See TracChangeset
for help on using the changeset viewer.