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

git-svn-id: http://svn.automattic.com/wordpress/trunk@13154 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-02-14 14:08:36 +00:00
parent 01429c0362
commit 17828647fe
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ if (isset($_GET['updated'])) {
$menu_perms = get_site_option( 'menu_items' ); $menu_perms = get_site_option( 'menu_items' );
$menu_items = apply_filters( 'mu_menu_items', array('plugins' => __('Plugins')) ); $menu_items = apply_filters( 'mu_menu_items', array('plugins' => __('Plugins')) );
foreach ( (array) $menu_items as $key => $val ) { foreach ( (array) $menu_items as $key => $val ) {
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>"; 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>";
} }
?> ?>
</table> </table>