Skip to content

Commit e9d0712

Browse files
committed
Docs: Use third-person singular verbs in various function descriptions of load.php, as per docblocks standards.
See #57840. git-svn-id: https://develop.svn.wordpress.org/trunk@56153 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d299360 commit e9d0712

1 file changed

Lines changed: 28 additions & 28 deletions

File tree

src/wp-includes/load.php

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
/**
9-
* Return the HTTP protocol sent by the server.
9+
* Returns the HTTP protocol sent by the server.
1010
*
1111
* @since 4.4.0
1212
*
@@ -21,7 +21,7 @@ function wp_get_server_protocol() {
2121
}
2222

2323
/**
24-
* Fix `$_SERVER` variables for various setups.
24+
* Fixes `$_SERVER` variables for various setups.
2525
*
2626
* @since 3.0.0
2727
* @access private
@@ -134,7 +134,7 @@ function wp_populate_basic_auth_from_authorization_header() {
134134
}
135135

136136
/**
137-
* Check for the required PHP version, and the MySQL extension or
137+
* Checks for the required PHP version, and the MySQL extension or
138138
* a database drop-in.
139139
*
140140
* Dies if requirements are not met.
@@ -310,7 +310,7 @@ function wp_get_development_mode() {
310310
}
311311

312312
/**
313-
* Don't load all of WordPress when handling a favicon.ico request.
313+
* Ensures all of WordPress is not loaded when handling a favicon.ico request.
314314
*
315315
* Instead, send the headers for a zero-length favicon and bail.
316316
*
@@ -325,7 +325,7 @@ function wp_favicon_request() {
325325
}
326326

327327
/**
328-
* Die with a maintenance message when conditions are met.
328+
* Dies with a maintenance message when conditions are met.
329329
*
330330
* The default message can be replaced by using a drop-in (maintenance.php in
331331
* the wp-content directory).
@@ -357,7 +357,7 @@ function wp_maintenance() {
357357
}
358358

359359
/**
360-
* Check if maintenance mode is enabled.
360+
* Checks if maintenance mode is enabled.
361361
*
362362
* Checks for a file in the WordPress root directory named ".maintenance".
363363
* This file will contain the variable $upgrading, set to the time the file
@@ -404,7 +404,7 @@ function wp_is_maintenance_mode() {
404404
}
405405

406406
/**
407-
* Get the time elapsed so far during this PHP script.
407+
* Gets the time elapsed so far during this PHP script.
408408
*
409409
* Uses REQUEST_TIME_FLOAT that appeared in PHP 5.4.0.
410410
*
@@ -417,7 +417,7 @@ function timer_float() {
417417
}
418418

419419
/**
420-
* Start the WordPress micro-timer.
420+
* Starts the WordPress micro-timer.
421421
*
422422
* @since 0.71
423423
* @access private
@@ -434,7 +434,7 @@ function timer_start() {
434434
}
435435

436436
/**
437-
* Retrieve or display the time from the page start to when function is called.
437+
* Retrieves or displays the time from the page start to when function is called.
438438
*
439439
* @since 0.71
440440
*
@@ -460,7 +460,7 @@ function timer_stop( $display = 0, $precision = 3 ) {
460460
}
461461

462462
/**
463-
* Set PHP error reporting based on WordPress debug settings.
463+
* Sets PHP error reporting based on WordPress debug settings.
464464
*
465465
* Uses three constants: `WP_DEBUG`, `WP_DEBUG_DISPLAY`, and `WP_DEBUG_LOG`.
466466
* All three can be defined in wp-config.php. By default, `WP_DEBUG` and
@@ -560,7 +560,7 @@ function wp_debug_mode() {
560560
}
561561

562562
/**
563-
* Set the location of the language directory.
563+
* Sets the location of the language directory.
564564
*
565565
* To set directory manually, define the `WP_LANG_DIR` constant
566566
* in wp-config.php.
@@ -605,7 +605,7 @@ function wp_set_lang_dir() {
605605
}
606606

607607
/**
608-
* Load the database class file and instantiate the `$wpdb` global.
608+
* Loads the database class file and instantiates the `$wpdb` global.
609609
*
610610
* @since 2.5.0
611611
*
@@ -633,7 +633,7 @@ function require_wp_db() {
633633
}
634634

635635
/**
636-
* Set the database table prefix and the format specifiers for database
636+
* Sets the database table prefix and the format specifiers for database
637637
* table columns.
638638
*
639639
* Columns not listed here default to `%s`.
@@ -704,7 +704,7 @@ function wp_set_wpdb_vars() {
704704
}
705705

706706
/**
707-
* Toggle `$_wp_using_ext_object_cache` on and off without directly
707+
* Toggles `$_wp_using_ext_object_cache` on and off without directly
708708
* touching global.
709709
*
710710
* @since 3.7.0
@@ -724,7 +724,7 @@ function wp_using_ext_object_cache( $using = null ) {
724724
}
725725

726726
/**
727-
* Start the WordPress object cache.
727+
* Starts the WordPress object cache.
728728
*
729729
* If an object-cache.php file exists in the wp-content directory,
730730
* it uses that drop-in as an external object cache.
@@ -832,7 +832,7 @@ function wp_start_object_cache() {
832832
}
833833

834834
/**
835-
* Redirect to the installer if WordPress is not installed.
835+
* Redirects to the installer if WordPress is not installed.
836836
*
837837
* Dies with an error message when Multisite is enabled.
838838
*
@@ -860,7 +860,7 @@ function wp_not_installed() {
860860
}
861861

862862
/**
863-
* Retrieve an array of must-use plugin files.
863+
* Retrieves an array of must-use plugin files.
864864
*
865865
* The default directory is wp-content/mu-plugins. To change the default
866866
* directory manually, define `WPMU_PLUGIN_DIR` and `WPMU_PLUGIN_URL`
@@ -892,7 +892,7 @@ function wp_get_mu_plugins() {
892892
}
893893

894894
/**
895-
* Retrieve an array of active and valid plugin files.
895+
* Retrieves an array of active and valid plugin files.
896896
*
897897
* While upgrading or installing WordPress, no plugins are returned.
898898
*
@@ -1045,7 +1045,7 @@ function wp_skip_paused_themes( array $themes ) {
10451045
}
10461046

10471047
/**
1048-
* Is WordPress in Recovery Mode.
1048+
* Determines whether WordPress is in Recovery Mode.
10491049
*
10501050
* In this mode, plugins or themes that cause WSODs will be paused.
10511051
*
@@ -1143,7 +1143,7 @@ function is_protected_ajax_action() {
11431143
}
11441144

11451145
/**
1146-
* Set internal encoding.
1146+
* Sets internal encoding.
11471147
*
11481148
* In most cases the default internal encoding is latin1, which is
11491149
* of no use, since we want to use the `mb_` functions for `utf-8` strings.
@@ -1162,7 +1162,7 @@ function wp_set_internal_encoding() {
11621162
}
11631163

11641164
/**
1165-
* Add magic quotes to `$_GET`, `$_POST`, `$_COOKIE`, and `$_SERVER`.
1165+
* Adds magic quotes to `$_GET`, `$_POST`, `$_COOKIE`, and `$_SERVER`.
11661166
*
11671167
* Also forces `$_REQUEST` to be `$_GET + $_POST`. If `$_SERVER`,
11681168
* `$_COOKIE`, or `$_ENV` are needed, use those superglobals directly.
@@ -1199,7 +1199,7 @@ function shutdown_action_hook() {
11991199
}
12001200

12011201
/**
1202-
* Copy an object.
1202+
* Clones an object.
12031203
*
12041204
* @since 2.7.0
12051205
* @deprecated 3.2.0
@@ -1327,7 +1327,7 @@ function is_user_admin() {
13271327
}
13281328

13291329
/**
1330-
* If Multisite is enabled.
1330+
* Determines whether Multisite is enabled.
13311331
*
13321332
* @since 3.0.0
13331333
*
@@ -1346,7 +1346,7 @@ function is_multisite() {
13461346
}
13471347

13481348
/**
1349-
* Retrieve the current site ID.
1349+
* Retrieves the current site ID.
13501350
*
13511351
* @since 3.1.0
13521352
*
@@ -1381,7 +1381,7 @@ function get_current_network_id() {
13811381
}
13821382

13831383
/**
1384-
* Attempt an early load of translations.
1384+
* Attempts an early load of translations.
13851385
*
13861386
* Used for errors encountered during the initial loading process, before
13871387
* the locale has been properly detected and loaded.
@@ -1486,7 +1486,7 @@ function wp_load_translations_early() {
14861486
}
14871487

14881488
/**
1489-
* Check or set whether WordPress is in "installation" mode.
1489+
* Checks or sets whether WordPress is in "installation" mode.
14901490
*
14911491
* If the `WP_INSTALLING` constant is defined during the bootstrap, `wp_installing()` will default to `true`.
14921492
*
@@ -1701,7 +1701,7 @@ function wp_is_file_mod_allowed( $context ) {
17011701
}
17021702

17031703
/**
1704-
* Start scraping edited file errors.
1704+
* Starts scraping edited file errors.
17051705
*
17061706
* @since 4.9.0
17071707
*/
@@ -1730,7 +1730,7 @@ function wp_start_scraping_edited_file_errors() {
17301730
}
17311731

17321732
/**
1733-
* Finalize scraping for edited file errors.
1733+
* Finalizes scraping for edited file errors.
17341734
*
17351735
* @since 4.9.0
17361736
*

0 commit comments

Comments
 (0)