WordPress.org

Make WordPress Core

Ticket #13467: 13467-cleanup-space-slash-period-comma.diff

File 13467-cleanup-space-slash-period-comma.diff, 24.6 KB (added by zeo, 4 years ago)

add_contextual_help() various clean up. Removes excess space, missing Period, Comma, forward slash punc mark

  • wp-admin/edit-comments.php

     
    108108add_contextual_help( $current_screen, '<p>' . __('You can manage comments made on your site similar to the way you manage Posts and other content. This screen is customizable in the same ways as other management screens, and you can act on comments using the on-hover action links or the Bulk Actions.') . '</p>' . 
    109109        '<p>' . __('A yellow row means the comment is waiting for you to moderate it.') . '</p>' . 
    110110        '<p>' . __('In the Author column, in addition to the author&#8217;s name, email address, and blog URL, the commenter&#8217;s IP address is shown. Clicking on this link will show you all the comments made from this IP address.') . '</p>' . 
    111         '<p>' . __('In the Comment column, above each comment it says "Submitted on," followed by the date and time the comment was left on your site. Clicking on the date/time link will take you to that comment on your live site. ') . '</p>' . 
     111        '<p>' . __('In the Comment column, above each comment it says "Submitted on," followed by the date and time the comment was left on your site. Clicking on the date/time link will take you to that comment on your live site.') . '</p>' . 
    112112        '<p>' . __('In the In Response To column, there are three elements. The text is the name of the post that inspired the comment, and links to the post editor for that entry. The "#" permalink symbol below leads to that post on your live site. The small bubble with the number in it shows how many comments that post has received. If the bubble is gray, you have moderated all comments for that post. If it is blue, there are pending comments. Clicking the bubble will filter the comments screen to show only comments on that post.') . '</p>' . 
    113113        '<p>' . __('Many people take advantage of keyboard shortcuts to moderate their comments more quickly. Use the link below to learn more.') . '</p>' . 
    114114        '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 
  • wp-admin/edit-tags.php

     
    180180        $help .= '<ul>' . 
    181181                '<li>' . __('<strong>Name</strong> - The name is how it appears on your site.') . '</li>'; 
    182182        if ( ! global_terms_enabled() ) 
    183                 $help .= '<li>' . __('<strong>Slug</strong> - The  &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.') . '</li>'; 
     183                $help .= '<li>' . __('<strong>Slug</strong> - The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.') . '</li>'; 
    184184 
    185185        if ( 'category' == $taxonomy ) 
    186186                $help .= '<li>' . __('<strong>Parent</strong> - Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional. To create a subcategory, just choose another category from the Parent dropdown.') . '</li>'; 
     
    441441 
    442442include('./admin-footer.php'); 
    443443 
    444 ?> 
    445  No newline at end of file 
     444?> 
  • wp-admin/custom-header.php

     
    8989         * @since 3.0.0 
    9090         */ 
    9191        function help() { 
    92                 add_contextual_help( $this->page, '<p>' . __( 'You can set a custom image header for your site. Simply upload the image and crop it, and the new header will go live immediately. ' ) . '</p>' . 
    93                 '<p>' . __( 'If you want to discard your custom header and go back to the default included in your theme, click on the buttons to remove the custom image and restore the original header image. ' ) . '</p>' . 
    94                 '<p>' . __( 'Some themes comes with additional header images bundled. If you see multiple images displayed, select the one you&#8217;d like and click the Save Changes button. ' ) . '</p>' . 
     92                add_contextual_help( $this->page, '<p>' . __( 'You can set a custom image header for your site. Simply upload the image and crop it, and the new header will go live immediately.' ) . '</p>' . 
     93                '<p>' . __( 'If you want to discard your custom header and go back to the default included in your theme, click on the buttons to remove the custom image and restore the original header image.' ) . '</p>' . 
     94                '<p>' . __( 'Some themes comes with additional header images bundled. If you see multiple images displayed, select the one you&#8217;d like and click the Save Changes button.' ) . '</p>' . 
    9595                '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 
    9696                '<p>' . __( '<a href="http://codex.wordpress.org/" target="_blank">Documentation</a>' ) . '</p>' . 
    9797                '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>' ); 
  • wp-admin/ms-sites.php

     
    3232                '<p>' . __('Add New takes you farther down on this same page. You can search for a site by Name, ID number, or IP address. Screen Options allows you to choose how many sites to display on one page.') . '</p>' . 
    3333                '<p>' . __('This is the main table of all sites on this network. Switch between list and excerpt views by using the icons above the right side of the table.') . '</p>' . 
    3434                '<p>' . __('Hovering over each site reveals seven options (only three for the primary or originating site for the network):') . '</p>' . 
    35                 '<ul><li>' . __('an Edit link to a separate Edit Site screen') . '</li>' . 
    36                 '<li>' . __('Backend means the Dashboard for that site') . '</li>' . 
     35                '<ul><li>' . __('an Edit link to a separate Edit Site screen.') . '</li>' . 
     36                '<li>' . __('Backend means the Dashboard for that site.') . '</li>' . 
    3737                '<li>' . __('Deactivate, Archive, and Spam which lead to confirmation screens. These actions can be reversed later by hover links attached to those sites in this table.') . '</li>' . 
    3838                '<li>' . __('Delete which is a permanent action after the confirmations screen.') . '</li>' . 
    3939                '<li>' . __('Visit to go to the frontend site live.') . '</li></ul>' . 
  • wp-admin/user-new.php

     
    111111add_contextual_help($current_screen,  
    112112    '<p>' . __('To add a new user to your site, fill in the form on this screen. If you&#8217;re not sure which role to assign, you can use the link below to review the different roles and their capabilities. Here is a basic overview of roles:') . '</p>' .  
    113113    '<ul>' .  
    114         '<li>' . __('Administrators have access to all the administration features') . '</li>' . 
     114        '<li>' . __('Administrators have access to all the administration features.') . '</li>' . 
    115115        '<li>' . __('Editors can publish posts, manage posts as well as manage other people&#8217;s posts, etc.')  . '</li>' .  
    116         '<li>' . __('Authors can publish and manage their own posts') . '</li>' . 
    117         '<li>' . __('Contributors can write and manage their posts but not publish posts or upload media files') . '</li>' .  
     116        '<li>' . __('Authors can publish and manage their own posts.') . '</li>' . 
     117        '<li>' . __('Contributors can write and manage their posts but not publish posts or upload media files.') . '</li>' .  
    118118        '<li>' . __('Subscribers can read comments/comment/receive newsletters, etc.') . '</li>' .   
    119119    '</ul>' . 
    120120    '<p>' . __('You must assign a password to the new user, but don&#8217;t worry; when they log in for the first time they will be prompted to change it. The username, however, cannot be changed.') . '</p>' . 
  • wp-admin/upload.php

     
    166166add_contextual_help( $current_screen, 
    167167        '<p>' . __('All the files you’ve uploaded are listed in the Media Library, with the most recent uploads listed first. You can use the <em>Screen Options</em> tab to customize the display of this screen.') . '</p>' . 
    168168        '<p>' . __('You can narrow the list by file type/status using the text link filters at the top of the screen. You also can refine the list by date using the dropdown menu above the media table.') . '</p>' . 
    169         '<p>' . __('Hovering over a row reveals action links: <em>Edit</em>, <em>Delete Permanently</em>, and <em>View</em>. Clicking <em>Edit</em> or on the media file&#8217;s name displays a simple screen to edit that individual file&#8217;s metadata. Clicking <em>Delete Permanently</em> will delete the file from the media library (as well as from any posts to which it is currently attached). <em>View</em> will take you to the display page for that file. ') . '</p>' . 
     169        '<p>' . __('Hovering over a row reveals action links: <em>Edit</em>, <em>Delete Permanently</em>, and <em>View</em>. Clicking <em>Edit</em> or on the media file&#8217;s name displays a simple screen to edit that individual file&#8217;s metadata. Clicking <em>Delete Permanently</em> will delete the file from the media library (as well as from any posts to which it is currently attached). <em>View</em> will take you to the display page for that file.') . '</p>' . 
    170170        '<p>' . __('If a media file has not been attached to any post, you will see that in the <em>Attached To</em> column, and can click on <em>Attach File</em> to launch a small popup that will allow you to search for a post and attach the file.') . '</p>' . 
    171171        '<p><strong>' . __('For more information:') . '</strong></p>' . 
    172172        '<p>' . __('<a href="http://codex.wordpress.org/Media_Library_SubPanel">Media Library Documentation</a>') . '</p>' . 
  • wp-admin/edit-form-advanced.php

     
    174174        '<p>' . __('<strong>Featured Image</strong> - This allows you to associate an image with your post without inserting it. This is usually useful only if your theme makes use of the featured image as a post thumbnail on the home page, a custom header, etc.') . '</p>' . 
    175175        '<p>' . __('<strong>Send Trackbacks</strong> - Trackbacks are a way to notify legacy blog systems that you’ve linked to them. Enter the URL(s) you want to send trackbacks. If you link to other WordPress sites they&#8217;ll be notified automatically using pingbacks, and this field is unnecessary.') . '</p>' . 
    176176        '<p>' . __('<strong>Discussion</strong> - You can turn comments and pings on or off, and if there are comments on the post, you can see them here and moderate them.') . '</p>' . 
    177         '<p>' . sprintf(__('You can also create posts with the <a href="%s">Press This bookmarklet.</a>'), 'tools.php') . '</p>' . 
     177        '<p>' . sprintf(__('You can also create posts with the <a href="%s">Press This bookmarklet</a>.'), 'tools.php') . '</p>' . 
    178178        '<p><strong>' . __('For more information:') . '</strong></p>' . 
    179179        '<p>' . __('<a href="http://codex.wordpress.org/Writing_Posts">Writing Posts Documentation</a>') . '</p>' . 
    180180        '<p>' . __('<a href="http://wordpress.org/support/">Support Forums</a>') . '</p>' 
  • wp-admin/edit.php

     
    180180} elseif ( 'page' == $post_type ) { 
    181181        add_contextual_help($current_screen, 
    182182        '<p>' . __('Pages are similar to to Posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest Pages under other Pages by making one the "Parent" of the other, creating a group of Pages.') . '</p>' . 
    183         '<p>' . __('Managing Pages is very similar to managing Posts, and the screens can be customized in the same way. ') . '</p>' . 
     183        '<p>' . __('Managing Pages is very similar to managing Posts, and the screens can be customized in the same way.') . '</p>' . 
    184184        '<p>' . __('You can also perform the same types of actions, including narrowing the list by using the filters, acting on a Page using the action links that appear when you hover over a row, or using the Bulk Actions menu to edit the metadata for multiple Pages at once.') . '</p>' . 
    185185        '<p><strong>' . __('For more information:') . '</strong></p>' . 
    186186        '<p>' . __('<a href="http://codex.wordpress.org/Pages_Edit_SubPanel">Page Management Documentation</a>') . '</p>' . 
  • wp-admin/ms-admin.php

     
    2020 
    2121add_contextual_help($current_screen,  
    2222        '<p>' . __('Until WordPress 3.0, running multiple sites required using WordPress MU instead of regular WordPress. In version 3.0, these applications have merged. If you are a former MU user, you should be aware of the following changes:') . '</p>' . 
    23         '<ul><li>' . __('Site Admin is now Super Admin (we highly encourage you to get yourself a cape!)') . '</li>' . 
    24         '<li>' . __('Blogs are now called Sites; Site is now called Network') . '</li></ul>' . 
     23        '<ul><li>' . __('Site Admin is now Super Admin (we highly encourage you to get yourself a cape!).') . '</li>' . 
     24        '<li>' . __('Blogs are now called Sites; Site is now called Network.') . '</li></ul>' . 
    2525        '<p>' . __('This screen provides the network administrator with links to the screens for Sites and Users to either create a new site or user, or to search existing users and sites. Those screens are also accessible through the left-hand navigation in the Super Admin section.') . '</p>' . 
    2626        '<p><strong>' . __('For more information:') . '</strong></p>' . 
    2727        '<p>' . __('<a href="http://codex.wordpress.org/Super_Admin_Super_Admin_Menu">Network Admin Documentation</a>') . '</p>' . 
  • wp-admin/link-manager.php

     
    4545$this_file = $parent_file = 'link-manager.php'; 
    4646 
    4747add_contextual_help( $current_screen, 
    48         '<p>' . sprintf(__('You can add links here to be displayed on your site, usually using <a href="%s">Widgets</a>. By default, links to several sites in the WordPress community are included as examples'), 'widgets.php') . '</p>' . 
     48        '<p>' . sprintf(__('You can add links here to be displayed on your site, usually using <a href="%s">Widgets</a>. By default, links to several sites in the WordPress community are included as examples.'), 'widgets.php') . '</p>' . 
    4949    '<p>' . __('Links may be separated into categories; these are different than the categories used on your posts.') . '</p>' . 
    5050    '<p>' . __('You can customize the display of this screen using the Screen Options tab and/or the dropdown filters above the links table.') . '</p>' . 
    51     '<p>' . __('If you delete a link, it will be removed permanently, as Links do not have a Trash function yet. ') . '</p>' . 
     51    '<p>' . __('If you delete a link, it will be removed permanently, as Links do not have a Trash function yet.') . '</p>' . 
    5252        '<p><strong>' . __('For more information:') . '</strong></p>' . 
    5353        '<p>' . __('<a href="http://codex.wordpress.org/Links_Edit_SubPanel">Link Management Documentation</a>') . '</p>' . 
    5454        '<p>' . __('<a href="http://wordpress.org/support/">Support Forums</a>') . '</p>' 
  • wp-admin/theme-install.php

     
    5555 
    5656$help = '<p>' . __('You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the WordPress.org theme repository. These themes are designed and developed by third parties, are available free of charge, and are licensed under the GNU General Public License, version 2, just like WordPress.') . '</p>'; 
    5757$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>'; 
    58 $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 wp-content/themes directory.') . '</p>'; 
     58$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 /wp-content/themes directory.') . '</p>'; 
    5959$help .= '<p><strong>' . __('For more information:') . '</strong></p>'; 
    6060$help .= '<p>' . __('<a href="http://codex.wordpress.org/Using_Themes#Adding_New_Themes">Documentation on Using Themes</a>') . '</p>'; 
    6161$help .= '<p>' . __('<a href="http://wordpress.org/support/">Support Forums</a>') . '</p>'; 
  • wp-admin/update-core.php

     
    383383 
    384384add_contextual_help($current_screen, 
    385385        '<p>' . __('This screen lets you update to the latest version of WordPress as well as update your themes and plugins from the WordPress.org repository. When updates are available, the number of available updates will appear in a bubble on the left hand menu as a notification. It is very important to keep your WordPress installation up to date for security reasons, so when you see a number appear, make sure you take the time to update, which is an easy process.') . '</p>' . 
    386         '<p>' . __('Updating your WordPress installation is a simple one-click procedure; just click on the Update button when it says a new version is available. ') . '</p>' . 
     386        '<p>' . __('Updating your WordPress installation is a simple one-click procedure; just click on the Update button when it says a new version is available.') . '</p>' . 
    387387        '<p>' . __('To upgrade themes or plugins from this screen, use the checkboxes to make your selection and click on the appropriate Update button. Check the box at the top of the Themes or Plugins section to select all and update them all at once.') . '</p>' 
    388388); 
    389389 
  • wp-admin/options-permalink.php

     
    2020        '<p>' . __('If you pick an option other than Default, your general URL path with structure tags, terms surrounded by %, will also appear in the custom structure field and your path can be further modified there.') . '</p>' . 
    2121        '<p>' . __('When you assign multiple categories or tags to a post, only one can show up in the permalink: the lowest numbered category. This applies if your custom structure includes %category% or %tag%.') . '</p>' . 
    2222        '<p>' . __('Note that permalinks beginning with structure tags calling Category, Tag, Author, or Postname require more advanced server resources. Double-check your hosting details to make sure those are in place or start your permalinks with other structure tags.') . '</p>' . 
    23         '<p>' . __('The Optional fields lets you have add a base name that will appear in archive URLs intead of &#8220;category&#8221; or &#8220;tag.&#8221; For example, the page listing all posts in the category &#8220;uncategorized&#8221; could be /topics/uncategorized instead of category/uncategorized.') . '</p>' . 
     23        '<p>' . __('The Optional fields lets you have add a base name that will appear in archive URLs intead of &#8220;category&#8221; or &#8220;tag.&#8221; For example, the page listing all posts in the category &#8220;uncategorized&#8221; could be /topics/uncategorized instead of /category/uncategorized.') . '</p>' . 
    2424        '<p>' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>' . 
    2525        '<p><strong>' . __('For more information:') . '</strong></p>' . 
    2626        '<p>' . __('<a href="http://codex.wordpress.org/Settings_Permalinks_SubPanel">Permalinks Settings Documentation</a>') . '</p>' . 
  • wp-admin/plugin-editor.php

     
    108108        } 
    109109 
    110110        add_contextual_help($current_screen, 
    111                 '<p>' . __('You can use the editor to make changes to any of your plugins&#8217; individual PHP files. Be aware that if you make changes, plugins updates will overwrite your customizations. ') . '</p>' . 
     111                '<p>' . __('You can use the editor to make changes to any of your plugins&#8217; individual PHP files. Be aware that if you make changes, plugins updates will overwrite your customizations.') . '</p>' . 
    112112                '<p>' . __('Choose a plugin to edit from the menu in the upper right and click the Select button. Click once on any file name to load it in the editor, and make your changes. Don&#8217;t forget to save your changes (Update File) when you&#8217;re finished.') . '</p>' . 
    113                 '<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>' . 
     113                '<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>' . 
    114114                '<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 a plugin or start from scratch, check out the links below.') . '</p>' . 
    115115                '<p><strong>' . __('For more information:') . '</strong></p>' . 
    116116                '<p>' . __('<a href="http://codex.wordpress.org/Plugins_Editor_SubPanel">Documentation on Editing Plugins</a>') . '</p>' . 
  • wp-admin/custom-background.php

     
    8080         * @since 3.0.0 
    8181         */ 
    8282        function admin_load() { 
    83                 add_contextual_help( $this->page, '<p>' . __( 'You can customize the look of your site without touching any of your theme&#8217;s code by using a custom background. Your background can be an image or a color. ' ) . '</p>' . 
    84                 '<p>' . __( 'To use a background image, simply upload it, then choose your display options below. You can display a single instance of your image, or tile it to fill the screen. You can have your background fixed in place, so your site content moves on top of it, or you can have it scroll with your site. ' ) . '</p>' . 
    85                 '<p>' . __( 'You can also choose a background color. If you know the hexadecimal code for the color you want, enter it in the Color field. If not, click on the Select a Color link, and a color picker will allow you to choose the exact shade you want. ' ) . '</p>' . 
    86                 '<p>' . __( 'Don&#8217;t forget to click on the Save Changes button when you are finished. ' ) . '</p>' . 
     83                add_contextual_help( $this->page, '<p>' . __( 'You can customize the look of your site without touching any of your theme&#8217;s code by using a custom background. Your background can be an image or a color.' ) . '</p>' . 
     84                '<p>' . __( 'To use a background image, simply upload it, then choose your display options below. You can display a single instance of your image, or tile it to fill the screen. You can have your background fixed in place, so your site content moves on top of it, or you can have it scroll with your site.' ) . '</p>' . 
     85                '<p>' . __( 'You can also choose a background color. If you know the hexadecimal code for the color you want, enter it in the Color field. If not, click on the Select a Color link, and a color picker will allow you to choose the exact shade you want.' ) . '</p>' . 
     86                '<p>' . __( 'Don&#8217;t forget to click on the Save Changes button when you are finished.' ) . '</p>' . 
    8787                '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 
    8888                '<p>' . __( '<a href="http://codex.wordpress.org/" target="_blank">Documentation</a>' ) . '</p>' . 
    8989                '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>' );