Changeset 11044
- Timestamp:
- 04/22/2009 01:47:20 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r11043 r11044 3190 3190 function favorite_actions( $screen = null ) { 3191 3191 switch ( $screen ) { 3192 case 'post-new.php': 3193 $default_action = array('edit.php' => array(__('Edit Posts'), 'edit_posts')); 3194 break; 3192 3195 case 'edit-pages.php': 3193 3196 $default_action = array('page-new.php' => array(__('New Page'), 'edit_pages')); 3194 3197 break; 3198 case 'page-new.php': 3199 $default_action = array('edit-pages.php' => array(__('Edit Pages'), 'edit_pages')); 3200 break; 3195 3201 case 'upload.php': 3196 3202 $default_action = array('media-new.php' => array(__('New Media'), 'upload_files')); 3197 3203 break; 3204 case 'media-new.php': 3205 $default_action = array('upload.php' => array(__('Edit Media'), 'upload_files')); 3206 break; 3198 3207 case 'link-manager.php': 3199 3208 $default_action = array('link-add.php' => array(__('New Link'), 'manage_links')); 3200 3209 break; 3210 case 'link-add.php': 3211 $default_action = array('link-manager.php' => array(__('Edit Links'), 'manage_links')); 3212 break; 3201 3213 case 'users.php': 3202 3214 $default_action = array('user-new.php' => array(__('New User'), 'create_users')); 3203 3215 break; 3216 case 'user-new.php': 3217 $default_action = array('users.php' => array(__('Edit Users'), 'edit_users')); 3218 break; 3204 3219 case 'plugins.php': 3205 3220 $default_action = array('plugin-install.php' => array(__('Install Plugins'), 'install_plugins')); 3206 3221 break; 3222 case 'plugin-install.php': 3223 $default_action = array('plugins.php' => array(__('Manage Plugins'), 'activate_plugins')); 3224 break; 3207 3225 case 'themes.php': 3208 3226 $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')); 3209 3230 break; 3210 3231 default:
Note: See TracChangeset
for help on using the changeset viewer.