diff --git a/src/js/_enqueues/lib/nav-menu.js b/src/js/_enqueues/lib/nav-menu.js
index cd62acc..10d7598 100644
a
|
b
|
|
1098 | 1098 | items.removeAttr('checked'); |
1099 | 1099 | else |
1100 | 1100 | items.prop('checked', true); |
| 1101 | var toggle = target.data( 'toggle' ); |
| 1102 | target.data( 'toggle', target.text() ); |
| 1103 | target.text( toggle ); |
1101 | 1104 | return false; |
1102 | 1105 | } |
1103 | 1106 | } else if ( target.hasClass('submit-add-to-menu') ) { |
diff --git a/src/wp-admin/includes/nav-menu.php b/src/wp-admin/includes/nav-menu.php
index 0539e7f..8090650 100644
a
|
b
|
function wp_nav_menu_item_post_type_meta_box( $object, $box ) { |
620 | 620 | ) |
621 | 621 | ); |
622 | 622 | ?> |
623 | | #posttype-<?php echo $post_type_name; ?>" class="select-all aria-button-if-js"><?php _e( 'Select All' ); ?></a> |
| 623 | #posttype-<?php echo $post_type_name; ?>" class="select-all aria-button-if-js" data-toggle="<?php _e( 'Deselect All' ); ?>"><?php _e( 'Select All' ); ?></a> |
624 | 624 | </span> |
625 | 625 | |
626 | 626 | <span class="add-to-menu"> |
… |
… |
function wp_nav_menu_item_taxonomy_meta_box( $object, $box ) { |
857 | 857 | ) |
858 | 858 | ); |
859 | 859 | ?> |
860 | | #taxonomy-<?php echo $taxonomy_name; ?>" class="select-all aria-button-if-js"><?php _e( 'Select All' ); ?></a> |
| 860 | #taxonomy-<?php echo $taxonomy_name; ?>" class="select-all aria-button-if-js" data-toggle="<?php _e( 'Deselect All' ); ?>"><?php _e( 'Select All' ); ?></a> |
861 | 861 | </span> |
862 | 862 | |
863 | 863 | <span class="add-to-menu"> |