Skip to content

Commit 1e6420b

Browse files
Docs: Add missing description for $wp_locale global.
Props mukesh27. See #45604, #47110. git-svn-id: https://develop.svn.wordpress.org/trunk@45737 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 914509f commit 1e6420b

18 files changed

Lines changed: 26 additions & 26 deletions

src/wp-admin/admin-header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @global string $title
1818
* @global string $hook_suffix
1919
* @global WP_Screen $current_screen
20-
* @global WP_Locale $wp_locale
20+
* @global WP_Locale $wp_locale WordPress date and time locale object.
2121
* @global string $pagenow
2222
* @global string $update_title
2323
* @global int $total_update_count

src/wp-admin/export.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function export_add_js() {
128128
* Create the date options fields for exporting a given post type.
129129
*
130130
* @global wpdb $wpdb WordPress database abstraction object.
131-
* @global WP_Locale $wp_locale Date and Time Locale object.
131+
* @global WP_Locale $wp_locale WordPress date and time locale object.
132132
*
133133
* @since 3.1.0
134134
*

src/wp-admin/includes/class-wp-list-table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ protected function row_actions( $actions, $always_visible = false ) {
536536
* @since 3.1.0
537537
*
538538
* @global wpdb $wpdb WordPress database abstraction object.
539-
* @global WP_Locale $wp_locale
539+
* @global WP_Locale $wp_locale WordPress date and time locale object.
540540
*
541541
* @param string $post_type
542542
*/

src/wp-admin/includes/media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2528,7 +2528,7 @@ function media_upload_gallery_form( $errors ) {
25282528
*
25292529
* @global wpdb $wpdb WordPress database abstraction object.
25302530
* @global WP_Query $wp_query
2531-
* @global WP_Locale $wp_locale
2531+
* @global WP_Locale $wp_locale WordPress date and time locale object.
25322532
* @global string $type
25332533
* @global string $tab
25342534
* @global array $post_mime_types

src/wp-admin/includes/template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ function meta_form( $post = null ) {
757757
* @since 0.71
758758
* @since 4.4.0 Converted to use get_comment() instead of the global `$comment`.
759759
*
760-
* @global WP_Locale $wp_locale
760+
* @global WP_Locale $wp_locale WordPress date and time locale object.
761761
*
762762
* @param int|bool $edit Accepts 1|true for editing the date, 0|false for adding the date.
763763
* @param int|bool $for_post Accepts 1|true for applying the date to a post, 0|false for a comment.
@@ -1905,7 +1905,7 @@ function _admin_search_query() {
19051905
*
19061906
* @global string $hook_suffix
19071907
* @global string $admin_body_class
1908-
* @global WP_Locale $wp_locale
1908+
* @global WP_Locale $wp_locale WordPress date and time locale object.
19091909
*
19101910
* @param string $title Optional. Title of the Iframe page. Default empty.
19111911
* @param bool $deprecated Not used.

src/wp-admin/install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ function display_setup_form( $error = null ) {
291291

292292
/**
293293
* @global string $wp_local_package
294-
* @global WP_Locale $wp_locale
294+
* @global WP_Locale $wp_locale WordPress date and time locale object.
295295
*/
296296
$language = '';
297297
if ( ! empty( $_REQUEST['language'] ) ) {

src/wp-admin/options-general.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@
386386
<td><select name="start_of_week" id="start_of_week">
387387
<?php
388388
/**
389-
* @global WP_Locale $wp_locale
389+
* @global WP_Locale $wp_locale WordPress date and time locale object.
390390
*/
391391
global $wp_locale;
392392

src/wp-admin/setup-config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
* @since 2.3.0
8989
*
9090
* @global string $wp_local_package
91-
* @global WP_Locale $wp_locale
91+
* @global WP_Locale $wp_locale WordPress date and time locale object.
9292
*
9393
* @param string|array $body_classes
9494
*/

src/wp-includes/class-wp-locale-switcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ private function load_translations( $locale ) {
213213
*
214214
* @since 4.7.0
215215
*
216-
* @global WP_Locale $wp_locale The WordPress date and time locale object.
216+
* @global WP_Locale $wp_locale WordPress date and time locale object.
217217
*
218218
* @param string $locale The locale to change to.
219219
*/

src/wp-includes/customize/class-wp-customize-date-time-control.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function content_template() {
189189
* @since 4.9.0
190190
* @see touch_time()
191191
*
192-
* @global WP_Locale $wp_locale
192+
* @global WP_Locale $wp_locale WordPress date and time locale object.
193193
*
194194
* @return array
195195
*/

0 commit comments

Comments
 (0)