Move Setting menu to top-level. see #7552

git-svn-id: http://svn.automattic.com/wordpress/trunk@8705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-08-21 23:18:51 +00:00
parent 38dfd6e69a
commit 5aa7cbcf37
8 changed files with 11 additions and 31 deletions

View File

@ -61,8 +61,8 @@ $menu[15] = array( __('Utilities'), 'read', 'users.php' ); // placeholder - shou
$submenu['users.php'][25] = array( __('Users'), 'edit_users', 'users.php' );
$submenu['users.php'][30] = array( __('Import'), 'import', 'import.php' );
$submenu['users.php'][35] = array( __('Export'), 'import', 'export.php' );
$submenu['users.php'][40] = array( __('Settings'), 'manage_options', 'options-general.php' );
$_wp_real_parent_file['options-general.php'] = 'users.php';
$menu[20] = array(__('Settings'), 'manage_options', 'options-general.php');
$submenu['options-general.php'][10] = array(__('General'), 'manage_options', 'options-general.php');
$submenu['options-general.php'][15] = array(__('Writing'), 'manage_options', 'options-writing.php');
$submenu['options-general.php'][20] = array(__('Reading'), 'manage_options', 'options-reading.php');
@ -71,7 +71,7 @@ $menu[15] = array( __('Utilities'), 'read', 'users.php' ); // placeholder - shou
$submenu['options-general.php'][35] = array(__('Permalinks'), 'manage_options', 'options-permalink.php');
$submenu['options-general.php'][40] = array(__('Miscellaneous'), 'manage_options', 'options-misc.php');
$menu[20] = array( __('Plugins'), 'activate_plugins', 'plugins.php' );
$menu[25] = array( __('Plugins'), 'activate_plugins', 'plugins.php' );
$submenu['plugins.php'][5] = array( __('Plugins'), 'activate_plugins', 'plugins.php' );
$submenu['plugins.php'][10] = array( __('Plugin Editor'), 'edit_plugins', 'plugin-editor.php' );

View File

@ -16,9 +16,6 @@ include('admin-header.php');
?>
<div class="wrap">
<ul class="wp-menu">
<?php $array = array(); _wp_menu_output( $submenu['options-general.php'], $array ); unset($array); ?>
</ul>
<h2><?php _e('Discussion Settings') ?></h2>
<form method="post" action="options.php">
<?php wp_nonce_field('update-options') ?>

View File

@ -10,14 +10,12 @@
require_once('./admin.php');
$title = __('General Settings');
$parent_file = 'options-general.php';
include('./admin-header.php');
?>
<div class="wrap">
<ul class="wp-menu">
<?php $array = array(); _wp_menu_output( $submenu['options-general.php'], $array ); unset($array); ?>
</ul>
<h2><?php _e('General Settings') ?></h2>
<form method="post" action="options.php">
<?php wp_nonce_field('update-options') ?>

View File

@ -17,9 +17,6 @@ include('admin-header.php');
?>
<div class="wrap">
<ul class="wp-menu">
<?php $array = array(); _wp_menu_output( $submenu['options-general.php'], $array ); unset($array); ?>
</ul>
<h2><?php _e('Miscellaneous Settings') ?></h2>
<form method="post" action="options.php">
<?php wp_nonce_field('update-options') ?>

View File

@ -123,9 +123,6 @@ else
<?php endif; ?>
<div class="wrap">
<ul class="wp-menu">
<?php $array = array(); _wp_menu_output( $submenu['options-general.php'], $array ); unset($array); ?>
</ul>
<h2><?php _e('Customize Permalink Structure') ?></h2>
<form name="form" action="options-permalink.php" method="post">
<?php wp_nonce_field('update-permalink') ?>

View File

@ -16,9 +16,6 @@ include('./admin-header.php');
?>
<div class="wrap">
<ul class="wp-menu">
<?php $array = array(); _wp_menu_output( $submenu['options-general.php'], $array ); unset($array); ?>
</ul>
<h2><?php _e('Privacy Settings') ?></h2>
<form method="post" action="options.php">
<?php wp_nonce_field('update-options') ?>

View File

@ -16,9 +16,6 @@ include('admin-header.php');
?>
<div class="wrap">
<ul class="wp-menu">
<?php $array = array(); _wp_menu_output( $submenu['options-general.php'], $array ); unset($array); ?>
</ul>
<h2><?php _e('Reading Settings') ?></h2>
<form name="form1" method="post" action="options.php">
<?php wp_nonce_field('update-options') ?>

View File

@ -16,9 +16,6 @@ include('admin-header.php');
?>
<div class="wrap">
<ul class="wp-menu">
<?php $array = array(); _wp_menu_output( $submenu['options-general.php'], $array ); unset($array); ?>
</ul>
<h2><?php _e('Writing Settings') ?></h2>
<form method="post" action="options.php">
<?php wp_nonce_field('update-options') ?>