Changeset 45835 for branches/5.2/src/wp-admin/network/settings.php
- Timestamp:
- 08/19/2019 04:14:38 AM (5 years ago)
- Location:
- branches/5.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2
-
branches/5.2/src/wp-admin/network/settings.php
r45834 r45835 453 453 * @param string[] $admin_menus Associative array of the menu items available. 454 454 */ 455 $menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) ); 456 $fieldset_end = ''; 457 if ( count( (array) $menu_items ) > 1 ) { 458 echo '<fieldset><legend class="screen-reader-text">' . __( 'Enable menus' ) . '</legend>'; 459 $fieldset_end = '</fieldset>'; 460 } 455 $menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) ); 456 457 echo '<fieldset><legend class="screen-reader-text">' . __( 'Enable menus' ) . '</legend>'; 458 461 459 foreach ( (array) $menu_items as $key => $val ) { 462 460 echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[ $key ] ) ? checked( $menu_perms[ $key ], '1', false ) : '' ) . ' /> ' . esc_html( $val ) . '</label><br/>'; 463 461 } 464 echo $fieldset_end; 462 463 echo '</fieldset>'; 465 464 ?> 466 465 </td>
Note: See TracChangeset
for help on using the changeset viewer.