WordPress.org

Make WordPress Core

Changeset 19114


Ignore:
Timestamp:
11/02/11 05:33:53 (3 years ago)
Author:
ryan
Message:

Use add_help_sidebar(). see #19020

Location:
trunk/wp-admin
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network.php

    r19054 r19114  
    110110    '<p>' . __('Add a <code>blogs.dir</code> directory under <code>/wp-content</code> and add the designated lines of code to wp-config.php (just before <code>/*...stop editing...*/</code>) and <code>.htaccess</code> (replacing the existing WordPress rules).') . '</p>' . 
    111111    '<p>' . __('Once you add this code and refresh your browser, multisite should be enabled. This screen will keep an archive of the added code. You can toggle between Network Admin and Site Admin by clicking on the Howdy (Username) dropdown in the upper right of the administration area.') . '</p>' . 
    112     '<p>' . __('The choice of subdirectory sites is disabled if this setup is more than a month old because of permalink problems with &#8220;/blog/&#8221; from the main site. This disabling will be addressed soon in a future version.') . '</p>' . 
     112    '<p>' . __('The choice of subdirectory sites is disabled if this setup is more than a month old because of permalink problems with &#8220;/blog/&#8221; from the main site. This disabling will be addressed soon in a future version.') . '</p>' 
     113); 
     114 
     115get_current_screen()->add_help_sidebar( 
    113116    '<p><strong>' . __('For more information:') . '</strong></p>' . 
    114117    '<p>' . __('<a href="http://codex.wordpress.org/Create_A_Network" target="_blank">Documentation on Creating a Network</a>') . '</p>' . 
  • trunk/wp-admin/network/index.php

    r18911 r19114  
    2727    '<ul><li>' . __('Site Admin is now Super Admin (we highly encourage you to get yourself a cape!).') . '</li>' . 
    2828    '<li>' . __('Blogs are now called Sites; Site is now called Network.') . '</li></ul>' . 
    29     '<p>' . __('The Right Now box provides the network administrator with links to the screens to either create a new site or user, or to search existing users and sites. Screens for Sites and Users are also accessible through the left-hand navigation in the Network Admin section.') . '</p>' . 
     29    '<p>' . __('The Right Now box provides the network administrator with links to the screens to either create a new site or user, or to search existing users and sites. Screens for Sites and Users are also accessible through the left-hand navigation in the Network Admin section.') . '</p>' 
     30); 
     31 
     32get_current_screen()->add_help_sidebar( 
    3033    '<p><strong>' . __('For more information:') . '</strong></p>' . 
    3134    '<p>' . __('<a href="http://codex.wordpress.org/Network_Admin" target="_blank">Documentation on the Network Admin</a>') . '</p>' . 
  • trunk/wp-admin/network/settings.php

    r18893 r19114  
    2929    '<p>' . __('Checkboxes for media upload buttons set which are shown in the visual editor. If unchecked, a generic upload button is still visible; other media types can still be uploaded if on the allowed file types list.') . '</p>' . 
    3030    '<p>' . __('Menu setting enables/disables the plugin menus from appearing for non super admins, so that only super admins, not site admins, have access to activate plugins.') . '</p>' . 
    31     '<p>' . __('Super admins can no longer be added on the Options screen. You must now go to the list of existing users on Network Admin > Users and click on Username or the Edit action link below that name. This goes to an Edit User page where you can check a box to grant super admin privileges.') . '</p>' . 
     31    '<p>' . __('Super admins can no longer be added on the Options screen. You must now go to the list of existing users on Network Admin > Users and click on Username or the Edit action link below that name. This goes to an Edit User page where you can check a box to grant super admin privileges.') . '</p>' 
     32); 
     33 
     34get_current_screen()->add_help_sidebar( 
    3235    '<p><strong>' . __('For more information:') . '</strong></p>' . 
    3336    '<p>' . __('<a href="http://codex.wordpress.org/Network_Admin_Settings_Screen" target="_blank">Documentation on Network Settings</a>') . '</p>' . 
  • trunk/wp-admin/network/site-new.php

    r19028 r19114  
    1919add_contextual_help($current_screen, 
    2020    '<p>' . __('This screen is for Super Admins to add new sites to the network. This is not affected by the registration settings.') . '</p>' . 
    21     '<p>' . __('If the admin email for the new site does not exist in the database, a new user will also be created.') . '</p>' . 
     21    '<p>' . __('If the admin email for the new site does not exist in the database, a new user will also be created.') . '</p>' 
     22); 
     23 
     24get_current_screen()->add_help_sidebar( 
    2225    '<p><strong>' . __('For more information:') . '</strong></p>' . 
    2326    '<p>' . __('<a href="http://codex.wordpress.org/Network_Admin_Sites_Screens" target="_blank">Documentation on Site Management</a>') . '</p>' . 
  • trunk/wp-admin/network/site-users.php

    r18911 r19114  
    2525    '<p>' . __('<strong>Users</strong> - This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.') . '</p>' . 
    2626    '<p>' . sprintf( __('<strong>Themes</strong> - This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site&#8217;s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ), network_admin_url( 'themes.php' ) ) . '</p>' . 
    27     '<p>' . __('<strong>Settings</strong> - This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.') . '</p>' . 
     27    '<p>' . __('<strong>Settings</strong> - This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.') . '</p>' 
     28); 
     29 
     30get_current_screen()->add_help_sidebar( 
    2831    '<p><strong>' . __('For more information:') . '</strong></p>' . 
    2932    '<p>' . __('<a href="http://codex.wordpress.org/Network_Admin_Sites_Screens" target="_blank">Documentation on Site Management</a>') . '</p>' . 
  • trunk/wp-admin/network/sites.php

    r18911 r19114  
    3535    '<li>' . __('Visit to go to the frontend site live.') . '</li></ul>' . 
    3636    '<p>' . __('The site ID is used internally, and is not shown on the front end of the site or to users/viewers.') . '</p>' . 
    37     '<p>' . __('Clicking on bold headings can re-sort this table.') . '</p>' . 
     37    '<p>' . __('Clicking on bold headings can re-sort this table.') . '</p>' 
     38); 
     39 
     40get_current_screen()->add_help_sidebar( 
    3841    '<p><strong>' . __('For more information:') . '</strong></p>' . 
    3942    '<p>' . __('<a href="http://codex.wordpress.org/Network_Admin_Sites_Screens" target="_blank">Documentation on Site Management</a>') . '</p>' . 
  • trunk/wp-admin/network/themes.php

    r18911 r19114  
    207207    '<p>' . __('This screen enables and disables the inclusion of themes available to choose in the Appearance menu for each site. It does not activate or deactivate which theme a site is currently using.') . '</p>' . 
    208208    '<p>' . __('If the network admin disables a theme that is in use, it can still remain selected on that site. If another theme is chosen, the disabled theme will not appear in the site&#8217;s Appearance > Themes screen.') . '</p>' . 
    209     '<p>' . __('Themes can be enabled on a site by site basis by the network admin on the Edit Site screen (which has a Themes tab); get there via the Edit action link on the All Sites screen. Only network admins are able to install or edit themes.') . '</p>' . 
     209    '<p>' . __('Themes can be enabled on a site by site basis by the network admin on the Edit Site screen (which has a Themes tab); get there via the Edit action link on the All Sites screen. Only network admins are able to install or edit themes.') . '</p>' 
     210); 
     211 
     212get_current_screen()->add_help_sidebar( 
    210213    '<p><strong>' . __('For more information:') . '</strong></p>' . 
    211214    '<p>' . __('<a href="http://codex.wordpress.org/Network_Admin_Themes_Screen" target="_blank">Documentation on Network Themes</a>') . '</p>' . 
  • trunk/wp-admin/network/upgrade.php

    r18092 r19114  
    2222    '<p>' . __('Only use this screen once you have updated to a new version of WordPress through Updates/Available Updates (via the Network Administration navigation menu or the Admin Bar). Clicking the Update Network button will step through each site in the network, five at a time, and make sure any database updates are applied.') . '</p>' . 
    2323    '<p>' . __('If a version update to core has not happened, clicking this button won&#8217;t affect anything.') . '</p>' . 
    24     '<p>' . __('If this process fails for any reason, users logging in to their sites will force the same update.') . '</p>' . 
     24    '<p>' . __('If this process fails for any reason, users logging in to their sites will force the same update.') . '</p>' 
     25); 
     26 
     27get_current_screen()->add_help_sidebar( 
    2528    '<p><strong>' . __('For more information:') . '</strong></p>' . 
    2629    '<p>' . __('<a href="http://codex.wordpress.org/Network_Admin_Updates_Screen" target="_blank">Documentation on Update Network</a>') . '</p>' . 
  • trunk/wp-admin/network/user-new.php

    r18131 r19114  
    2020add_contextual_help($current_screen, 
    2121    '<p>' . __('Add User will set up a new user account on the network and send that person an email with username and password.') . '</p>' . 
    22     '<p>' . __('Users who are signed up to the network without a site are added as subscribers to the main or primary dashboard site, giving them profile pages to manage their accounts. These users will only see Dashboard and My Sites in the main navigation until a site is created for them.') . '</p>' . 
     22    '<p>' . __('Users who are signed up to the network without a site are added as subscribers to the main or primary dashboard site, giving them profile pages to manage their accounts. These users will only see Dashboard and My Sites in the main navigation until a site is created for them.') . '</p>' 
     23); 
     24 
     25get_current_screen()->add_help_sidebar( 
    2326    '<p><strong>' . __('For more information:') . '</strong></p>' . 
    2427    '<p>' . __('<a href="http://codex.wordpress.org/Network_Admin_Users_Screen" target="_blank">Documentation on Network Users</a>') . '</p>' . 
  • trunk/wp-admin/network/users.php

    r18911 r19114  
    236236    '<p>' . __('You can sort the table by clicking on any of the bold headings and switch between list and excerpt views by using the icons in the upper right.') . '</p>' . 
    237237    '<p>' . __('The bulk action will permanently delete selected users, or mark/unmark those selected as spam. Spam users will have posts removed and will be unable to sign up again with the same email addresses.') . '</p>' . 
    238     '<p>' . __('You can make an existing user an additional super admin by going to the Edit User profile page and checking the box to grant that privilege.') . '</p>' . 
     238    '<p>' . __('You can make an existing user an additional super admin by going to the Edit User profile page and checking the box to grant that privilege.') . '</p>' 
     239); 
     240 
     241get_current_screen()->add_help_sidebar( 
    239242    '<p><strong>' . __('For more information:') . '</strong></p>' . 
    240243    '<p>' . __('<a href="http://codex.wordpress.org/Network_Admin_Users_Screen" target="_blank">Documentation on Network Users</a>') . '</p>' . 
  • trunk/wp-admin/plugin-editor.php

    r18577 r19114  
    116116        '<p>' . __('The Documentation menu below the editor lists the PHP functions recognized in the plugin file. Clicking Lookup takes you to a web page about that particular function.') . '</p>' . 
    117117        '<p>' . __('If you want to make changes but don&#8217;t want them to be overwritten when the plugin is updated, you may be ready to think about writing your own plugin. For information on how to edit plugins, write your own from scratch, or just better understand their anatomy, check out the links below.') . '</p>' . 
    118         ( is_network_admin() ? '<p>' . __('Any edits to files from this screen will be reflected on all sites in the network.') . '</p>' : '' ) . 
     118        ( is_network_admin() ? '<p>' . __('Any edits to files from this screen will be reflected on all sites in the network.') . '</p>' : '' ) 
     119    ); 
     120 
     121    get_current_screen()->add_help_sidebar( 
    119122        '<p><strong>' . __('For more information:') . '</strong></p>' . 
    120123        '<p>' . __('<a href="http://codex.wordpress.org/Plugins_Editor_Screen" target="_blank">Documentation on Editing Plugins</a>') . '</p>' . 
  • trunk/wp-admin/plugin-install.php

    r18911 r19114  
    4040    '<p>' . __('If you know what you&#8217;re looking for, Search is your best bet. The Search screen has options to search the WordPress.org Plugin Directory for a particular Term, Author, or Tag. You can also search the directory by selecting a popular tags. Tags in larger type mean more plugins have been labeled with that tag.') . '</p>' . 
    4141    '<p>' . __('If you just want to get an idea of what&#8217;s available, you can browse Featured, Popular, Newest, and Recently Updated plugins by using the links in the upper left of the screen. These sections rotate regularly.') . '</p>' . 
    42     '<p>' . __('If you want to install a plugin that you&#8217;ve downloaded elsewhere, click Upload in the upper left. You will be prompted to upload the .zip package, and once uploaded, you can activate the new plugin.') . '</p>' . 
     42    '<p>' . __('If you want to install a plugin that you&#8217;ve downloaded elsewhere, click Upload in the upper left. You will be prompted to upload the .zip package, and once uploaded, you can activate the new plugin.') . '</p>' 
     43); 
     44 
     45get_current_screen()->add_help_sidebar( 
    4346    '<p><strong>' . __('For more information:') . '</strong></p>' . 
    4447    '<p>' . __('<a href="http://codex.wordpress.org/Plugins_Add_New_Screen" target="_blank">Documentation on Installing Plugins</a>') . '</p>' . 
  • trunk/wp-admin/theme-editor.php

    r18577 r19114  
    2929if ( is_network_admin() ) 
    3030    $help .= '<p>' . __('Any edits to files from this screen will be reflected on all sites in the network.') . '</p>'; 
    31 $help .= '<p><strong>' . __('For more information:') . '</strong></p>'; 
    32 $help .= '<p>' . __('<a href="http://codex.wordpress.org/Theme_Development" target="_blank">Documentation on Theme Development</a>') . '</p>'; 
    33 $help .= '<p>' . __('<a href="http://codex.wordpress.org/Using_Themes" target="_blank">Documentation on Using Themes</a>') . '</p>'; 
    34 $help .= '<p>' . __('<a href="http://codex.wordpress.org/Editing_Files" target="_blank">Documentation on Editing Files</a>') . '</p>'; 
    35 $help .= '<p>' . __('<a href="http://codex.wordpress.org/Template_Tags" target="_blank">Documentation on Template Tags</a>') . '</p>'; 
    36 $help .= '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'; 
     31 
    3732add_contextual_help($current_screen, $help); 
     33 
     34get_current_screen()->add_help_sidebar( 
     35    '<p><strong>' . __('For more information:') . '</strong></p>' . 
     36    '<p>' . __('<a href="http://codex.wordpress.org/Theme_Development" target="_blank">Documentation on Theme Development</a>') . '</p>' . 
     37    '<p>' . __('<a href="http://codex.wordpress.org/Using_Themes" target="_blank">Documentation on Using Themes</a>') . '</p>' . 
     38    '<p>' . __('<a href="http://codex.wordpress.org/Editing_Files" target="_blank">Documentation on Editing Files</a>') . '</p>' . 
     39    '<p>' . __('<a href="http://codex.wordpress.org/Template_Tags" target="_blank">Documentation on Template Tags</a>') . '</p>' . 
     40    '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
     41); 
    3842 
    3943wp_reset_vars(array('action', 'redirect', 'profile', 'error', 'warning', 'a', 'file', 'theme', 'dir')); 
  • trunk/wp-admin/theme-install.php

    r18577 r19114  
    4242$help .= '<p>' . __('You can Search for themes by keyword, author, or tag, or can get more specific and search by criteria listed in the feature filter. Alternately, you can browse the themes that are Featured, Newest, or Recently Updated. When you find a theme you like, you can preview it or install it.') . '</p>'; 
    4343$help .= '<p>' . __('You can Upload a theme manually if you have already downloaded its ZIP archive onto your computer (make sure it is from a trusted and original source). You can also do it the old-fashioned way and copy a downloaded theme&#8217;s folder via FTP into your <code>/wp-content/themes</code> directory.') . '</p>'; 
    44 $help .= '<p><strong>' . __('For more information:') . '</strong></p>'; 
    45 $help .= '<p>' . __('<a href="http://codex.wordpress.org/Using_Themes#Adding_New_Themes" target="_blank">Documentation on Adding New Themes</a>') . '</p>'; 
    46 $help .= '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'; 
     44 
    4745add_contextual_help($current_screen, $help); 
     46 
     47get_current_screen()->add_help_sidebar( 
     48    '<p><strong>' . __('For more information:') . '</strong></p>' . 
     49    '<p>' . __('<a href="http://codex.wordpress.org/Using_Themes#Adding_New_Themes" target="_blank">Documentation on Adding New Themes</a>') . '</p>' . 
     50    '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
     51); 
    4852 
    4953include(ABSPATH . 'wp-admin/admin-header.php'); 
Note: See TracChangeset for help on using the changeset viewer.