Changeset 46240 for trunk/src/wp-admin/includes/nav-menu.php
- Timestamp:
- 09/23/2019 12:41:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/nav-menu.php
r45932 r46240 594 594 $checkbox_items = walk_nav_menu_tree( array_map( 'wp_setup_nav_menu_item', $posts ), 0, (object) $args ); 595 595 596 if ( 'all' == $current_tab && ! empty( $_REQUEST['selectall'] ) ) {597 $checkbox_items = preg_replace( '/(type=(.)checkbox(\2))/', '$1 checked=$2checked$2', $checkbox_items );598 599 }600 601 596 echo $checkbox_items; 602 597 ?> … … 609 604 </div><!-- /.tabs-panel --> 610 605 611 <p class="button-controls wp-clearfix"> 612 <span class="list-controls"> 613 <a href=" 614 <?php 615 echo esc_url( 616 add_query_arg( 617 array( 618 $post_type_name . '-tab' => 'all', 619 'selectall' => 1, 620 ), 621 remove_query_arg( $removed_args ) 622 ) 623 ); 624 ?> 625 #posttype-<?php echo $post_type_name; ?>" class="select-all aria-button-if-js"><?php _e( 'Select All' ); ?></a> 606 <p class="button-controls wp-clearfix" data-items-type="posttype-<?php echo esc_attr( $post_type_name ); ?>"> 607 <span class="list-controls hide-if-no-js"> 608 <input type="checkbox" id="<?php echo esc_attr( $post_type_name . '-tab' ); ?>" class="select-all" /> 609 <label for="<?php echo esc_attr( $post_type_name . '-tab' ); ?>"><?php _e( 'Select All' ); ?></label> 626 610 </span> 627 611 … … 849 833 </div><!-- /.tabs-panel --> 850 834 851 <p class="button-controls wp-clearfix"> 852 <span class="list-controls"> 853 <a href=" 854 <?php 855 echo esc_url( 856 add_query_arg( 857 array( 858 $taxonomy_name . '-tab' => 'all', 859 'selectall' => 1, 860 ), 861 remove_query_arg( $removed_args ) 862 ) 863 ); 864 ?> 865 #taxonomy-<?php echo $taxonomy_name; ?>" class="select-all aria-button-if-js"><?php _e( 'Select All' ); ?></a> 835 <p class="button-controls wp-clearfix" data-items-type="taxonomy-<?php echo esc_attr( $taxonomy_name ); ?>"> 836 <span class="list-controls hide-if-no-js"> 837 <input type="checkbox" id="<?php echo esc_attr( $taxonomy_name . '-tab' ); ?>" class="select-all" /> 838 <label for="<?php echo esc_attr( $taxonomy_name . '-tab' ); ?>"><?php _e( 'Select All' ); ?></label> 866 839 </span> 867 840
Note: See TracChangeset
for help on using the changeset viewer.