Changeset 19119
- Timestamp:
- 11/02/2011 08:14:10 PM (13 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-background.php
r19111 r19119 88 88 ); 89 89 90 get_current_screen()-> add_help_sidebar(90 get_current_screen()->set_help_sidebar( 91 91 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 92 92 '<p>' . __( '<a href="http://codex.wordpress.org/Appearance_Background_Screen" target="_blank">Documentation on Custom Background</a>' ) . '</p>' . -
trunk/wp-admin/custom-header.php
r19111 r19119 106 106 ); 107 107 108 get_current_screen()-> add_help_sidebar(108 get_current_screen()->set_help_sidebar( 109 109 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 110 110 '<p>' . __( '<a href="http://codex.wordpress.org/Appearance_Header_Screen" target="_blank">Documentation on Custom Header</a>' ) . '</p>' . -
trunk/wp-admin/edit-comments.php
r19111 r19119 120 120 ); 121 121 122 get_current_screen()-> add_help_sidebar(122 get_current_screen()->set_help_sidebar( 123 123 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 124 124 '<p>' . __( '<a href="http://codex.wordpress.org/Administration_Screens#Comments" target="_blank">Documentation on Comments</a>' ) . '</p>' . -
trunk/wp-admin/edit-form-advanced.php
r19110 r19119 204 204 ) ); 205 205 206 get_current_screen()-> add_help_sidebar(206 get_current_screen()->set_help_sidebar( 207 207 '<p>' . sprintf(__('You can also create posts with the <a href="%s">Press This bookmarklet</a>.'), 'options-writing.php') . '</p>' . 208 208 '<p><strong>' . __('For more information:') . '</strong></p>' . … … 230 230 ) ); 231 231 232 get_current_screen()-> add_help_sidebar(232 get_current_screen()->set_help_sidebar( 233 233 '<p><strong>' . __('For more information:') . '</strong></p>' . 234 234 '<p>' . __('<a href="http://codex.wordpress.org/Pages_Add_New_Screen" target="_blank">Documentation on Adding New Pages</a>') . '</p>' . -
trunk/wp-admin/edit-link-form.php
r19111 r19119 46 46 ); 47 47 48 get_current_screen()-> add_help_sidebar(48 get_current_screen()->set_help_sidebar( 49 49 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 50 50 '<p>' . __( '<a href="http://codex.wordpress.org/Links_Add_New_Screen" target="_blank">Documentation on Creating Links</a>' ) . '</p>' . -
trunk/wp-admin/edit-tags.php
r19111 r19119 241 241 $help .= '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'; 242 242 243 get_current_screen()-> add_help_sidebar( $help );243 get_current_screen()->set_help_sidebar( $help ); 244 244 245 245 unset($help); -
trunk/wp-admin/edit.php
r19111 r19119 168 168 ); 169 169 170 get_current_screen()-> add_help_sidebar(170 get_current_screen()->set_help_sidebar( 171 171 '<p><strong>' . __('For more information:') . '</strong></p>' . 172 172 '<p>' . __('<a href="http://codex.wordpress.org/Posts_Screen" target="_blank">Documentation on Managing Posts</a>') . '</p>' . … … 180 180 ); 181 181 182 get_current_screen()-> add_help_sidebar(182 get_current_screen()->set_help_sidebar( 183 183 '<p><strong>' . __('For more information:') . '</strong></p>' . 184 184 '<p>' . __('<a href="http://codex.wordpress.org/Pages_Screen" target="_blank">Documentation on Managing Pages</a>') . '</p>' . -
trunk/wp-admin/export.php
r19111 r19119 44 44 ); 45 45 46 get_current_screen()-> add_help_sidebar(46 get_current_screen()->set_help_sidebar( 47 47 '<p><strong>' . __('For more information:') . '</strong></p>' . 48 48 '<p>' . __('<a href="http://codex.wordpress.org/Tools_Export_Screen" target="_blank">Documentation on Export</a>') . '</p>' . -
trunk/wp-admin/import.php
r19111 r19119 22 22 ); 23 23 24 get_current_screen()-> add_help_sidebar(24 get_current_screen()->set_help_sidebar( 25 25 '<p><strong>' . __('For more information:') . '</strong></p>' . 26 26 '<p>' . __('<a href="http://codex.wordpress.org/Tools_Import_Screen" target="_blank">Documentation on Import</a>') . '</p>' . -
trunk/wp-admin/includes/screen.php
r19113 r19119 154 154 return; 155 155 156 return$current_screen->add_option( $option, $args );156 $current_screen->add_option( $option, $args ); 157 157 } 158 158 … … 598 598 /** 599 599 * Add a help tab to the contextual help for the screen. 600 * Call this in template files after admin.php is loaded and before admin-header.php is loaded to add contextual help tabs.600 * Call this on the load-$pagenow hook for the relevant screen. 601 601 * 602 602 * @since 3.3.0 … … 628 628 629 629 /** 630 * Removes a help tab from the contextual help for the screen. 631 * 632 * @since 3.3.0 633 * 634 * @param string $id The help tab ID. 635 */ 636 public function remove_help_tab( $id ) { 637 unset( $this->_help_tabs[ $id ] ); 638 } 639 640 /** 641 * Removes all help tabs from the contextual help for the screen. 642 * 643 * @since 3.3.0 644 */ 645 public function remove_help_tabs() { 646 $this->_help_tabs = array(); 647 } 648 649 /** 630 650 * Add a sidebar to the contextual help for the screen. 631 651 * Call this in template files after admin.php is loaded and before admin-header.php is loaded to add a sidebar to the contextual help. … … 635 655 * @param string $content Sidebar content in plain text or HTML. 636 656 */ 637 public function add_help_sidebar( $content ) {657 public function set_help_sidebar( $content ) { 638 658 $this->_help_sidebar = $content; 639 659 } -
trunk/wp-admin/index.php
r19110 r19119 71 71 ) ); 72 72 73 get_current_screen()-> add_help_sidebar(73 get_current_screen()->set_help_sidebar( 74 74 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 75 75 '<p>' . __( '<a href="http://codex.wordpress.org/Dashboard_Screen" target="_blank">Documentation on Dashboard</a>' ) . '</p>' . -
trunk/wp-admin/link-manager.php
r19111 r19119 48 48 ); 49 49 50 get_current_screen()-> add_help_sidebar(50 get_current_screen()->set_help_sidebar( 51 51 '<p><strong>' . __('For more information:') . '</strong></p>' . 52 52 '<p>' . __('<a href="http://codex.wordpress.org/Links_Screen" target="_blank">Documentation on Managing Links</a>') . '</p>' . -
trunk/wp-admin/media-upload.php
r19111 r19119 68 68 ); 69 69 70 get_current_screen()-> add_help_sidebar(70 get_current_screen()->set_help_sidebar( 71 71 '<p><strong>' . __('For more information:') . '</strong></p>' . 72 72 '<p>' . __('<a href="http://codex.wordpress.org/Media_Add_New_Screen" target="_blank">Documentation on Uploading Media Files</a>') . '</p>' . -
trunk/wp-admin/nav-menus.php
r19111 r19119 452 452 add_contextual_help($current_screen, $help); 453 453 454 get_current_screen()-> add_help_sidebar(454 get_current_screen()->set_help_sidebar( 455 455 '<p><strong>' . __('For more information:') . '</strong></p>' . 456 456 '<p>' . __('<a href="http://codex.wordpress.org/Appearance_Menus_Screen" target="_blank">Documentation on Menus</a>') . '</p>' . -
trunk/wp-admin/options-discussion.php
r19111 r19119 21 21 ); 22 22 23 get_current_screen()-> add_help_sidebar(23 get_current_screen()->set_help_sidebar( 24 24 '<p><strong>' . __('For more information:') . '</strong></p>' . 25 25 '<p>' . __('<a href="http://codex.wordpress.org/Settings_Discussion_Screen" target="_blank">Documentation on Discussion Settings</a>') . '</p>' . -
trunk/wp-admin/options-general.php
r19111 r19119 68 68 ); 69 69 70 get_current_screen()-> add_help_sidebar(70 get_current_screen()->set_help_sidebar( 71 71 '<p><strong>' . __('For more information:') . '</strong></p>' . 72 72 '<p>' . __('<a href="http://codex.wordpress.org/Settings_General_Screen" target="_blank">Documentation on General Settings</a>') . '</p>' . -
trunk/wp-admin/options-media.php
r19111 r19119 23 23 ); 24 24 25 get_current_screen()-> add_help_sidebar(25 get_current_screen()->set_help_sidebar( 26 26 '<p><strong>' . __('For more information:') . '</strong></p>' . 27 27 '<p>' . __('<a href="http://codex.wordpress.org/Settings_Media_Screen" target="_blank">Documentation on Media Settings</a>') . '</p>' . -
trunk/wp-admin/options-permalink.php
r19111 r19119 24 24 ); 25 25 26 get_current_screen()-> add_help_sidebar(26 get_current_screen()->set_help_sidebar( 27 27 '<p><strong>' . __('For more information:') . '</strong></p>' . 28 28 '<p>' . __('<a href="http://codex.wordpress.org/Settings_Permalinks_Screen" target="_blank">Documentation on Permalinks Settings</a>') . '</p>' . -
trunk/wp-admin/options-privacy.php
r19111 r19119 22 22 ); 23 23 24 get_current_screen()-> add_help_sidebar(24 get_current_screen()->set_help_sidebar( 25 25 '<p><strong>' . __('For more information:') . '</strong></p>' . 26 26 '<p>' . __('<a href="http://codex.wordpress.org/Settings_Privacy_Screen" target="_blank">Documentation on Privacy Settings</a>') . '</p>' . -
trunk/wp-admin/options-reading.php
r19111 r19119 49 49 ); 50 50 51 get_current_screen()-> add_help_sidebar(51 get_current_screen()->set_help_sidebar( 52 52 '<p><strong>' . __('For more information:') . '</strong></p>' . 53 53 '<p>' . __('<a href="http://codex.wordpress.org/Settings_Reading_Screen" target="_blank">Documentation on Reading Settings</a>') . '</p>' . -
trunk/wp-admin/options-writing.php
r19111 r19119 21 21 ); 22 22 23 get_current_screen()-> add_help_sidebar(23 get_current_screen()->set_help_sidebar( 24 24 '<p><strong>' . __('For more information:') . '</strong></p>' . 25 25 '<p>' . __('<a href="http://codex.wordpress.org/Settings_Writing_Screen" target="_blank">Documentation on Writing Settings</a>') . '</p>' . -
trunk/wp-admin/plugins.php
r19111 r19119 326 326 ); 327 327 328 get_current_screen()-> add_help_sidebar(328 get_current_screen()->set_help_sidebar( 329 329 '<p><strong>' . __('For more information:') . '</strong></p>' . 330 330 '<p>' . __('<a href="http://codex.wordpress.org/Managing_Plugins#Plugin_Management" target="_blank">Documentation on Managing Plugins</a>') . '</p>' . -
trunk/wp-admin/themes.php
r19111 r19119 45 45 add_contextual_help($current_screen, $help); 46 46 47 get_current_screen()-> add_help_sidebar(47 get_current_screen()->set_help_sidebar( 48 48 '<p><strong>' . __('For more information:') . '</strong></p>' . 49 49 '<p>' . __('<a href="http://codex.wordpress.org/Using_Themes" target="_blank">Documentation on Using Themes</a>') . '</p>' . -
trunk/wp-admin/tools.php
r19111 r19119 18 18 ); 19 19 20 get_current_screen()-> add_help_sidebar(20 get_current_screen()->set_help_sidebar( 21 21 '<p><strong>' . __('For more information:') . '</strong></p>' . 22 22 '<p>' . __('<a href="http://codex.wordpress.org/Tools_Screen" target="_blank">Documentation on Tools</a>') . '</p>' . -
trunk/wp-admin/update-core.php
r19111 r19119 425 425 ); 426 426 427 get_current_screen()-> add_help_sidebar(427 get_current_screen()->set_help_sidebar( 428 428 '<p><strong>' . __('For more information:') . '</strong></p>' . 429 429 '<p>' . __('<a href="http://codex.wordpress.org/Dashboard_Updates_Screen" target="_blank">Documentation on Updating WordPress</a>') . '</p>' . -
trunk/wp-admin/upload.php
r19111 r19119 153 153 ); 154 154 155 get_current_screen()-> add_help_sidebar(155 get_current_screen()->set_help_sidebar( 156 156 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 157 157 '<p>' . __( '<a href="http://codex.wordpress.org/Media_Library_Screen" target="_blank">Documentation on Media Library</a>' ) . '</p>' . -
trunk/wp-admin/user-edit.php
r19111 r19119 46 46 ); 47 47 48 get_current_screen()-> add_help_sidebar(48 get_current_screen()->set_help_sidebar( 49 49 '<p><strong>' . __('For more information:') . '</strong></p>' . 50 50 '<p>' . __('<a href="http://codex.wordpress.org/Users_Your_Profile_Screen" target="_blank">Documentation on User Profiles</a>') . '</p>' . -
trunk/wp-admin/user-new.php
r19111 r19119 147 147 ); 148 148 149 get_current_screen()-> add_help_sidebar(149 get_current_screen()->set_help_sidebar( 150 150 '<p><strong>' . __('For more information:') . '</strong></p>' . 151 151 '<p>' . __('<a href="http://codex.wordpress.org/Users_Add_New_Screen" target="_blank">Documentation on Adding New Users</a>') . '</p>' . -
trunk/wp-admin/users.php
r19111 r19119 27 27 ); 28 28 29 get_current_screen()-> add_help_sidebar(29 get_current_screen()->set_help_sidebar( 30 30 '<p><strong>' . __('For more information:') . '</strong></p>' . 31 31 '<p>' . __('<a href="http://codex.wordpress.org/Users_Screen" target="_blank">Documentation on Managing Users</a>') . '</p>' . -
trunk/wp-admin/widgets.php
r19111 r19119 47 47 add_contextual_help($current_screen, $help); 48 48 49 get_current_screen()-> add_help_sidebar(49 get_current_screen()->set_help_sidebar( 50 50 '<p><strong>' . __('For more information:') . '</strong></p>' . 51 51 '<p>' . __('<a href="http://codex.wordpress.org/Appearance_Widgets_Screen" target="_blank">Documentation on Widgets</a>') . '</p>' .
Note: See TracChangeset
for help on using the changeset viewer.