Changeset 53030 for branches/5.9/src/wp-includes/blocks/navigation.php
- Timestamp:
- 03/30/2022 11:28:30 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9/src/wp-includes/blocks/navigation.php
r52402 r53030 514 514 ); 515 515 516 $modal_unique_id = uniqid();516 $modal_unique_id = wp_unique_id( 'modal-' ); 517 517 518 518 // Determine whether or not navigation elements should be wrapped in the markup required to make it responsive, … … 539 539 540 540 $responsive_container_markup = sprintf( 541 '<button aria-haspopup="true" aria-label="%3$s" class="%6$s" data-micromodal-trigger=" modal-%1$s"><svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img" aria-hidden="true" focusable="false"><rect x="4" y="7.5" width="16" height="1.5" /><rect x="4" y="15" width="16" height="1.5" /></svg></button>542 <div class="%5$s" style="%7$s" id=" modal-%1$s">541 '<button aria-haspopup="true" aria-label="%3$s" class="%6$s" data-micromodal-trigger="%1$s"><svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img" aria-hidden="true" focusable="false"><rect x="4" y="7.5" width="16" height="1.5" /><rect x="4" y="15" width="16" height="1.5" /></svg></button> 542 <div class="%5$s" style="%7$s" id="%1$s"> 543 543 <div class="wp-block-navigation__responsive-close" tabindex="-1" data-micromodal-close> 544 544 <div class="wp-block-navigation__responsive-dialog" aria-label="%8$s"> 545 545 <button aria-label="%4$s" data-micromodal-close class="wp-block-navigation__responsive-container-close"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" role="img" aria-hidden="true" focusable="false"><path d="M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"></path></svg></button> 546 <div class="wp-block-navigation__responsive-container-content" id=" modal-%1$s-content">546 <div class="wp-block-navigation__responsive-container-content" id="%1$s-content"> 547 547 %2$s 548 548 </div>
Note: See TracChangeset
for help on using the changeset viewer.