Make WordPress Core

Changeset 45602


Ignore:
Timestamp:
07/05/2019 05:20:52 AM (5 years ago)
Author:
pento
Message:

Coding Standards: Fix all WordPress.WhiteSpace.PrecisionAlignment issues.

See #47632.

Location:
trunk
Files:
29 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/comment.php

    r45583 r45602  
    4747                'title'   => __( 'Overview' ),
    4848                'content' =>
    49                       '<p>' . __( 'You can edit the information left in a comment if needed. This is often useful when you notice that a commenter has made a typographical error.' ) . '</p>' .
    50                       '<p>' . __( 'You can also moderate the comment from this screen using the Status box, where you can also change the timestamp of the comment.' ) . '</p>',
     49                    '<p>' . __( 'You can edit the information left in a comment if needed. This is often useful when you notice that a commenter has made a typographical error.' ) . '</p>' .
     50                    '<p>' . __( 'You can also moderate the comment from this screen using the Status box, where you can also change the timestamp of the comment.' ) . '</p>',
    5151            )
    5252        );
  • trunk/src/wp-admin/edit-comments.php

    r45599 r45602  
    186186        'title'   => __( 'Overview' ),
    187187        'content' =>
    188                  '<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>',
     188                '<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>',
    189189    )
    190190);
     
    194194        'title'   => __( 'Moderating Comments' ),
    195195        'content' =>
    196                      '<p>' . __( 'A red bar on the left means the comment is waiting for you to moderate it.' ) . '</p>' .
    197                      '<p>' . __( 'In the <strong>Author</strong> 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>' .
    198                      '<p>' . __( 'In the <strong>Comment</strong> column, hovering over any comment gives you options to approve, reply (and approve), quick edit, edit, spam mark, or trash that comment.' ) . '</p>' .
    199                      '<p>' . __( 'In the <strong>In Response To</strong> 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 View Post link leads to that post on your live site. The small bubble with the number in it shows the number of approved comments that post has received. If there are pending comments, a red notification circle with the number of pending comments is displayed. Clicking the notification circle will filter the comments screen to show only pending comments on that post.' ) . '</p>' .
    200                      '<p>' . __( 'In the <strong>Submitted On</strong> column, the date and time the comment was left on your site appears. Clicking on the date/time link will take you to that comment on your live site.' ) . '</p>' .
    201                      '<p>' . __( 'Many people take advantage of keyboard shortcuts to moderate their comments more quickly. Use the link to the side to learn more.' ) . '</p>',
     196                    '<p>' . __( 'A red bar on the left means the comment is waiting for you to moderate it.' ) . '</p>' .
     197                    '<p>' . __( 'In the <strong>Author</strong> 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>' .
     198                    '<p>' . __( 'In the <strong>Comment</strong> column, hovering over any comment gives you options to approve, reply (and approve), quick edit, edit, spam mark, or trash that comment.' ) . '</p>' .
     199                    '<p>' . __( 'In the <strong>In Response To</strong> 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 View Post link leads to that post on your live site. The small bubble with the number in it shows the number of approved comments that post has received. If there are pending comments, a red notification circle with the number of pending comments is displayed. Clicking the notification circle will filter the comments screen to show only pending comments on that post.' ) . '</p>' .
     200                    '<p>' . __( 'In the <strong>Submitted On</strong> column, the date and time the comment was left on your site appears. Clicking on the date/time link will take you to that comment on your live site.' ) . '</p>' .
     201                    '<p>' . __( 'Many people take advantage of keyboard shortcuts to moderate their comments more quickly. Use the link to the side to learn more.' ) . '</p>',
    202202    )
    203203);
  • trunk/src/wp-admin/edit.php

    r45599 r45602  
    215215            'title'   => __( 'Overview' ),
    216216            'content' =>
    217                      '<p>' . __( 'This screen provides access to all of your posts. You can customize the display of this screen to suit your workflow.' ) . '</p>',
     217                    '<p>' . __( 'This screen provides access to all of your posts. You can customize the display of this screen to suit your workflow.' ) . '</p>',
    218218        )
    219219    );
     
    223223            'title'   => __( 'Screen Content' ),
    224224            'content' =>
    225                      '<p>' . __( 'You can customize the display of this screen&#8217;s contents in a number of ways:' ) . '</p>' .
    226                      '<ul>' .
    227                          '<li>' . __( 'You can hide/display columns based on your needs and decide how many posts to list per screen using the Screen Options tab.' ) . '</li>' .
    228                          '<li>' . __( 'You can filter the list of posts by post status using the text links above the posts list to only show posts with that status. The default view is to show all posts.' ) . '</li>' .
    229                          '<li>' . __( 'You can view posts in a simple title list or with an excerpt using the Screen Options tab.' ) . '</li>' .
    230                          '<li>' . __( 'You can refine the list to show only posts in a specific category or from a specific month by using the dropdown menus above the posts list. Click the Filter button after making your selection. You also can refine the list by clicking on the post author, category or tag in the posts list.' ) . '</li>' .
    231                      '</ul>',
     225                    '<p>' . __( 'You can customize the display of this screen&#8217;s contents in a number of ways:' ) . '</p>' .
     226                    '<ul>' .
     227                        '<li>' . __( 'You can hide/display columns based on your needs and decide how many posts to list per screen using the Screen Options tab.' ) . '</li>' .
     228                        '<li>' . __( 'You can filter the list of posts by post status using the text links above the posts list to only show posts with that status. The default view is to show all posts.' ) . '</li>' .
     229                        '<li>' . __( 'You can view posts in a simple title list or with an excerpt using the Screen Options tab.' ) . '</li>' .
     230                        '<li>' . __( 'You can refine the list to show only posts in a specific category or from a specific month by using the dropdown menus above the posts list. Click the Filter button after making your selection. You also can refine the list by clicking on the post author, category or tag in the posts list.' ) . '</li>' .
     231                    '</ul>',
    232232        )
    233233    );
     
    237237            'title'   => __( 'Available Actions' ),
    238238            'content' =>
    239                      '<p>' . __( 'Hovering over a row in the posts list will display action links that allow you to manage your post. You can perform the following actions:' ) . '</p>' .
    240                      '<ul>' .
    241                          '<li>' . __( '<strong>Edit</strong> takes you to the editing screen for that post. You can also reach that screen by clicking on the post title.' ) . '</li>' .
    242                          '<li>' . __( '<strong>Quick Edit</strong> provides inline access to the metadata of your post, allowing you to update post details without leaving this screen.' ) . '</li>' .
    243                          '<li>' . __( '<strong>Trash</strong> removes your post from this list and places it in the trash, from which you can permanently delete it.' ) . '</li>' .
    244                          '<li>' . __( '<strong>Preview</strong> will show you what your draft post will look like if you publish it. View will take you to your live site to view the post. Which link is available depends on your post&#8217;s status.' ) . '</li>' .
    245                      '</ul>',
     239                    '<p>' . __( 'Hovering over a row in the posts list will display action links that allow you to manage your post. You can perform the following actions:' ) . '</p>' .
     240                    '<ul>' .
     241                        '<li>' . __( '<strong>Edit</strong> takes you to the editing screen for that post. You can also reach that screen by clicking on the post title.' ) . '</li>' .
     242                        '<li>' . __( '<strong>Quick Edit</strong> provides inline access to the metadata of your post, allowing you to update post details without leaving this screen.' ) . '</li>' .
     243                        '<li>' . __( '<strong>Trash</strong> removes your post from this list and places it in the trash, from which you can permanently delete it.' ) . '</li>' .
     244                        '<li>' . __( '<strong>Preview</strong> will show you what your draft post will look like if you publish it. View will take you to your live site to view the post. Which link is available depends on your post&#8217;s status.' ) . '</li>' .
     245                    '</ul>',
    246246        )
    247247    );
     
    251251            'title'   => __( 'Bulk Actions' ),
    252252            'content' =>
    253                      '<p>' . __( 'You can also edit or move multiple posts to the trash at once. Select the posts you want to act on using the checkboxes, then select the action you want to take from the Bulk Actions menu and click Apply.' ) . '</p>' .
    254                              '<p>' . __( 'When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the x next to its name in the Bulk Edit area that appears.' ) . '</p>',
     253                    '<p>' . __( 'You can also edit or move multiple posts to the trash at once. Select the posts you want to act on using the checkboxes, then select the action you want to take from the Bulk Actions menu and click Apply.' ) . '</p>' .
     254                            '<p>' . __( 'When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the x next to its name in the Bulk Edit area that appears.' ) . '</p>',
    255255        )
    256256    );
     
    268268            'title'   => __( 'Overview' ),
    269269            'content' =>
    270                      '<p>' . __( 'Pages are similar 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 &#8220;Parent&#8221; of the other, creating a group of pages.' ) . '</p>',
     270                    '<p>' . __( 'Pages are similar 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 &#8220;Parent&#8221; of the other, creating a group of pages.' ) . '</p>',
    271271        )
    272272    );
     
    276276            'title'   => __( 'Managing Pages' ),
    277277            'content' =>
    278                      '<p>' . __( 'Managing pages is very similar to managing posts, and the screens can be customized in the same way.' ) . '</p>' .
    279                      '<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>',
     278                    '<p>' . __( 'Managing pages is very similar to managing posts, and the screens can be customized in the same way.' ) . '</p>' .
     279                    '<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>',
    280280        )
    281281    );
  • trunk/src/wp-admin/export.php

    r45140 r45602  
    2727<script type="text/javascript">
    2828    jQuery(document).ready(function($){
    29          var form = $('#export-filters'),
    30              filters = form.find('.export-filters');
    31          filters.hide();
    32          form.find('input:radio').change(function() {
     29        var form = $('#export-filters'),
     30            filters = form.find('.export-filters');
     31        filters.hide();
     32        form.find('input:radio').change(function() {
    3333            filters.slideUp('fast');
    3434            switch ( $(this).val() ) {
     
    3737                case 'pages': $('#page-filters').slideDown(); break;
    3838            }
    39          });
     39        });
    4040    });
    4141</script>
  • trunk/src/wp-admin/includes/template.php

    r45599 r45602  
    19511951</head>
    19521952    <?php
     1953    /**
     1954     * @global string $body_id
     1955     */
     1956    $admin_body_id = isset( $GLOBALS['body_id'] ) ? 'id="' . $GLOBALS['body_id'] . '" ' : '';
     1957
    19531958    /** This filter is documented in wp-admin/admin-header.php */
    19541959    $admin_body_classes = apply_filters( 'admin_body_class', '' );
    19551960    $admin_body_classes = ltrim( $admin_body_classes . ' ' . $admin_body_class );
    19561961    ?>
    1957 <body
    1958     <?php
    1959     /**
    1960      * @global string $body_id
    1961      */
    1962     if ( isset( $GLOBALS['body_id'] ) ) {
    1963         echo ' id="' . $GLOBALS['body_id'] . '"';
    1964     }
    1965     ?>
    1966  class="wp-admin wp-core-ui no-js iframe <?php echo $admin_body_classes; ?>">
     1962<body <?php echo $admin_body_id; ?>class="wp-admin wp-core-ui no-js iframe <?php echo $admin_body_classes; ?>">
    19671963<script type="text/javascript">
    19681964(function(){
  • trunk/src/wp-admin/includes/upgrade.php

    r45583 r45602  
    526526
    527527        /*
    528           * Flush rules with the hard option to force refresh of the web-server's
    529           * rewrite config file (e.g. .htaccess or web.config).
    530           */
     528         * Flush rules with the hard option to force refresh of the web-server's
     529         * rewrite config file (e.g. .htaccess or web.config).
     530         */
    531531        $wp_rewrite->flush_rules( true );
    532532
     
    540540
    541541        /*
    542           * Send a request to the site, and check whether
    543           * the 'x-pingback' header is returned as expected.
    544           *
    545           * Uses wp_remote_get() instead of wp_remote_head() because web servers
    546           * can block head requests.
    547           */
     542         * Send a request to the site, and check whether
     543         * the 'x-pingback' header is returned as expected.
     544         *
     545         * Uses wp_remote_get() instead of wp_remote_head() because web servers
     546         * can block head requests.
     547         */
    548548        $response          = wp_remote_get( $test_url, array( 'timeout' => 5 ) );
    549549        $x_pingback_header = wp_remote_retrieve_header( $response, 'x-pingback' );
  • trunk/src/wp-admin/link-manager.php

    r45599 r45602  
    5454        'title'   => __( 'Overview' ),
    5555        'content' =>
    56              '<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>' .
    57              '<p>' . __( 'Links may be separated into Link Categories; these are different than the categories used on your posts.' ) . '</p>' .
    58              '<p>' . __( 'You can customize the display of this screen using the Screen Options tab and/or the dropdown filters above the links table.' ) . '</p>',
     56            '<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>' .
     57            '<p>' . __( 'Links may be separated into Link Categories; these are different than the categories used on your posts.' ) . '</p>' .
     58            '<p>' . __( 'You can customize the display of this screen using the Screen Options tab and/or the dropdown filters above the links table.' ) . '</p>',
    5959    )
    6060);
     
    6464        'title'   => __( 'Deleting Links' ),
    6565        'content' =>
    66              '<p>' . __( 'If you delete a link, it will be removed permanently, as Links do not have a Trash function yet.' ) . '</p>',
     66            '<p>' . __( 'If you delete a link, it will be removed permanently, as Links do not have a Trash function yet.' ) . '</p>',
    6767    )
    6868);
  • trunk/src/wp-admin/media-new.php

    r45140 r45602  
    4848        'title'   => __( 'Overview' ),
    4949        'content' =>
    50                  '<p>' . __( 'You can upload media files here without creating a post first. This allows you to upload files to use with posts and pages later and/or to get a web link for a particular file that you can share. There are three options for uploading files:' ) . '</p>' .
    51                  '<ul>' .
    52                      '<li>' . __( '<strong>Drag and drop</strong> your files into the area below. Multiple files are allowed.' ) . '</li>' .
    53                      '<li>' . __( 'Clicking <strong>Select Files</strong> opens a navigation window showing you files in your operating system. Selecting <strong>Open</strong> after clicking on the file you want activates a progress bar on the uploader screen.' ) . '</li>' .
    54                      '<li>' . __( 'Revert to the <strong>Browser Uploader</strong> by clicking the link below the drag and drop box.' ) . '</li>' .
    55                  '</ul>',
     50                '<p>' . __( 'You can upload media files here without creating a post first. This allows you to upload files to use with posts and pages later and/or to get a web link for a particular file that you can share. There are three options for uploading files:' ) . '</p>' .
     51                '<ul>' .
     52                    '<li>' . __( '<strong>Drag and drop</strong> your files into the area below. Multiple files are allowed.' ) . '</li>' .
     53                    '<li>' . __( 'Clicking <strong>Select Files</strong> opens a navigation window showing you files in your operating system. Selecting <strong>Open</strong> after clicking on the file you want activates a progress bar on the uploader screen.' ) . '</li>' .
     54                    '<li>' . __( 'Revert to the <strong>Browser Uploader</strong> by clicking the link below the drag and drop box.' ) . '</li>' .
     55                '</ul>',
    5656    )
    5757);
  • trunk/src/wp-admin/media.php

    r45583 r45602  
    8585                'title'   => __( 'Overview' ),
    8686                'content' =>
    87                       '<p>' . __( 'This screen allows you to edit fields for metadata in a file within the media library.' ) . '</p>' .
    88                       '<p>' . __( 'For images only, you can click on Edit Image under the thumbnail to expand out an inline image editor with icons for cropping, rotating, or flipping the image as well as for undoing and redoing. The boxes on the right give you more options for scaling the image, for cropping it, and for cropping the thumbnail in a different way than you crop the original image. You can click on Help in those boxes to get more information.' ) . '</p>' .
    89                       '<p>' . __( 'Note that you crop the image by clicking on it (the Crop icon is already selected) and dragging the cropping frame to select the desired part. Then click Save to retain the cropping.' ) . '</p>' .
    90                       '<p>' . __( 'Remember to click Update Media to save metadata entered or changed.' ) . '</p>',
     87                    '<p>' . __( 'This screen allows you to edit fields for metadata in a file within the media library.' ) . '</p>' .
     88                    '<p>' . __( 'For images only, you can click on Edit Image under the thumbnail to expand out an inline image editor with icons for cropping, rotating, or flipping the image as well as for undoing and redoing. The boxes on the right give you more options for scaling the image, for cropping it, and for cropping the thumbnail in a different way than you crop the original image. You can click on Help in those boxes to get more information.' ) . '</p>' .
     89                    '<p>' . __( 'Note that you crop the image by clicking on it (the Crop icon is already selected) and dragging the cropping frame to select the desired part. Then click Save to retain the cropping.' ) . '</p>' .
     90                    '<p>' . __( 'Remember to click Update Media to save metadata entered or changed.' ) . '</p>',
    9191            )
    9292        );
  • trunk/src/wp-admin/plugin-editor.php

    r45431 r45602  
    123123            'title'   => __( 'Overview' ),
    124124            'content' =>
    125                      '<p>' . __( 'You can use the plugin 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>' .
    126                      '<p>' . __( 'Choose a plugin to edit from the dropdown menu 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>' .
    127                      '<p>' . __( 'The Documentation menu below the editor lists the PHP functions recognized in the plugin file. Clicking Look Up takes you to a web page about that particular function.' ) . '</p>' .
    128                      '<p id="editor-keyboard-trap-help-1">' . __( 'When using a keyboard to navigate:' ) . '</p>' .
    129                      '<ul>' .
    130                      '<li id="editor-keyboard-trap-help-2">' . __( 'In the editing area, the Tab key enters a tab character.' ) . '</li>' .
    131                      '<li id="editor-keyboard-trap-help-3">' . __( 'To move away from this area, press the Esc key followed by the Tab key.' ) . '</li>' .
    132                      '<li id="editor-keyboard-trap-help-4">' . __( 'Screen reader users: when in forms mode, you may need to press the Esc key twice.' ) . '</li>' .
    133                      '</ul>' .
    134                      '<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>' .
    135                      ( is_network_admin() ? '<p>' . __( 'Any edits to files from this screen will be reflected on all sites in the network.' ) . '</p>' : '' ),
     125                    '<p>' . __( 'You can use the plugin 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>' .
     126                    '<p>' . __( 'Choose a plugin to edit from the dropdown menu 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>' .
     127                    '<p>' . __( 'The Documentation menu below the editor lists the PHP functions recognized in the plugin file. Clicking Look Up takes you to a web page about that particular function.' ) . '</p>' .
     128                    '<p id="editor-keyboard-trap-help-1">' . __( 'When using a keyboard to navigate:' ) . '</p>' .
     129                    '<ul>' .
     130                    '<li id="editor-keyboard-trap-help-2">' . __( 'In the editing area, the Tab key enters a tab character.' ) . '</li>' .
     131                    '<li id="editor-keyboard-trap-help-3">' . __( 'To move away from this area, press the Esc key followed by the Tab key.' ) . '</li>' .
     132                    '<li id="editor-keyboard-trap-help-4">' . __( 'Screen reader users: when in forms mode, you may need to press the Esc key twice.' ) . '</li>' .
     133                    '</ul>' .
     134                    '<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>' .
     135                    ( is_network_admin() ? '<p>' . __( 'Any edits to files from this screen will be reflected on all sites in the network.' ) . '</p>' : '' ),
    136136        )
    137137    );
  • trunk/src/wp-admin/plugin-install.php

    r45140 r45602  
    8484        'title'   => __( 'Overview' ),
    8585        'content' =>
    86                  '<p>' . sprintf( __( 'Plugins hook into WordPress to extend its functionality with custom features. Plugins are developed independently from the core WordPress application by thousands of developers all over the world. All plugins in the official <a href="%s">WordPress Plugin Directory</a> are compatible with the license WordPress uses.' ), __( 'https://wordpress.org/plugins/' ) ) . '</p>' .
    87                  '<p>' . __( 'You can find new plugins to install by searching or browsing the directory right here in your own Plugins section.' ) . ' <span id="live-search-desc" class="hide-if-no-js">' . __( 'The search results will be updated as you type.' ) . '</span></p>',
     86                '<p>' . sprintf( __( 'Plugins hook into WordPress to extend its functionality with custom features. Plugins are developed independently from the core WordPress application by thousands of developers all over the world. All plugins in the official <a href="%s">WordPress Plugin Directory</a> are compatible with the license WordPress uses.' ), __( 'https://wordpress.org/plugins/' ) ) . '</p>' .
     87                '<p>' . __( 'You can find new plugins to install by searching or browsing the directory right here in your own Plugins section.' ) . ' <span id="live-search-desc" class="hide-if-no-js">' . __( 'The search results will be updated as you type.' ) . '</span></p>',
    8888
    8989    )
     
    9494        'title'   => __( 'Adding Plugins' ),
    9595        'content' =>
    96                  '<p>' . __( 'If you know what you&#8217;re looking for, Search is your best bet. The Search screen has options to search the WordPress Plugin Directory for a particular Term, Author, or Tag. You can also search the directory by selecting popular tags. Tags in larger type mean more plugins have been labeled with that tag.' ) . '</p>' .
    97                  '<p>' . __( 'If you just want to get an idea of what&#8217;s available, you can browse Featured and Popular plugins by using the links above the plugins list. These sections rotate regularly.' ) . '</p>' .
    98                  '<p>' . __( 'You can also browse a user&#8217;s favorite plugins, by using the Favorites link above the plugins list and entering their WordPress.org username.' ) . '</p>' .
    99                  '<p>' . __( 'If you want to install a plugin that you&#8217;ve downloaded elsewhere, click the Upload Plugin button above the plugins list. You will be prompted to upload the .zip package, and once uploaded, you can activate the new plugin.' ) . '</p>',
     96                '<p>' . __( 'If you know what you&#8217;re looking for, Search is your best bet. The Search screen has options to search the WordPress Plugin Directory for a particular Term, Author, or Tag. You can also search the directory by selecting popular tags. Tags in larger type mean more plugins have been labeled with that tag.' ) . '</p>' .
     97                '<p>' . __( 'If you just want to get an idea of what&#8217;s available, you can browse Featured and Popular plugins by using the links above the plugins list. These sections rotate regularly.' ) . '</p>' .
     98                '<p>' . __( 'You can also browse a user&#8217;s favorite plugins, by using the Favorites link above the plugins list and entering their WordPress.org username.' ) . '</p>' .
     99                '<p>' . __( 'If you want to install a plugin that you&#8217;ve downloaded elsewhere, click the Upload Plugin button above the plugins list. You will be prompted to upload the .zip package, and once uploaded, you can activate the new plugin.' ) . '</p>',
    100100    )
    101101);
  • trunk/src/wp-admin/plugins.php

    r45599 r45602  
    439439        'title'   => __( 'Overview' ),
    440440        'content' =>
    441                  '<p>' . __( 'Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.' ) . '</p>' .
    442                  '<p>' . __( 'The search for installed plugins will search for terms in their name, description, or author.' ) . ' <span id="live-search-desc" class="hide-if-no-js">' . __( 'The search results will be updated as you type.' ) . '</span></p>' .
     441                '<p>' . __( 'Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.' ) . '</p>' .
     442                '<p>' . __( 'The search for installed plugins will search for terms in their name, description, or author.' ) . ' <span id="live-search-desc" class="hide-if-no-js">' . __( 'The search results will be updated as you type.' ) . '</span></p>' .
    443443                '<p>' . sprintf(
    444444                    /* translators: %s: WordPress Plugin Directory URL */
    445                      __( 'If you would like to see more plugins to choose from, click on the &#8220;Add New&#8221; button and you will be able to browse or search for additional plugins from the <a href="%s">WordPress Plugin Directory</a>. Plugins in the WordPress Plugin Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they&#8217;re free!' ),
     445                    __( 'If you would like to see more plugins to choose from, click on the &#8220;Add New&#8221; button and you will be able to browse or search for additional plugins from the <a href="%s">WordPress Plugin Directory</a>. Plugins in the WordPress Plugin Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they&#8217;re free!' ),
    446446                    __( 'https://wordpress.org/plugins/' )
    447447                ) . '</p>',
     
    453453        'title'   => __( 'Troubleshooting' ),
    454454        'content' =>
    455                  '<p>' . __( 'Most of the time, plugins play nicely with the core of WordPress and with other plugins. Sometimes, though, a plugin&#8217;s code will get in the way of another plugin, causing compatibility issues. If your site starts doing strange things, this may be the problem. Try deactivating all your plugins and re-activating them in various combinations until you isolate which one(s) caused the issue.' ) . '</p>' .
     455                '<p>' . __( 'Most of the time, plugins play nicely with the core of WordPress and with other plugins. Sometimes, though, a plugin&#8217;s code will get in the way of another plugin, causing compatibility issues. If your site starts doing strange things, this may be the problem. Try deactivating all your plugins and re-activating them in various combinations until you isolate which one(s) caused the issue.' ) . '</p>' .
    456456                '<p>' . sprintf(
    457457                    /* translators: WP_PLUGIN_DIR constant value */
    458                      __( 'If something goes wrong with a plugin and you can&#8217;t use WordPress, delete or rename that file in the %s directory and it will be automatically deactivated.' ),
     458                    __( 'If something goes wrong with a plugin and you can&#8217;t use WordPress, delete or rename that file in the %s directory and it will be automatically deactivated.' ),
    459459                    '<code>' . WP_PLUGIN_DIR . '</code>'
    460460                ) . '</p>',
  • trunk/src/wp-admin/post.php

    r45583 r45602  
    5656$sendback = wp_get_referer();
    5757if ( ! $sendback ||
    58      strpos( $sendback, 'post.php' ) !== false ||
    59      strpos( $sendback, 'post-new.php' ) !== false ) {
     58    strpos( $sendback, 'post.php' ) !== false ||
     59    strpos( $sendback, 'post-new.php' ) !== false ) {
    6060    if ( 'attachment' == $post_type ) {
    6161        $sendback = admin_url( 'upload.php' );
  • trunk/src/wp-admin/privacy-policy-guide.php

    r45448 r45602  
    2727<div class="wrap">
    2828    <h1><?php echo esc_html( $title ); ?></h1>
    29    
     29
    3030    <div class="wp-privacy-policy-guide">
    3131        <?php WP_Privacy_Policy_Content::privacy_policy_guide(); ?>
  • trunk/src/wp-admin/upload.php

    r45599 r45602  
    224224        'title'   => __( 'Overview' ),
    225225        'content' =>
    226                  '<p>' . __( 'All the files you&#8217;ve uploaded are listed in the Media Library, with the most recent uploads listed first. You can use the Screen Options tab to customize the display of this screen.' ) . '</p>' .
    227                  '<p>' . __( 'You can narrow the list by file type/status or by date using the dropdown menus above the media table.' ) . '</p>' .
    228                  '<p>' . __( 'You can view your media in a simple visual grid or a list with columns. Switch between these views using the icons to the left above the media.' ) . '</p>',
     226                '<p>' . __( 'All the files you&#8217;ve uploaded are listed in the Media Library, with the most recent uploads listed first. You can use the Screen Options tab to customize the display of this screen.' ) . '</p>' .
     227                '<p>' . __( 'You can narrow the list by file type/status or by date using the dropdown menus above the media table.' ) . '</p>' .
     228                '<p>' . __( 'You can view your media in a simple visual grid or a list with columns. Switch between these views using the icons to the left above the media.' ) . '</p>',
    229229    )
    230230);
     
    234234        'title'   => __( 'Available Actions' ),
    235235        'content' =>
    236                  '<p>' . __( 'Hovering over a row reveals action links: Edit, Delete Permanently, and View. Clicking Edit or on the media file&#8217;s name displays a simple screen to edit that individual file&#8217;s metadata. Clicking Delete Permanently will delete the file from the media library (as well as from any posts to which it is currently attached). View will take you to the display page for that file.' ) . '</p>',
     236                '<p>' . __( 'Hovering over a row reveals action links: Edit, Delete Permanently, and View. Clicking Edit or on the media file&#8217;s name displays a simple screen to edit that individual file&#8217;s metadata. Clicking Delete Permanently will delete the file from the media library (as well as from any posts to which it is currently attached). View will take you to the display page for that file.' ) . '</p>',
    237237    )
    238238);
     
    242242        'title'   => __( 'Attaching Files' ),
    243243        'content' =>
    244                  '<p>' . __( 'If a media file has not been attached to any content, you will see that in the Uploaded To column, and can click on Attach to launch a small popup that will allow you to search for existing content and attach the file.' ) . '</p>',
     244                '<p>' . __( 'If a media file has not been attached to any content, you will see that in the Uploaded To column, and can click on Attach to launch a small popup that will allow you to search for existing content and attach the file.' ) . '</p>',
    245245    )
    246246);
  • trunk/src/wp-admin/user-new.php

    r45542 r45602  
    241241        'title'   => __( 'User Roles' ),
    242242        'content' => '<p>' . __( 'Here is a basic overview of the different user roles and the permissions associated with each one:' ) . '</p>' .
    243                              '<ul>' .
    244                              '<li>' . __( 'Subscribers can read comments/comment/receive newsletters, etc. but cannot create regular site content.' ) . '</li>' .
    245                              '<li>' . __( 'Contributors can write and manage their posts but not publish posts or upload media files.' ) . '</li>' .
    246                              '<li>' . __( 'Authors can publish and manage their own posts, and are able to upload files.' ) . '</li>' .
    247                              '<li>' . __( 'Editors can publish posts, manage posts as well as manage other people&#8217;s posts, etc.' ) . '</li>' .
    248                              '<li>' . __( 'Administrators have access to all the administration features.' ) . '</li>' .
    249                              '</ul>',
     243                            '<ul>' .
     244                            '<li>' . __( 'Subscribers can read comments/comment/receive newsletters, etc. but cannot create regular site content.' ) . '</li>' .
     245                            '<li>' . __( 'Contributors can write and manage their posts but not publish posts or upload media files.' ) . '</li>' .
     246                            '<li>' . __( 'Authors can publish and manage their own posts, and are able to upload files.' ) . '</li>' .
     247                            '<li>' . __( 'Editors can publish posts, manage posts as well as manage other people&#8217;s posts, etc.' ) . '</li>' .
     248                            '<li>' . __( 'Administrators have access to all the administration features.' ) . '</li>' .
     249                            '</ul>',
    250250    )
    251251);
  • trunk/src/wp-admin/widgets.php

    r45583 r45602  
    5555        'title'   => __( 'Overview' ),
    5656        'content' =>
    57                  '<p>' . __( 'Widgets are independent sections of content that can be placed into any widgetized area provided by your theme (commonly called sidebars). To populate your sidebars/widget areas with individual widgets, drag and drop the title bars into the desired area. By default, only the first widget area is expanded. To populate additional widget areas, click on their title bars to expand them.' ) . '</p>
     57                '<p>' . __( 'Widgets are independent sections of content that can be placed into any widgetized area provided by your theme (commonly called sidebars). To populate your sidebars/widget areas with individual widgets, drag and drop the title bars into the desired area. By default, only the first widget area is expanded. To populate additional widget areas, click on their title bars to expand them.' ) . '</p>
    5858    <p>' . __( 'The Available Widgets section contains all the widgets you can choose from. Once you drag a widget into a sidebar, it will open to allow you to configure its settings. When you are happy with the widget settings, click the Save button and the widget will go live on your site. If you click Delete, it will remove the widget.' ) . '</p>',
    5959    )
     
    6464        'title'   => __( 'Removing and Reusing' ),
    6565        'content' =>
    66                  '<p>' . __( 'If you want to remove the widget but save its setting for possible future use, just drag it into the Inactive Widgets area. You can add them back anytime from there. This is especially helpful when you switch to a theme with fewer or different widget areas.' ) . '</p>
     66                '<p>' . __( 'If you want to remove the widget but save its setting for possible future use, just drag it into the Inactive Widgets area. You can add them back anytime from there. This is especially helpful when you switch to a theme with fewer or different widget areas.' ) . '</p>
    6767    <p>' . __( 'Widgets may be used multiple times. You can give each widget a title, to display on your site, but it&#8217;s not required.' ) . '</p>
    6868    <p>' . __( 'Enabling Accessibility Mode, via Screen Options, allows you to use Add and Edit buttons instead of using drag and drop.' ) . '</p>',
     
    7474        'title'   => __( 'Missing Widgets' ),
    7575        'content' =>
    76                  '<p>' . __( 'Many themes show some sidebar widgets by default until you edit your sidebars, but they are not automatically displayed in your sidebar management tool. After you make your first widget change, you can re-add the default widgets by adding them from the Available Widgets area.' ) . '</p>' .
    77                      '<p>' . __( 'When changing themes, there is often some variation in the number and setup of widget areas/sidebars and sometimes these conflicts make the transition a bit less smooth. If you changed themes and seem to be missing widgets, scroll down on this screen to the Inactive Widgets area, where all of your widgets and their settings will have been saved.' ) . '</p>',
     76                '<p>' . __( 'Many themes show some sidebar widgets by default until you edit your sidebars, but they are not automatically displayed in your sidebar management tool. After you make your first widget change, you can re-add the default widgets by adding them from the Available Widgets area.' ) . '</p>' .
     77                    '<p>' . __( 'When changing themes, there is often some variation in the number and setup of widget areas/sidebars and sometimes these conflicts make the transition a bit less smooth. If you changed themes and seem to be missing widgets, scroll down on this screen to the Inactive Widgets area, where all of your widgets and their settings will have been saved.' ) . '</p>',
    7878    )
    7979);
  • trunk/src/wp-content/themes/twentyeleven/functions.php

    r45256 r45602  
    189189             * @param int The default header image height in pixels. Default 288.
    190190             */
    191                'height'              => apply_filters( 'twentyeleven_header_image_height', 288 ),
     191            'height'                 => apply_filters( 'twentyeleven_header_image_height', 288 ),
    192192            // Support flexible heights.
    193193            'flex-height'            => true,
  • trunk/src/wp-content/themes/twentyten/functions.php

    r45256 r45602  
    172172             * @param int The default header image height in pixels. Default 198.
    173173             */
    174                'height'           => apply_filters( 'twentyten_header_image_height', 198 ),
     174            'height'              => apply_filters( 'twentyten_header_image_height', 198 ),
    175175            // Support flexible heights.
    176176            'flex-height'         => true,
  • trunk/src/wp-includes/class-wp-editor.php

    r45590 r45602  
    17721772                        <span class="spinner"></span>
    17731773                    </div>
    1774                  </div>
    1775              </div>
     1774                </div>
     1775            </div>
    17761776        </div>
    17771777        <div class="submitbox">
  • trunk/src/wp-includes/comment-template.php

    r45599 r45602  
    22762276    $fields   = array(
    22772277        'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
    2278                      '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" maxlength="245"' . $html_req . ' /></p>',
     2278                    '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" maxlength="245"' . $html_req . ' /></p>',
    22792279        'email'  => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
    2280                      '<input id="email" name="email" ' . ( $html5 ? 'type="email"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" maxlength="100" aria-describedby="email-notes"' . $html_req . ' /></p>',
     2280                    '<input id="email" name="email" ' . ( $html5 ? 'type="email"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" maxlength="100" aria-describedby="email-notes"' . $html_req . ' /></p>',
    22812281        'url'    => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label> ' .
    2282                      '<input id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" maxlength="200" /></p>',
     2282                    '<input id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" maxlength="200" /></p>',
    22832283    );
    22842284
     
    22862286        $consent           = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"';
    22872287        $fields['cookies'] = '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' .
    2288                              '<label for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment.' ) . '</label></p>';
     2288                            '<label for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment.' ) . '</label></p>';
    22892289
    22902290        // Ensure that the passed fields include cookies consent.
  • trunk/src/wp-includes/compat.php

    r45580 r45602  
    101101
    102102    $regex = '/(
    103           [\x00-\x7F]                  # single-byte sequences   0xxxxxxx
     103        [\x00-\x7F]                  # single-byte sequences   0xxxxxxx
    104104        | [\xC2-\xDF][\x80-\xBF]       # double-byte sequences   110xxxxx 10xxxxxx
    105105        | \xE0[\xA0-\xBF][\x80-\xBF]   # triple-byte sequences   1110xxxx 10xxxxxx * 2
     
    184184
    185185    $regex = '/(?:
    186           [\x00-\x7F]                  # single-byte sequences   0xxxxxxx
     186        [\x00-\x7F]                  # single-byte sequences   0xxxxxxx
    187187        | [\xC2-\xDF][\x80-\xBF]       # double-byte sequences   110xxxxx 10xxxxxx
    188188        | \xE0[\xA0-\xBF][\x80-\xBF]   # triple-byte sequences   1110xxxx 10xxxxxx * 2
  • trunk/src/wp-includes/deprecated.php

    r45424 r45602  
    248248
    249249    if ( (($user_id == $post_author_data->ID) && !($post->post_status == 'publish' && $author_data->user_level < 2))
    250              || ($author_data->user_level > $post_author_data->user_level)
    251              || ($author_data->user_level >= 10) ) {
     250            || ($author_data->user_level > $post_author_data->user_level)
     251            || ($author_data->user_level >= 10) ) {
    252252        return true;
    253253    } else {
     
    394394 */
    395395function get_linksbyname($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id',
    396                          $show_description = true, $show_rating = false,
    397                          $limit = -1, $show_updated = 0) {
     396                        $show_description = true, $show_rating = false,
     397                        $limit = -1, $show_updated = 0) {
    398398    _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' );
    399399
     
    566566 */
    567567function get_links_withrating($category = -1, $before = '', $after = '<br />', $between = " ", $show_images = true,
    568                               $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) {
     568                            $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) {
    569569    _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' );
    570570
     
    614614 */
    615615function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0,
    616                    $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0,
    617                    $recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false) {
     616                $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0,
     617                $recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false) {
    618618    _deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_categories()' );
    619619
  • trunk/src/wp-includes/formatting.php

    r45590 r45602  
    845845    $spaces    = wp_spaces_regexp();
    846846
    847     // phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation
     847    // phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound,WordPress.WhiteSpace.PrecisionAlignment.Found -- don't remove regex indentation
    848848    $pattern =
    849849        '/'
     
    29042904                )
    29052905                (\)?)                                                  # 3: Trailing closing parenthesis (for parethesis balancing post processing)
    2906             ~xS'; // The regex is a non-anchored pattern and does not have a single fixed starting character.
    2907                   // Tell PCRE to spend more time optimizing since, when used on a page load, it will probably be used several times.
     2906            ~xS';
     2907            // The regex is a non-anchored pattern and does not have a single fixed starting character.
     2908            // Tell PCRE to spend more time optimizing since, when used on a page load, it will probably be used several times.
    29082909
    29092910            $ret = preg_replace_callback( $url_clickable, '_make_url_clickable_cb', $ret );
  • trunk/src/wp-includes/functions.php

    r45590 r45602  
    32193219            -webkit-box-shadow: 0 1px 0 #ccc;
    32203220            box-shadow: 0 1px 0 #ccc;
    3221              vertical-align: top;
     3221            vertical-align: top;
    32223222        }
    32233223
     
    32453245            background: #eee;
    32463246            border-color: #999;
    3247              -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5);
    3248              box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5);
    3249              -webkit-transform: translateY(1px);
    3250              -ms-transform: translateY(1px);
    3251              transform: translateY(1px);
     3247            -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5);
     3248            box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5);
     3249            -webkit-transform: translateY(1px);
     3250            -ms-transform: translateY(1px);
     3251            transform: translateY(1px);
    32523252        }
    32533253
  • trunk/src/wp-includes/post.php

    r45590 r45602  
    29352935    if ( 'page' == $post->post_type ) {
    29362936        /*
    2937           * If the page is defined in option page_on_front or post_for_posts,
    2938           * adjust the corresponding options.
    2939           */
     2937         * If the page is defined in option page_on_front or post_for_posts,
     2938         * adjust the corresponding options.
     2939         */
    29402940        if ( get_option( 'page_on_front' ) == $post->ID ) {
    29412941            update_option( 'show_on_front', 'posts' );
  • trunk/src/wp-includes/theme-compat/sidebar.php

    r43571 r45602  
    1919        <ul>
    2020            <?php
    21               /* Widgetized sidebar, if you have the plugin installed. */
     21            /* Widgetized sidebar, if you have the plugin installed. */
    2222            if ( ! function_exists( 'dynamic_sidebar' ) || ! dynamic_sidebar() ) :
    2323                ?>
     
    3636                is_year() || is_search() || is_paged() ) :
    3737                    ?>
    38              <li>
     38            <li>
    3939
    4040                    <?php if ( is_404() ) : /* If this is a 404 page */ ?>
  • trunk/src/wp-includes/wp-db.php

    r45598 r45602  
    16231623                /*
    16241624                 * It's possible ext/mysqli is misconfigured. Fall back to ext/mysql if:
    1625                   *  - We haven't previously connected, and
    1626                   *  - WP_USE_EXT_MYSQL isn't set to false, and
    1627                   *  - ext/mysql is loaded.
    1628                   */
     1625                 *  - We haven't previously connected, and
     1626                 *  - WP_USE_EXT_MYSQL isn't set to false, and
     1627                 *  - ext/mysql is loaded.
     1628                 */
    16291629                $attempt_fallback = true;
    16301630
  • trunk/tests/phpunit/tests/functions.php

    r45588 r45602  
    13131313                array(
    13141314                    // Standard non-image file.
    1315                      array(
    1316                          DIR_TESTDATA . '/formatting/big5.txt',
    1317                          'big5.txt',
    1318                          array(
    1319                              'ext'             => 'txt',
    1320                              'type'            => 'text/plain',
    1321                              'proper_filename' => false,
    1322                          ),
    1323                      ),
     1315                    array(
     1316                        DIR_TESTDATA . '/formatting/big5.txt',
     1317                        'big5.txt',
     1318                        array(
     1319                            'ext'             => 'txt',
     1320                            'type'            => 'text/plain',
     1321                            'proper_filename' => false,
     1322                        ),
     1323                    ),
    13241324                    // Non-image file with wrong sub-type.
    13251325                    array(
Note: See TracChangeset for help on using the changeset viewer.