WordPress.org

Make WordPress Core

Changeset 11044


Ignore:
Timestamp:
04/22/2009 01:47:20 AM (9 years ago)
Author:
ryan
Message:

When on create page, default favorite actions to the correspoding manage page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r11043 r11044  
    31903190function favorite_actions( $screen = null ) {
    31913191    switch ( $screen ) {
     3192        case 'post-new.php':
     3193            $default_action = array('edit.php' => array(__('Edit Posts'), 'edit_posts'));
     3194            break;
    31923195        case 'edit-pages.php':
    31933196            $default_action = array('page-new.php' => array(__('New Page'), 'edit_pages'));
    31943197            break;
     3198        case 'page-new.php':
     3199            $default_action = array('edit-pages.php' => array(__('Edit Pages'), 'edit_pages'));
     3200            break;
    31953201        case 'upload.php':
    31963202            $default_action = array('media-new.php' => array(__('New Media'), 'upload_files'));
    31973203            break;
     3204        case 'media-new.php':
     3205            $default_action = array('upload.php' => array(__('Edit Media'), 'upload_files'));
     3206            break;
    31983207        case 'link-manager.php':
    31993208            $default_action = array('link-add.php' => array(__('New Link'), 'manage_links'));
    32003209            break;
     3210        case 'link-add.php':
     3211            $default_action = array('link-manager.php' => array(__('Edit Links'), 'manage_links'));
     3212            break;
    32013213        case 'users.php':
    32023214            $default_action = array('user-new.php' => array(__('New User'), 'create_users'));
    32033215            break;
     3216        case 'user-new.php':
     3217            $default_action = array('users.php' => array(__('Edit Users'), 'edit_users'));
     3218            break;
    32043219        case 'plugins.php':
    32053220            $default_action = array('plugin-install.php' => array(__('Install Plugins'), 'install_plugins'));
    32063221            break;
     3222        case 'plugin-install.php':
     3223            $default_action = array('plugins.php' => array(__('Manage Plugins'), 'activate_plugins'));
     3224            break;
    32073225        case 'themes.php':
    32083226            $default_action = array('theme-install.php' => array(__('Install Themes'), 'install_themes'));
     3227            break;
     3228        case 'theme-install.php':
     3229            $default_action = array('themes.php' => array(__('Manage Themes'), 'switch_themes'));
    32093230            break;
    32103231        default:
Note: See TracChangeset for help on using the changeset viewer.