From e0311b76c7b19615208d6fa0130fd7f47a24a162 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 4 Aug 2019 01:46:55 +0000 Subject: [PATCH] Docs: Add missing description for `$wp_locale` global. Props mukesh27. See #45604, #47110. Built from https://develop.svn.wordpress.org/trunk@45737 git-svn-id: http://core.svn.wordpress.org/trunk@45548 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-header.php | 2 +- wp-admin/export.php | 2 +- wp-admin/includes/class-wp-list-table.php | 2 +- wp-admin/includes/media.php | 2 +- wp-admin/includes/template.php | 4 ++-- wp-admin/install.php | 2 +- wp-admin/options-general.php | 2 +- wp-admin/setup-config.php | 2 +- wp-includes/class-wp-locale-switcher.php | 2 +- .../class-wp-customize-date-time-control.php | 2 +- wp-includes/functions.php | 6 +++--- wp-includes/general-template.php | 12 ++++++------ wp-includes/l10n.php | 2 +- wp-includes/load.php | 2 +- wp-includes/media.php | 2 +- wp-includes/script-loader.php | 2 +- wp-includes/theme.php | 2 +- wp-includes/version.php | 2 +- wp-settings.php | 2 +- 19 files changed, 27 insertions(+), 27 deletions(-) diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index 8342c961ac..6d5718a4be 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -17,7 +17,7 @@ if ( ! defined( 'WP_ADMIN' ) ) { * @global string $title * @global string $hook_suffix * @global WP_Screen $current_screen - * @global WP_Locale $wp_locale + * @global WP_Locale $wp_locale WordPress date and time locale object. * @global string $pagenow * @global string $update_title * @global int $total_update_count diff --git a/wp-admin/export.php b/wp-admin/export.php index 43fd963602..759723456e 100644 --- a/wp-admin/export.php +++ b/wp-admin/export.php @@ -128,7 +128,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); * Create the date options fields for exporting a given post type. * * @global wpdb $wpdb WordPress database abstraction object. - * @global WP_Locale $wp_locale Date and Time Locale object. + * @global WP_Locale $wp_locale WordPress date and time locale object. * * @since 3.1.0 * diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index c9d315eeba..6923da55bc 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -536,7 +536,7 @@ class WP_List_Table { * @since 3.1.0 * * @global wpdb $wpdb WordPress database abstraction object. - * @global WP_Locale $wp_locale + * @global WP_Locale $wp_locale WordPress date and time locale object. * * @param string $post_type */ diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 0c68ccfc78..6466706385 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -2528,7 +2528,7 @@ jQuery(function($){ * * @global wpdb $wpdb WordPress database abstraction object. * @global WP_Query $wp_query - * @global WP_Locale $wp_locale + * @global WP_Locale $wp_locale WordPress date and time locale object. * @global string $type * @global string $tab * @global array $post_mime_types diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 00faff777e..be6d02809a 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -757,7 +757,7 @@ function meta_form( $post = null ) { * @since 0.71 * @since 4.4.0 Converted to use get_comment() instead of the global `$comment`. * - * @global WP_Locale $wp_locale + * @global WP_Locale $wp_locale WordPress date and time locale object. * * @param int|bool $edit Accepts 1|true for editing the date, 0|false for adding the date. * @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() { * * @global string $hook_suffix * @global string $admin_body_class - * @global WP_Locale $wp_locale + * @global WP_Locale $wp_locale WordPress date and time locale object. * * @param string $title Optional. Title of the Iframe page. Default empty. * @param bool $deprecated Not used. diff --git a/wp-admin/install.php b/wp-admin/install.php index bebf02b124..472e6b77a0 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -291,7 +291,7 @@ if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) { /** * @global string $wp_local_package - * @global WP_Locale $wp_locale + * @global WP_Locale $wp_locale WordPress date and time locale object. */ $language = ''; if ( ! empty( $_REQUEST['language'] ) ) { diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 2e2b7f8901..633aa92dc2 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -386,7 +386,7 @@ foreach ( $time_formats as $format ) {