Make WordPress Core

Changeset 54866


Ignore:
Timestamp:
11/23/2022 03:41:39 PM (23 months ago)
Author:
SergeyBiryukov
Message:

Docs: Revise comments using “we” in WordPress root directory files.

This updates some inline comments to better match the guidelines and recommendations set forth in the make/core and make/docs handbooks:

In general, use second person in your documentation. Second person depicts a friendly tone, with a perfect focus on the reader. In addition to this, directly addressing the reader helps avoid passive voice; thereby preventing unwanted confusion.
...
the word “we” should be avoided (...) unless its made very clear which group is speaking.

Includes:

  • Replacing first-person usage of "we" with second person point of view.
  • Making small clarification adjustments where the voice is much too casual or lacks clear context, especially for non-native English speakers.

References:

Follow-up to [2176], [3430], [4676], [6009], [7991], [12688], [12762], [26008], [28978], [44488], [44962], [51979], [53131], [53132], [53156], [53131], [54200].

Props ironprogrammer, costdev, jorbin, SergeyBiryukov.
See #57052.

Location:
trunk/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-cron.php

    r54258 r54866  
    2424}
    2525
    26 /* Don't make the request block till we finish, if possible. */
     26// Don't run cron until the request finishes, if possible.
    2727if ( PHP_VERSION_ID >= 70016 && function_exists( 'fastcgi_finish_request' ) ) {
    2828    fastcgi_finish_request();
     
    3636
    3737/**
    38  * Tell WordPress we are doing the cron task.
     38 * Tell WordPress the cron task is running.
    3939 *
    4040 * @var bool
  • trunk/src/wp-load.php

    r54200 r54866  
    6969    $path = wp_guess_url() . '/wp-admin/setup-config.php';
    7070
    71     /*
    72      * We're going to redirect to setup-config.php. While this shouldn't result
    73      * in an infinite loop, that's a silly thing to assume, don't you think? If
    74      * we're traveling in circles, our last-ditch effort is "Need more help?"
    75      */
     71    // Redirect to setup-config.php.
    7672    if ( false === strpos( $_SERVER['REQUEST_URI'], 'setup-config' ) ) {
    7773        header( 'Location: ' . $path );
  • trunk/src/wp-login.php

    r54848 r54866  
    12451245                );
    12461246            } elseif ( isset( $_POST['testcookie'] ) && empty( $_COOKIE[ TEST_COOKIE ] ) ) {
    1247                 // If cookies are disabled, we can't log in even with a valid user and password.
     1247                // If cookies are disabled, the user can't log in even with a valid username and password.
    12481248                $user = new WP_Error(
    12491249                    'test_cookie',
  • trunk/src/wp-mail.php

    r54523 r54866  
    232232    }
    233233
    234     // We couldn't post, for whatever reason. Better move forward to the next email.
     234    // The post wasn't inserted or updated, for whatever reason. Better move forward to the next email.
    235235    if ( empty( $post_ID ) ) {
    236236        continue;
  • trunk/src/wp-settings.php

    r54306 r54866  
    2020 *
    2121 * These can't be directly globalized in version.php. When updating,
    22  * we're including version.php from another installation and don't want
    23  * these values to be overridden if already set.
     22 * include version.php from another installation and don't override
     23 * these values if already set.
    2424 *
    2525 * @global string $wp_version             The WordPress version string.
     
    6161wp_initial_constants();
    6262
    63 // Make sure we register the shutdown handler for fatal errors as soon as possible.
     63// Register the shutdown handler for fatal errors as soon as possible.
    6464wp_register_fatal_error_handler();
    6565
     
    7171wp_fix_server_vars();
    7272
    73 // Check if we're in maintenance mode.
     73// Check if the site is in maintenance mode.
    7474wp_maintenance();
    7575
     
    7777timer_start();
    7878
    79 // Check if we're in WP_DEBUG mode.
     79// Check if WP_DEBUG mode is enabled.
    8080wp_debug_mode();
    8181
     
    146146register_shutdown_function( 'shutdown_action_hook' );
    147147
    148 // Stop most of WordPress from being loaded if we just want the basics.
     148// Stop most of WordPress from being loaded if SHORTINIT is enabled.
    149149if ( SHORTINIT ) {
    150150    return false;
  • trunk/src/wp-trackback.php

    r54658 r54866  
    7777}
    7878
    79 // Now that mb_convert_encoding() has been given a swing, we need to escape these three.
     79// Escape values to use in the trackback.
    8080$title     = wp_slash( $title );
    8181$excerpt   = wp_slash( $excerpt );
  • trunk/src/xmlrpc.php

    r47926 r54866  
    1313define( 'XMLRPC_REQUEST', true );
    1414
    15 // Some browser-embedded clients send cookies. We don't want them.
     15// Discard unneeded cookies sent by some browser-embedded clients.
    1616$_COOKIE = array();
    1717
Note: See TracChangeset for help on using the changeset viewer.