WordPress.org

Make WordPress Core

Changeset 13154


Ignore:
Timestamp:
02/14/2010 02:08:36 PM (10 years ago)
Author:
nacin
Message:

Fix notice in ms-options.php. See #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-options.php

    r13106 r13154  
    281281            $menu_items = apply_filters( 'mu_menu_items', array('plugins' => __('Plugins')) );
    282282            foreach ( (array) $menu_items as $key => $val ) {
    283                 echo "<tr><th scope='row'>" . esc_html($val) . "</th><td><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . checked($menu_perms[$key], '1', false) . " /></td></tr>";
     283                echo "<tr><th scope='row'>" . esc_html($val) . "</th><td><input type='checkbox' name='menu_items[" . $key . "]' value='1'" .  ( isset( $menu_perms[ $key ] ) ? checked( $menu_perms[ $key ], '1', false ) : '' ) . " /></td></tr>";
    284284            }
    285285            ?>
Note: See TracChangeset for help on using the changeset viewer.