Changeset 4480
- Timestamp:
- 11/18/2006 07:31:29 AM (19 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 33 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin.php
r4478 r4480 83 83 include(ABSPATH . "wp-admin/import/$importer.php"); 84 84 85 $parent_file = 'edit.php'; 85 86 $submenu_file = 'import.php'; 87 $title = __('Import'); 86 88 87 89 if (! isset($_GET['noheader'])) -
trunk/wp-admin/categories.php
r4478 r4480 1 1 <?php 2 2 require_once('admin.php'); 3 4 $title = __('Categories'); 5 $parent_file = 'edit.php'; 3 6 4 7 wp_reset_vars(array('action', 'cat')); -
trunk/wp-admin/comment.php
r4478 r4480 2 2 require_once('admin.php'); 3 3 4 $parent_file = 'edit.php'; 4 5 $submenu_file = 'edit-comments.php'; 5 6 -
trunk/wp-admin/edit-comments.php
r4479 r4480 2 2 require_once('admin.php'); 3 3 4 $title = __('Edit Comments'); 5 $parent_file = 'edit-comments.php'; 4 6 wp_enqueue_script( 'admin-comments' ); 5 7 -
trunk/wp-admin/edit-pages.php
r4478 r4480 1 1 <?php 2 2 require_once('admin.php'); 3 $title = __('Pages'); 4 $parent_file = 'edit.php'; 3 5 wp_enqueue_script( 'listman' ); 4 6 require_once('admin-header.php'); -
trunk/wp-admin/edit.php
r4478 r4480 2 2 require_once('admin.php'); 3 3 4 $title = __('Posts'); 5 $parent_file = 'edit.php'; 4 6 wp_enqueue_script( 1 == $_GET['c'] ? 'admin-comments' : 'listman' ); 5 7 require_once('admin-header.php'); -
trunk/wp-admin/export.php
r4478 r4480 1 1 <?php 2 2 require_once ('admin.php'); 3 $title = __('Export'); 4 $parent_file = 'edit.php'; 3 5 4 6 if ( isset( $_GET['download'] ) ) -
trunk/wp-admin/import.php
r4478 r4480 1 1 <?php 2 2 require_once ('admin.php'); 3 $title = __('Import'); 4 $parent_file = 'edit.php'; 3 5 require_once ('admin-header.php'); 4 6 ?> -
trunk/wp-admin/index.php
r4478 r4480 1 1 <?php 2 2 require_once('admin.php'); 3 $title = __('Dashboard'); 4 $parent_file = 'index.php'; 3 5 require_once('admin-header.php'); 4 6 require_once (ABSPATH . WPINC . '/rss.php'); -
trunk/wp-admin/link-add.php
r4478 r4480 2 2 require_once('admin.php'); 3 3 4 $title = __('Add Bookmark'); 4 5 $this_file = 'link-manager.php'; 6 $parent_file = 'link-manager.php'; 7 5 8 6 9 wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image', -
trunk/wp-admin/link-import.php
r4478 r4480 4 4 5 5 require_once('admin.php'); 6 $parent_file = 'link-manager.php'; 7 $title = __('Import Blogroll'); 6 8 $this_file = 'link-import.php'; 7 9 -
trunk/wp-admin/link-manager.php
r4478 r4480 7 7 require_once ('admin.php'); 8 8 9 $title = __('Manage Bookmarks'); 9 10 $this_file = $parent_file = 'link-manager.php'; 10 11 wp_enqueue_script( 'listman' ); -
trunk/wp-admin/menu-header.php
r4478 r4480 4 4 $self = preg_replace('|^.*/plugins/|i', '', $self); 5 5 6 foreach ( $submenu as $parent => $subpages ) { 7 foreach ( $subpages as $page ) { 8 // 0 menu title, 1 cap, 2 file or slug, 3 page title 9 if ( $self == $page[2] ) 10 $parent_file = $parent; 11 } 12 } 6 get_admin_page_parent(); 13 7 14 8 foreach ($menu as $item) { -
trunk/wp-admin/menu.php
r4478 r4480 5 5 // The minimum level the user needs to access the item: between 0 and 10 6 6 // The URL of the item's file 7 // Slug 8 $menu[0] = array(__('Dashboard'), 'read', 'index.php', 'home'); 7 $menu[0] = array(__('Dashboard'), 'read', 'index.php'); 9 8 10 // So when people switch between write and manage they go to the appropiate page/post mode they were on11 9 if ( strstr($_SERVER['REQUEST_URI'], 'edit-pages.php') ) 12 $menu[5] = array(__('Write'), 'edit_pages', 'page-new.php' , 'write');10 $menu[5] = array(__('Write'), 'edit_pages', 'page-new.php'); 13 11 else 14 $menu[5] = array(__('Write'), 'edit_posts', 'post-new.php', 'write'); 15 12 $menu[5] = array(__('Write'), 'edit_posts', 'post-new.php'); 16 13 if ( strstr($_SERVER['REQUEST_URI'], 'page-new.php') ) 17 $menu[10] = array(__('Manage'), 'edit_pages', 'edit-pages.php' , 'manage');14 $menu[10] = array(__('Manage'), 'edit_pages', 'edit-pages.php'); 18 15 else 19 $menu[10] = array(__('Manage'), 'edit_posts', 'edit.php' , 'manage');16 $menu[10] = array(__('Manage'), 'edit_posts', 'edit.php'); 20 17 21 $menu[15] = array(__('Comments'), 'edit_posts', 'edit-comments.php', 'comments'); 22 $menu[20] = array(__('Blogroll'), 'manage_links', 'link-manager.php', 'blogroll'); 23 $menu[25] = array(__('Presentation'), 'switch_themes', 'themes.php', 'themes'); 24 $menu[30] = array(__('Plugins'), 'activate_plugins', 'plugins.php', 'plugins'); 25 18 $menu[15] = array(__('Comments'), 'edit_posts', 'edit-comments.php'); 19 $menu[20] = array(__('Blogroll'), 'manage_links', 'link-manager.php'); 20 $menu[25] = array(__('Presentation'), 'switch_themes', 'themes.php'); 21 $menu[30] = array(__('Plugins'), 'activate_plugins', 'plugins.php'); 26 22 if ( current_user_can('edit_users') ) 27 $menu[35] = array(__('Users'), 'edit_users', 'users.php' , 'users');23 $menu[35] = array(__('Users'), 'edit_users', 'users.php'); 28 24 else 29 $menu[35] = array(__('Profile'), 'read', 'profile.php', 'profile'); 30 31 $menu[40] = array(__('Options'), 'manage_options', 'options-general.php', 'options'); 25 $menu[35] = array(__('Profile'), 'read', 'profile.php'); 26 $menu[40] = array(__('Options'), 'manage_options', 'options-general.php'); 32 27 33 28 … … 75 70 76 71 // Create list of page plugin hook names. 77 foreach ( $menu as $menu_page )72 foreach ($menu as $menu_page) { 78 73 $admin_page_hooks[$menu_page[2]] = sanitize_title($menu_page[0]); 74 } 79 75 80 76 $_wp_submenu_nopriv = array(); … … 133 129 } 134 130 135 unset( $id);131 unset($id); 136 132 137 uksort( $menu, 'strnatcasecmp' );133 uksort($menu, "strnatcasecmp"); // make it all pretty 138 134 139 if ( !user_can_access_admin_page() )135 if (! user_can_access_admin_page()) { 140 136 wp_die( __('You do not have sufficient permissions to access this page.') ); 137 } 141 138 142 139 ?> -
trunk/wp-admin/moderation.php
r4478 r4480 2 2 require_once('admin.php'); 3 3 4 $title = __('Moderate comments'); 5 $parent_file = 'edit-comments.php'; 4 6 wp_enqueue_script( 'admin-comments' ); 5 7 -
trunk/wp-admin/options-discussion.php
r4478 r4480 1 1 <?php 2 2 require_once('admin.php'); 3 4 $title = __('Discussion Options'); 5 $parent_file = 'options-general.php'; 6 3 7 include('admin-header.php'); 4 8 ?> -
trunk/wp-admin/options-general.php
r4478 r4480 1 1 <?php 2 2 require_once('./admin.php'); 3 4 $title = __('General Options'); 5 $parent_file = 'options-general.php'; 6 3 7 include('./admin-header.php'); 4 8 ?> -
trunk/wp-admin/options-misc.php
r4478 r4480 1 1 <?php 2 2 require_once('admin.php'); 3 4 $title = __('Miscellaneous Options'); 5 $parent_file = 'options-general.php'; 6 3 7 include('admin-header.php'); 4 8 -
trunk/wp-admin/options-permalink.php
r4478 r4480 1 1 <?php 2 2 require_once('admin.php'); 3 4 $title = __('Permalink Options'); 5 $parent_file = 'options-general.php'; 6 3 7 function add_js() { 4 8 ?> -
trunk/wp-admin/options-privacy.php
r4478 r4480 1 1 <?php 2 2 require_once('./admin.php'); 3 4 $title = __('Privacy Options'); 5 $parent_file = 'options-general.php'; 6 3 7 include('./admin-header.php'); 4 8 ?> -
trunk/wp-admin/options-reading.php
r4478 r4480 1 1 <?php 2 2 require_once('admin.php'); 3 4 $title = __('Reading Options'); 5 $parent_file = 'options-general.php'; 6 3 7 include('admin-header.php'); 4 8 ?> -
trunk/wp-admin/options-writing.php
r4478 r4480 1 1 <?php 2 2 require_once('admin.php'); 3 4 $title = __('Writing Options'); 5 $parent_file = 'options-general.php'; 6 3 7 include('admin-header.php'); 4 8 ?> -
trunk/wp-admin/options.php
r4478 r4480 1 1 <?php 2 2 require_once('admin.php'); 3 4 $title = __('Options'); 5 $this_file = 'options.php'; 6 $parent_file = 'options-general.php'; 3 7 4 8 wp_reset_vars(array('action')); -
trunk/wp-admin/page-new.php
r4478 r4480 1 1 <?php 2 2 require_once('admin.php'); 3 $title = __('New Page'); 4 $parent_file = 'post-new.php'; 3 5 $editing = true; 4 6 wp_enqueue_script('prototype'); -
trunk/wp-admin/plugin-editor.php
r4478 r4480 1 1 <?php 2 2 require_once('admin.php'); 3 4 $title = __("Edit Plugins"); 5 $parent_file = 'plugins.php'; 6 3 7 wp_reset_vars(array('action', 'redirect', 'profile', 'error', 'warning', 'a', 'file')); 4 8 -
trunk/wp-admin/plugins.php
r4478 r4480 30 30 } 31 31 32 $title = __('Manage Plugins'); 32 33 require_once('admin-header.php'); 33 34 -
trunk/wp-admin/post-new.php
r4478 r4480 1 1 <?php 2 2 require_once('admin.php'); 3 $title = __('Create New Post'); 4 $parent_file = 'post-new.php'; 3 5 $editing = true; 4 6 wp_enqueue_script('prototype'); -
trunk/wp-admin/profile.php
r4478 r4480 1 1 <?php 2 2 require_once('admin.php'); 3 4 $title = __('Profile'); 5 6 if ( current_user_can('edit_users') ) 7 $parent_file = 'users.php'; 8 else 9 $parent_file = 'profile.php'; 3 10 include_once('admin-header.php'); 4 11 $profileuser = get_user_to_edit($user_ID); -
trunk/wp-admin/templates.php
r4478 r4480 1 1 <?php 2 2 require_once('admin.php'); 3 $title = __('Template & File Editing'); 4 $parent_file = 'edit.php'; 5 3 6 wp_reset_vars(array('action', 'redirect', 'profile', 'error', 'warning', 'a', 'file')); 4 7 -
trunk/wp-admin/theme-editor.php
r4478 r4480 1 1 <?php 2 2 require_once('admin.php'); 3 4 $title = __("Edit Themes"); 5 $parent_file = 'themes.php'; 6 3 7 wp_reset_vars(array('action', 'redirect', 'profile', 'error', 'warning', 'a', 'file', 'theme')); 4 8 -
trunk/wp-admin/themes.php
r4478 r4480 19 19 } 20 20 21 $title = __('Manage Themes'); 22 $parent_file = 'themes.php'; 21 23 require_once('admin-header.php'); 22 24 ?> -
trunk/wp-admin/user-edit.php
r4478 r4480 2 2 require_once('admin.php'); 3 3 4 $title = __('Edit User'); 5 if ( current_user_can('edit_users') ) 6 $parent_file = 'users.php'; 7 else 8 $parent_file = 'profile.php'; 4 9 $submenu_file = 'users.php'; 5 10 -
trunk/wp-admin/users.php
r4478 r4480 2 2 require_once('admin.php'); 3 3 require_once( ABSPATH . WPINC . '/registration.php'); 4 5 $title = __('Users'); 6 if ( current_user_can('edit_users') ) 7 $parent_file = 'users.php'; 8 else 9 $parent_file = 'profile.php'; 4 10 5 11 $action = $_REQUEST['action'];
Note: See TracChangeset
for help on using the changeset viewer.