Make WordPress Core

Ticket #58076: 58076.9.patch

File 58076.9.patch, 2.3 KB (added by upadalavipul, 19 months ago)

Few more files in improve various globals documentation.

  • wp-admin/includes/theme.php

     
    11031103 * Conditional Tags} article in the Theme Developer Handbook.
    11041104 *
    11051105 * @since 5.2.0
     1106 *
     1107 * @global string[] $themes.
    11061108 *
    11071109 * @param string $theme Path to the theme directory relative to the themes directory.
    11081110 * @return bool True, if in the list of paused themes. False, not in the list.
     
    11231125 * Gets the error that was recorded for a paused theme.
    11241126 *
    11251127 * @since 5.2.0
     1128 *
     1129 * @global string[] $themes.
    11261130 *
    11271131 * @param string $theme Path to the theme directory relative to the themes
    11281132 *                      directory.
     
    12101214 * @since 5.2.0
    12111215 *
    12121216 * @global string $pagenow The filename of the current screen.
     1217 * @global string[] $themes.
    12131218 */
    12141219function paused_themes_notice() {
    12151220        if ( 'themes.php' === $GLOBALS['pagenow'] ) {
  • wp-admin/options.php

     
    227227 * Filters the allowed options list.
    228228 *
    229229 * @since 5.5.0
     230 *
     231 * @global string $locale The current locale.
    230232 *
    231233 * @param array $allowed_options The allowed options list.
    232234 */
  • wp-includes/class-wp-fatal-error-handler.php

     
    2525         * This method is registered via `register_shutdown_function()`.
    2626         *
    2727         * @since 5.2.0
     28         *
     29         * @global WP_Locale $wp_locale WordPress date and time locale object.
    2830         */
    2931        public function handle() {
    3032                if ( defined( 'WP_SANDBOX_SCRAPING' ) && WP_SANDBOX_SCRAPING ) {
  • wp-includes/l10n.php

     
    127127         * Using this filter allows to override the default logic, effectively short-circuiting the function.
    128128         *
    129129         * @since 5.0.0
     130         *
     131         * @global string $pagenow The filename of the current screen.
    130132         *
    131133         * @param string|null $locale The locale to return and short-circuit. Default null.
    132134         */