Changeset 9557
- Timestamp:
- 11/06/2008 10:21:27 PM (16 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/categories.php
r9545 r9557 132 132 ?> 133 133 134 <?php screen_meta(' category') ?>134 <?php screen_meta('edit-categories') ?> 135 135 136 136 <div class="wrap nosubsub"> -
trunk/wp-admin/edit-comments.php
r9556 r9557 82 82 $search = attribute_escape( $search_dirty ); ?> 83 83 84 <?php screen_meta(' comment') ?>84 <?php screen_meta('edit-comments') ?> 85 85 86 86 <div class="wrap"> -
trunk/wp-admin/edit-form-advanced.php
r9555 r9557 472 472 473 473 ?> 474 <?php screen_meta('post' , 1, 'edit-post'); ?>474 <?php screen_meta('post'); ?> 475 475 476 476 <?php if ( (isset($mode) && 'bookmarklet' == $mode) || isset($_GET['popupurl']) ): ?> -
trunk/wp-admin/edit-link-categories.php
r9545 r9557 61 61 $messages[6] = __('Categories deleted.'); ?> 62 62 63 <?php screen_meta(' link-category') ?>63 <?php screen_meta('edit-link-categories') ?> 64 64 65 65 <div class="wrap nosubsub"> -
trunk/wp-admin/edit-link-form.php
r9545 r9557 310 310 add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', 'link', 'normal', 'core'); ?> 311 311 312 <?php screen_meta('link' , 1) ?>312 <?php screen_meta('link') ?> 313 313 314 314 <div class="wrap"> -
trunk/wp-admin/edit-page-form.php
r9545 r9557 377 377 ?> 378 378 379 <?php screen_meta('page' , 1); ?>379 <?php screen_meta('page'); ?> 380 380 381 381 <div class="wrap"> -
trunk/wp-admin/edit-pages.php
r9556 r9557 101 101 require_once('admin-header.php'); ?> 102 102 103 <?php screen_meta(' page') ?>103 <?php screen_meta('edit-pages') ?> 104 104 105 105 <div class="wrap"> -
trunk/wp-admin/edit-tags.php
r9545 r9557 130 130 $messages[6] = __('Tags deleted.'); ?> 131 131 132 <?php screen_meta(' tag') ?>132 <?php screen_meta('edit-tags') ?> 133 133 134 134 <div class="wrap nosubsub"> -
trunk/wp-admin/edit.php
r9556 r9557 91 91 $mode = attribute_escape($_GET['mode']); ?> 92 92 93 <?php screen_meta(' post') ?>93 <?php screen_meta('edit-posts') ?> 94 94 95 95 <div class="wrap"> -
trunk/wp-admin/includes/template.php
r9556 r9557 823 823 return apply_filters('manage_users_columns', $columns); 824 824 default : 825 return apply_filters('manage_' . $page . '_columns', $columns); 826 } 827 828 return $columns; 825 return apply_filters('manage_' . $page . '_columns', array()); 826 } 829 827 } 830 828 … … 3123 3121 } 3124 3122 3125 function screen_meta($screen, $metabox = false, $page = '') { 3123 function screen_meta($screen) { 3124 global $wp_meta_boxes; 3125 3126 $column_screens = array('edit-posts' => 'post', 'edit-pages' => 'page', 'edit-tags' => 'tag', 'edit-categories' => 'category', 3127 'edit-link-categories' => 'link-category', 'edit-links' => 'link', 'edit-users' => 'user', 'edit-media' => 'media', 3128 'edit-comments' => 'comment'); 3129 3130 $show_screen = false; 3131 if ( !empty($wp_meta_boxes[$screen]) || !empty($column_screens[$screen]) ) 3132 $show_screen = true; 3126 3133 ?> 3127 3134 <div id="screen-meta"> 3135 <?php 3136 if ( $show_screen ) : 3137 ?> 3128 3138 <div id="screen-options-wrap" class="hidden"> 3129 3139 <h5><?php _e('Show on screen') ?></h5> … … 3131 3141 <div class="metabox-prefs"> 3132 3142 <?php 3133 if ( $metabox ) { 3134 meta_box_prefs($screen); 3135 } else { 3136 manage_columns_prefs($screen); 3143 if ( !meta_box_prefs($screen) ) { 3144 manage_columns_prefs($column_screens[$screen]); 3137 3145 wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); 3138 3146 } … … 3143 3151 3144 3152 <?php 3145 if ( '' != $page ) { 3146 // Allow a plugin to short-circuit 3147 $help = apply_filters('contextual_help', '', $page); 3148 if ( !empty($help) ) 3149 return; 3150 3151 global $title; 3152 3153 $help['edit-post'] = __('<a href="http://codex.wordpress.org/Writing_Posts" target="_blank">Writing Posts</a>'); 3154 $help['general-settings'] = __('<a href="http://codex.wordpress.org/Settings_General_SubPanel" target="_blank">General Settings</a>'); 3153 endif; 3154 3155 global $title; 3156 3157 $help['post'] = __('<a href="http://codex.wordpress.org/Writing_Posts" target="_blank">Writing Posts</a>'); 3158 $help['general-settings'] = __('<a href="http://codex.wordpress.org/Settings_General_SubPanel" target="_blank">General Settings</a>'); 3155 3159 ?> 3156 3160 <div id="contextual-help-wrap" class="hidden"> 3157 3161 <?php 3158 if ( isset($help[$page]) ) { 3159 if ( isset($title) && 'edit-post' != $page ) 3162 if ( !apply_filters('contextual_help', '', $screen) ) { 3163 if ( isset($help[$screen]) ) { 3164 if ( isset($title) ) 3160 3165 echo '<h5>' . sprintf(__('Get help with "%s"'), $title) . '</h5>'; 3161 3166 else 3162 3167 echo '<h5>' . __('Get help with this page') . '</h5>'; 3163 echo '<div class="metabox-prefs">' . $help[$ page] . "</div>\n";3168 echo '<div class="metabox-prefs">' . $help[$screen] . "</div>\n"; 3164 3169 3165 3170 echo '<h5>' . __('Other Help') . '</h5>'; … … 3173 3178 _e('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>'); 3174 3179 echo "</div>\n"; 3180 } 3175 3181 ?> 3176 3182 </div> 3177 <?php3178 }3179 ?>3180 3183 3181 3184 <div id="screen-meta-links"> 3182 <?php if ( '' != $page ) { ?>3183 3185 <div id="contextual-help-link-wrap" class="hide-if-no-js screen-meta-toggle"> 3184 3186 <a href="#contextual-help" id="contextual-help-link" class="show-settings"><?php _e('Help') ?></a> 3185 3187 </div> 3186 <?php }?>3188 <?php if ( $show_screen ) { ?> 3187 3189 <div id="screen-options-link-wrap" class="hide-if-no-js screen-meta-toggle"> 3188 3190 <a href="#screen-options" id="show-settings-link" class="show-settings"><?php _e('Screen Options') ?></a> 3189 3191 </div> 3192 <?php } ?> 3190 3193 </div> 3191 3194 </div> -
trunk/wp-admin/index.php
r9545 r9557 29 29 ?> 30 30 31 <?php screen_meta('dashboard' , 1); ?>31 <?php screen_meta('dashboard'); ?> 32 32 33 33 <div class="wrap"> -
trunk/wp-admin/link-manager.php
r9545 r9557 75 75 } ?> 76 76 77 <?php screen_meta(' link') ?>77 <?php screen_meta('edit-links') ?> 78 78 79 79 <div class="wrap nosubsub"> -
trunk/wp-admin/upload.php
r9556 r9557 146 146 require_once('admin-header.php'); ?> 147 147 148 <?php screen_meta(' media') ?>148 <?php screen_meta('edit-media') ?> 149 149 150 150 <?php -
trunk/wp-admin/users.php
r9556 r9557 238 238 endif; ?> 239 239 240 <?php screen_meta(' user') ?>240 <?php screen_meta('edit-users') ?> 241 241 242 242 <?php if ( isset($errors) && is_wp_error( $errors ) ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.