mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
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: * [https://make.wordpress.org/docs/style-guide/language-grammar/grammatical-person/ Style Guide: Grammatical person] * [https://make.wordpress.org/docs/handbook/documentation-team-handbook/handbooks-style-and-formatting-guide/ Handbooks & HelpHub Style and Formatting Guide] * [https://make.wordpress.org/core/handbook/best-practices/post-comment-guidelines/#style-and-substance Post & Comment Guidelines: Style and Substance] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@54866 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+6
-6
@@ -19,8 +19,8 @@ define( 'WPINC', 'wp-includes' );
|
||||
* Version information for the current WordPress release.
|
||||
*
|
||||
* These can't be directly globalized in version.php. When updating,
|
||||
* we're including version.php from another installation and don't want
|
||||
* these values to be overridden if already set.
|
||||
* include version.php from another installation and don't override
|
||||
* these values if already set.
|
||||
*
|
||||
* @global string $wp_version The WordPress version string.
|
||||
* @global int $wp_db_version WordPress database version.
|
||||
@@ -60,7 +60,7 @@ global $blog_id;
|
||||
// Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, SCRIPT_DEBUG, WP_CONTENT_DIR and WP_CACHE.
|
||||
wp_initial_constants();
|
||||
|
||||
// Make sure we register the shutdown handler for fatal errors as soon as possible.
|
||||
// Register the shutdown handler for fatal errors as soon as possible.
|
||||
wp_register_fatal_error_handler();
|
||||
|
||||
// WordPress calculates offsets from UTC.
|
||||
@@ -70,13 +70,13 @@ date_default_timezone_set( 'UTC' );
|
||||
// Standardize $_SERVER variables across setups.
|
||||
wp_fix_server_vars();
|
||||
|
||||
// Check if we're in maintenance mode.
|
||||
// Check if the site is in maintenance mode.
|
||||
wp_maintenance();
|
||||
|
||||
// Start loading timer.
|
||||
timer_start();
|
||||
|
||||
// Check if we're in WP_DEBUG mode.
|
||||
// Check if WP_DEBUG mode is enabled.
|
||||
wp_debug_mode();
|
||||
|
||||
/**
|
||||
@@ -145,7 +145,7 @@ if ( is_multisite() ) {
|
||||
|
||||
register_shutdown_function( 'shutdown_action_hook' );
|
||||
|
||||
// Stop most of WordPress from being loaded if we just want the basics.
|
||||
// Stop most of WordPress from being loaded if SHORTINIT is enabled.
|
||||
if ( SHORTINIT ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user