Changeset 1435
- Timestamp:
- 08/25/08 11:21:21 (3 months ago)
- Files:
-
- branches/2.6/wp-admin/wpmu-options.php (modified) (1 diff)
- trunk/wp-admin/wpmu-options.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.6/wp-admin/wpmu-options.php
r1403 r1435 183 183 <?php 184 184 $menu_perms = get_site_option( "menu_items" ); 185 $menu_items = a rray('plugins');185 $menu_items = apply_filters( 'mu_menu_items', array('plugins' => __('Plugins')) ); 186 186 foreach ( (array) $menu_items as $key => $val ) { 187 $checked = ( $menu_perms[$val] == '1' ) ? ' checked="checked"' : ''; 188 echo "<tr><th scope='row'>" . ucfirst( $val ) . "</th><td><input type='checkbox' name='menu_items[" . $val . "]' value='1'" . $checked . " /></td></tr>"; 187 echo "<tr><th scope='row'>" . wp_specialchars($val) . "</th><td><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . (( $menu_perms[$key] == '1' ) ? ' checked="checked"' : '') . " /></td></tr>"; 189 188 } 190 189 ?> trunk/wp-admin/wpmu-options.php
r1403 r1435 183 183 <?php 184 184 $menu_perms = get_site_option( "menu_items" ); 185 $menu_items = a rray('plugins');185 $menu_items = apply_filters( 'mu_menu_items', array('plugins' => __('Plugins')) ); 186 186 foreach ( (array) $menu_items as $key => $val ) { 187 $checked = ( $menu_perms[$val] == '1' ) ? ' checked="checked"' : ''; 188 echo "<tr><th scope='row'>" . ucfirst( $val ) . "</th><td><input type='checkbox' name='menu_items[" . $val . "]' value='1'" . $checked . " /></td></tr>"; 187 echo "<tr><th scope='row'>" . wp_specialchars($val) . "</th><td><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . (( $menu_perms[$key] == '1' ) ? ' checked="checked"' : '') . " /></td></tr>"; 189 188 } 190 189 ?>
