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:
parent
01429c0362
commit
17828647fe
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue