Changeset 3112
- Timestamp:
- 11/16/2005 11:32:38 PM (19 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 deleted
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r3103 r3112 1277 1277 1278 1278 function add_options_page($page_title, $menu_title, $access_level, $file, $function = '') { 1279 return add_submenu_page('options- personal.php', $page_title, $menu_title, $access_level, $file, $function);1279 return add_submenu_page('options-general.php', $page_title, $menu_title, $access_level, $file, $function); 1280 1280 } 1281 1281 -
trunk/wp-admin/admin-header.php
r3015 r3112 261 261 require(ABSPATH . '/wp-admin/menu-header.php'); 262 262 263 if ( $parent_file == 'options- personal.php' ) {263 if ( $parent_file == 'options-general.php' ) { 264 264 require(ABSPATH . '/wp-admin/options-head.php'); 265 265 } -
trunk/wp-admin/menu.php
r2800 r3112 15 15 else 16 16 $menu[35] = array(__('Profile'), 'read', 'profile.php'); 17 $menu[40] = array(__('Options'), 'read', 'options- personal.php');17 $menu[40] = array(__('Options'), 'read', 'options-general.php'); 18 18 $menu[45] = array(__('Import'), 'import', 'import.php'); 19 19 … … 40 40 $submenu['profile.php'][10] = array(__('Authors & Users'), 'edit_users', 'users.php'); 41 41 42 $submenu['options-personal.php'][5] = array(__('Personal'), 'read', 'options-personal.php'); 43 $submenu['options-personal.php'][10] = array(__('General'), 'manage_options', 'options-general.php'); 44 $submenu['options-personal.php'][15] = array(__('Writing'), 'manage_options', 'options-writing.php'); 45 $submenu['options-personal.php'][20] = array(__('Reading'), 'manage_options', 'options-reading.php'); 46 $submenu['options-personal.php'][25] = array(__('Discussion'), 'manage_options', 'options-discussion.php'); 47 $submenu['options-personal.php'][30] = array(__('Permalinks'), 'manage_options', 'options-permalink.php'); 48 $submenu['options-personal.php'][35] = array(__('Miscellaneous'), 'manage_options', 'options-misc.php'); 42 $submenu['options-general.php'][10] = array(__('General'), 'manage_options', 'options-general.php'); 43 $submenu['options-general.php'][15] = array(__('Writing'), 'manage_options', 'options-writing.php'); 44 $submenu['options-general.php'][20] = array(__('Reading'), 'manage_options', 'options-reading.php'); 45 $submenu['options-general.php'][25] = array(__('Discussion'), 'manage_options', 'options-discussion.php'); 46 $submenu['options-general.php'][30] = array(__('Permalinks'), 'manage_options', 'options-permalink.php'); 47 $submenu['options-general.php'][35] = array(__('Miscellaneous'), 'manage_options', 'options-misc.php'); 49 48 50 49 $submenu['plugins.php'][5] = array(__('Plugins'), 'activate_plugins', 'plugins.php'); -
trunk/wp-admin/options-discussion.php
r3054 r3112 3 3 4 4 $title = __('Discussion Options'); 5 $parent_file = 'options- personal.php';5 $parent_file = 'options-general.php'; 6 6 7 7 include('admin-header.php'); -
trunk/wp-admin/options-general.php
r3058 r3112 3 3 4 4 $title = __('General Options'); 5 $parent_file = 'options- personal.php';5 $parent_file = 'options-general.php'; 6 6 7 7 include('admin-header.php'); -
trunk/wp-admin/options-misc.php
r3054 r3112 3 3 4 4 $title = __('Miscellaneous Options'); 5 $parent_file = 'options- personal.php';5 $parent_file = 'options-general.php'; 6 6 7 7 include('admin-header.php'); -
trunk/wp-admin/options-permalink.php
r3029 r3112 3 3 4 4 $title = __('Permalink Options'); 5 $parent_file = 'options- personal.php';5 $parent_file = 'options-general.php'; 6 6 7 7 function add_js() { -
trunk/wp-admin/options-reading.php
r3054 r3112 3 3 4 4 $title = __('Reading Options'); 5 $parent_file = 'options- personal.php';5 $parent_file = 'options-general.php'; 6 6 7 7 include('admin-header.php'); -
trunk/wp-admin/options-writing.php
r3054 r3112 3 3 4 4 $title = __('Writing Options'); 5 $parent_file = 'options- personal.php';5 $parent_file = 'options-general.php'; 6 6 7 7 include('admin-header.php'); -
trunk/wp-admin/profile-update.php
r2889 r3112 4 4 5 5 check_admin_referer(); 6 7 if ( !$_POST ) 8 die( __('No post?') ); 6 9 7 10 $errors = edit_user($user_ID); … … 14 17 } 15 18 19 if ( !isset( $_POST['rich_editing'] ) ) 20 $_POST['rich_editing'] = 'false'; 21 update_user_option( $current_user->id, 'rich_editing', $_POST['rich_editing'], true ); 22 23 do_action('personal_options_update'); 24 16 25 if ( 'profile' == $_POST['from'] ) 17 26 $to = 'profile.php?updated=true'; -
trunk/wp-admin/profile.php
r3102 r3112 106 106 107 107 <br clear="all" /> 108 109 <h3><?php _e('Personal Options'); ?></h3> 110 111 <p><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="true" <?php checked('true', get_user_option('rich_editing')); ?> /> 112 <?php _e('Use the visual rich editor when writing') ?></label></p> 113 114 <?php do_action('profile_personal_options'); ?> 115 108 116 <table width="99%" border="0" cellspacing="2" cellpadding="3" class="editform"> 109 117 <?php
Note: See TracChangeset
for help on using the changeset viewer.