mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
38dfd6e69a
commit
5aa7cbcf37
@ -61,17 +61,17 @@ $menu[15] = array( __('Utilities'), 'read', 'users.php' ); // placeholder - shou
|
|||||||
$submenu['users.php'][25] = array( __('Users'), 'edit_users', 'users.php' );
|
$submenu['users.php'][25] = array( __('Users'), 'edit_users', 'users.php' );
|
||||||
$submenu['users.php'][30] = array( __('Import'), 'import', 'import.php' );
|
$submenu['users.php'][30] = array( __('Import'), 'import', 'import.php' );
|
||||||
$submenu['users.php'][35] = array( __('Export'), 'import', 'export.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';
|
|
||||||
$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' );
|
|
||||||
$submenu['options-general.php'][25] = array( __('Discussion'), 'manage_options', 'options-discussion.php' );
|
|
||||||
$submenu['options-general.php'][30] = array( __('Privacy'), 'manage_options', 'options-privacy.php' );
|
|
||||||
$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[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');
|
||||||
|
$submenu['options-general.php'][25] = array(__('Discussion'), 'manage_options', 'options-discussion.php');
|
||||||
|
$submenu['options-general.php'][30] = array(__('Privacy'), 'manage_options', 'options-privacy.php');
|
||||||
|
$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[25] = array( __('Plugins'), 'activate_plugins', 'plugins.php' );
|
||||||
$submenu['plugins.php'][5] = 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' );
|
$submenu['plugins.php'][10] = array( __('Plugin Editor'), 'edit_plugins', 'plugin-editor.php' );
|
||||||
|
|
||||||
|
@ -16,9 +16,6 @@ include('admin-header.php');
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<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>
|
<h2><?php _e('Discussion Settings') ?></h2>
|
||||||
<form method="post" action="options.php">
|
<form method="post" action="options.php">
|
||||||
<?php wp_nonce_field('update-options') ?>
|
<?php wp_nonce_field('update-options') ?>
|
||||||
|
@ -10,14 +10,12 @@
|
|||||||
require_once('./admin.php');
|
require_once('./admin.php');
|
||||||
|
|
||||||
$title = __('General Settings');
|
$title = __('General Settings');
|
||||||
|
$parent_file = 'options-general.php';
|
||||||
|
|
||||||
include('./admin-header.php');
|
include('./admin-header.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<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>
|
<h2><?php _e('General Settings') ?></h2>
|
||||||
<form method="post" action="options.php">
|
<form method="post" action="options.php">
|
||||||
<?php wp_nonce_field('update-options') ?>
|
<?php wp_nonce_field('update-options') ?>
|
||||||
|
@ -17,9 +17,6 @@ include('admin-header.php');
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<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>
|
<h2><?php _e('Miscellaneous Settings') ?></h2>
|
||||||
<form method="post" action="options.php">
|
<form method="post" action="options.php">
|
||||||
<?php wp_nonce_field('update-options') ?>
|
<?php wp_nonce_field('update-options') ?>
|
||||||
|
@ -123,9 +123,6 @@ else
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<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>
|
<h2><?php _e('Customize Permalink Structure') ?></h2>
|
||||||
<form name="form" action="options-permalink.php" method="post">
|
<form name="form" action="options-permalink.php" method="post">
|
||||||
<?php wp_nonce_field('update-permalink') ?>
|
<?php wp_nonce_field('update-permalink') ?>
|
||||||
|
@ -16,9 +16,6 @@ include('./admin-header.php');
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<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>
|
<h2><?php _e('Privacy Settings') ?></h2>
|
||||||
<form method="post" action="options.php">
|
<form method="post" action="options.php">
|
||||||
<?php wp_nonce_field('update-options') ?>
|
<?php wp_nonce_field('update-options') ?>
|
||||||
|
@ -16,9 +16,6 @@ include('admin-header.php');
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<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>
|
<h2><?php _e('Reading Settings') ?></h2>
|
||||||
<form name="form1" method="post" action="options.php">
|
<form name="form1" method="post" action="options.php">
|
||||||
<?php wp_nonce_field('update-options') ?>
|
<?php wp_nonce_field('update-options') ?>
|
||||||
|
@ -16,9 +16,6 @@ include('admin-header.php');
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<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>
|
<h2><?php _e('Writing Settings') ?></h2>
|
||||||
<form method="post" action="options.php">
|
<form method="post" action="options.php">
|
||||||
<?php wp_nonce_field('update-options') ?>
|
<?php wp_nonce_field('update-options') ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user