: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* screen in their individual sites' dashboards.
* @param string[] $admin_menus Associative array of the menu items available.
$menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) );
<h2><?php _e( 'Menu Settings' ); ?></h2>
<table id="menu" class="form-table">
<th scope="row"><?php _e( 'Enable administration menus' ); ?></th>
echo '<fieldset><legend class="screen-reader-text">' .
/* translators: Hidden accessibility text. */
foreach ( (array) $menu_items as $key => $val ) {
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/>';
* Fires at the end of the Network Settings form, before the submit button.
do_action( 'wpmu_options' );
<?php submit_button(); ?>
<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>