WordPress.org

Make WordPress Core

Ticket #45604: 45604.2.patch

File 45604.2.patch, 34.0 KB (added by mukesh27, 7 months ago)

Updated patch.

  • src/wp-admin/admin-header.php

     
    1616 *
    1717 * @global string    $title
    1818 * @global string    $hook_suffix
    19  * @global WP_Screen $current_screen
    20  * @global WP_Locale $wp_locale
     19 * @global WP_Screen $current_screen     The WordPress Current screen object.
     20 * @global WP_Locale $wp_locale          The 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

     
    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 The WordPress date and time locale object.
    132132 *
    133133 * @since 3.1.0
    134134 *
  • src/wp-admin/includes/class-wp-list-table.php

     
    535535         *
    536536         * @since 3.1.0
    537537         *
    538          * @global wpdb      $wpdb
    539          * @global WP_Locale $wp_locale
     538         * @global wpdb      $wpdb      WordPress database abstraction object.
     539         * @global WP_Locale $wp_locale The WordPress date and time locale object.
    540540         *
    541541         * @param string $post_type
    542542         */
  • src/wp-admin/includes/class-wp-media-list-table.php

     
    6161        }
    6262
    6363        /**
    64          * @global WP_Query $wp_query
     64         * @global WP_Query $wp_query Global WP_Query instance.
    6565         * @global array    $post_mime_types
    6666         * @global array    $avail_post_mime_types
    6767         * @global string   $mode
  • src/wp-admin/includes/class-wp-ms-sites-list-table.php

     
    6464         *
    6565         * @global string $s
    6666         * @global string $mode
    67          * @global wpdb   $wpdb
     67         * @global wpdb   $wpdb WordPress database abstraction object.
    6868         */
    6969        public function prepare_items() {
    7070                global $s, $mode, $wpdb;
  • src/wp-admin/includes/class-wp-ms-users-list-table.php

     
    2626        /**
    2727         * @global string $usersearch
    2828         * @global string $role
    29          * @global wpdb   $wpdb
     29         * @global wpdb   $wpdb WordPress database abstraction object.
    3030         * @global string $mode
    3131         */
    3232        public function prepare_items() {
  • src/wp-admin/includes/class-wp-posts-list-table.php

     
    6767         * @see WP_List_Table::__construct() for more information on default arguments.
    6868         *
    6969         * @global WP_Post_Type $post_type_object
    70          * @global wpdb         $wpdb
     70         * @global wpdb         $wpdb             WordPress database abstraction object.
    7171         *
    7272         * @param array $args An associative array of arguments.
    7373         */
     
    135135
    136136        /**
    137137         * @global array    $avail_post_stati
    138          * @global WP_Query $wp_query
     138         * @global WP_Query $wp_query Global WP_Query instance.
    139139         * @global int      $per_page
    140140         * @global string   $mode
    141141         */
     
    632632        }
    633633
    634634        /**
    635          * @global WP_Query $wp_query
     635         * @global WP_Query $wp_query Global WP_Query instance.
    636636         * @global int $per_page
    637637         * @param array $posts
    638638         * @param int $level
     
    677677        }
    678678
    679679        /**
    680          * @global wpdb    $wpdb
     680         * @global wpdb    $wpdb WordPress database abstraction object.
    681681         * @global WP_Post $post
    682682         * @param array $pages
    683683         * @param int $pagenum
  • src/wp-admin/includes/class-wp-screen.php

     
    376376         * @see set_current_screen()
    377377         * @since 3.3.0
    378378         *
    379          * @global WP_Screen $current_screen
     379         * @global WP_Screen $current_screen The WordPress Current screen object.
    380380         * @global string    $taxnow
    381381         * @global string    $typenow
    382382         */
  • src/wp-admin/includes/export.php

     
    515515        <?php
    516516        if ( $post_ids ) {
    517517                /**
    518                  * @global WP_Query $wp_query
     518                 * @global WP_Query $wp_query Global WP_Query instance.
    519519                 */
    520520                global $wp_query;
    521521
  • src/wp-admin/includes/media.php

     
    14041404 *
    14051405 * @since 2.5.0
    14061406 *
    1407  * @global WP_Query $wp_the_query
     1407 * @global WP_Query $wp_query Global WP_Query instance.
    14081408 *
    14091409 * @param int $post_id Optional. Post ID.
    14101410 * @param array $errors Errors for attachment, if any.
     
    25092509 *
    25102510 * @since 2.5.0
    25112511 *
    2512  * @global wpdb      $wpdb
    2513  * @global WP_Query  $wp_query
    2514  * @global WP_Locale $wp_locale
     2512 * @global wpdb      $wpdb            WordPress database abstraction object.
     2513 * @global WP_Query  $wp_query        Global WP_Query instance.
     2514 * @global WP_Locale $wp_locale       The WordPress date and time locale object.
    25152515 * @global string    $type
    25162516 * @global string    $tab
    25172517 * @global array     $post_mime_types
  • src/wp-admin/includes/schema.php

     
    1111/**
    1212 * Declare these as global in case schema.php is included from a function.
    1313 *
    14  * @global wpdb   $wpdb
     14 * @global wpdb   $wpdb            WordPress database abstraction object.
    1515 * @global array  $wp_queries
    1616 * @global string $charset_collate
    1717 */
     
    959959 *
    960960 * @since 3.0.0
    961961 *
    962  * @global wpdb       $wpdb
     962 * @global wpdb       $wpdb          WordPress database abstraction object.
    963963 * @global object     $current_site
    964964 * @global WP_Rewrite $wp_rewrite
    965965 *
  • src/wp-admin/includes/screen.php

     
    215215 *
    216216 * @since 3.1.0
    217217 *
    218  * @global WP_Screen $current_screen
     218 * @global WP_Screen $current_screen The WordPress Current screen object.
    219219 *
    220220 * @return WP_Screen|null Current screen object or null when screen not defined.
    221221 */
  • src/wp-admin/includes/template.php

     
    751751 * @since 0.71
    752752 * @since 4.4.0 Converted to use get_comment() instead of the global `$comment`.
    753753 *
    754  * @global WP_Locale  $wp_locale
     754 * @global WP_Locale  $wp_locale The WordPress date and time locale object.
    755755 *
    756756 * @param int|bool $edit      Accepts 1|true for editing the date, 0|false for adding the date.
    757757 * @param int|bool $for_post  Accepts 1|true for applying the date to a post, 0|false for a comment.
     
    18901890 *
    18911891 * @global string    $hook_suffix
    18921892 * @global string    $admin_body_class
    1893  * @global WP_Locale $wp_locale
     1893 * @global WP_Locale $wp_locale        The WordPress date and time locale object.
    18941894 *
    18951895 * @param string $title      Optional. Title of the Iframe page. Default empty.
    18961896 * @param bool   $deprecated Not used.
  • src/wp-admin/includes/update-core.php

     
    864864 * @global WP_Filesystem_Base $wp_filesystem          WordPress filesystem subclass.
    865865 * @global array              $_old_files
    866866 * @global array              $_new_bundled_files
    867  * @global wpdb               $wpdb
     867 * @global wpdb               $wpdb                   WordPress database abstraction object.
    868868 * @global string             $wp_version
    869869 * @global string             $required_php_version
    870870 * @global string             $required_mysql_version
  • src/wp-admin/includes/upgrade.php

     
    126126         *
    127127         * Adds the default "Uncategorized" category, the first post (with comment),
    128128         * first page, and default widgets for default theme for the current version.
    129         *
    130         * @since 2.1.0
    131         *
    132          * @global wpdb       $wpdb
    133         * @global WP_Rewrite $wp_rewrite
    134         * @global string     $table_prefix
    135         *
     129 *
     130 * @since 2.1.0
     131 *
     132 * @global wpdb       $wpdb         WordPress database abstraction object.
     133 * @global WP_Rewrite $wp_rewrite
     134 * @global string     $table_prefix
     135 *
    136136         * @param int $user_id User ID.
    137137         */
    138138        function wp_install_defaults( $user_id ) {
     
    16831683 * @since 3.3.0
    16841684 *
    16851685 * @global int   $wp_current_db_version
    1686  * @global wpdb  $wpdb
     1686 * @global wpdb  $wpdb                  WordPress database abstraction object.
    16871687 * @global array $wp_registered_widgets
    16881688 * @global array $sidebars_widgets
    16891689 */
     
    17631763 * @since 3.4.0
    17641764 *
    17651765 * @global int   $wp_current_db_version
    1766  * @global wpdb  $wpdb
     1766 * @global wpdb  $wpdb                  WordPress database abstraction object.
    17671767 */
    17681768function upgrade_340() {
    17691769        global $wp_current_db_version, $wpdb;
     
    18001800 * @since 3.5.0
    18011801 *
    18021802 * @global int   $wp_current_db_version
    1803  * @global wpdb  $wpdb
     1803 * @global wpdb  $wpdb                  WordPress database abstraction object.
    18041804 */
    18051805function upgrade_350() {
    18061806        global $wp_current_db_version, $wpdb;
     
    19011901 * @since 4.2.0
    19021902 *
    19031903 * @global int   $wp_current_db_version
    1904  * @global wpdb  $wpdb
     1904 * @global wpdb  $wpdb                  WordPress database abstraction object.
    19051905 */
    19061906function upgrade_420() {}
    19071907
     
    21232123 * @since 3.0.0
    21242124 *
    21252125 * @global int   $wp_current_db_version
    2126  * @global wpdb  $wpdb
     2126 * @global wpdb  $wpdb                  WordPress database abstraction object.
    21272127 */
    21282128function upgrade_network() {
    21292129        global $wp_current_db_version, $wpdb;
     
    22822282 *
    22832283 * @since 1.0.0
    22842284 *
    2285  * @global wpdb  $wpdb
     2285 * @global wpdb  $wpdb WordPress database abstraction object.
    22862286 *
    22872287 * @param string $table_name Database table name to create.
    22882288 * @param string $create_ddl SQL statement to create table.
     
    23122312 *
    23132313 * @since 1.0.1
    23142314 *
    2315  * @global wpdb  $wpdb
     2315 * @global wpdb  $wpdb WordPress database abstraction object.
    23162316 *
    23172317 * @param string $table Database table name.
    23182318 * @param string $index Index name to drop.
     
    23352335 *
    23362336 * @since 1.0.1
    23372337 *
    2338  * @global wpdb  $wpdb
     2338 * @global wpdb  $wpdb WordPress database abstraction object.
    23392339 *
    23402340 * @param string $table Database table name.
    23412341 * @param string $index Database table index column.
     
    23532353 *
    23542354 * @since 1.3.0
    23552355 *
    2356  * @global wpdb  $wpdb
     2356 * @global wpdb  $wpdb WordPress database abstraction object.
    23572357 *
    23582358 * @param string $table_name  The table name to modify.
    23592359 * @param string $column_name The column name to add to the table.
     
    23852385 *
    23862386 * @since 4.2.0
    23872387 *
    2388  * @global wpdb  $wpdb
     2388 * @global wpdb  $wpdb WordPress database abstraction object.
    23892389 *
    23902390 * @param string $table The table to convert.
    23912391 * @return bool true if the table was converted, false if it wasn't.
     
    24282428 *
    24292429 * @since 1.2.0
    24302430 *
    2431  * @global wpdb  $wpdb
     2431 * @global wpdb  $wpdb WordPress database abstraction object.
    24322432 *
    24332433 * @return stdClass List of options.
    24342434 */
     
    24532453 * @since 1.5.1
    24542454 * @access private
    24552455 *
    2456  * @global wpdb  $wpdb
     2456 * @global wpdb  $wpdb WordPress database abstraction object.
    24572457 *
    24582458 * @param string $setting Option name.
    24592459 * @return mixed
     
    25182518 *
    25192519 * @since 1.5.0
    25202520 *
    2521  * @global wpdb  $wpdb
     2521 * @global wpdb  $wpdb WordPress database abstraction object.
    25222522 *
    25232523 * @param string[]|string $queries Optional. The query to run. Can be multiple queries
    25242524 *                                 in an array, or a string of queries separated by
     
    31763176 *
    31773177 * @since 2.1.0
    31783178 *
    3179  * @global wpdb  $wpdb
     3179 * @global wpdb  $wpdb WordPress database abstraction object.
    31803180 */
    31813181function wp_check_mysql_version() {
    31823182        global $wpdb;
     
    32843284if ( ! function_exists( 'install_global_terms' ) ) :
    32853285        /**
    32863286         * Install global terms.
    3287         *
    3288         * @since 3.0.0
    3289         *
    3290          * @global wpdb   $wpdb
    3291         * @global string $charset_collate
    3292         */
    3293         function install_global_terms() {
     3287 *
     3288 * @since 3.0.0
     3289 *
     3290 * @global wpdb   $wpdb            WordPress database abstraction object.
     3291 * @global string $charset_collate
     3292 */
     3293function install_global_terms() {
    32943294                global $wpdb, $charset_collate;
    32953295                $ms_queries = "
    32963296CREATE TABLE $wpdb->sitecategories (
  • src/wp-admin/install.php

     
    229229 * @global string $wp_version
    230230 * @global string $required_php_version
    231231 * @global string $required_mysql_version
    232  * @global wpdb   $wpdb
     232 * @global wpdb   $wpdb                   WordPress database abstraction object.
    233233 */
    234234global $wp_version, $required_php_version, $required_mysql_version;
    235235
     
    281281
    282282/**
    283283 * @global string    $wp_local_package
    284  * @global WP_Locale $wp_locale
     284 * @global WP_Locale $wp_locale        The WordPress date and time locale object.
    285285 */
    286286$language = '';
    287287if ( ! empty( $_REQUEST['language'] ) ) {
  • src/wp-admin/options-general.php

     
    395395<td><select name="start_of_week" id="start_of_week">
    396396<?php
    397397/**
    398  * @global WP_Locale $wp_locale
     398 * @global WP_Locale $wp_locale The WordPress date and time locale object.
    399399 */
    400400global $wp_locale;
    401401
  • src/wp-admin/setup-config.php

     
    8888 * @since 2.3.0
    8989 *
    9090 * @global string    $wp_local_package
    91  * @global WP_Locale $wp_locale
     91 * @global WP_Locale $wp_locale        The WordPress date and time locale object.
    9292 *
    9393 * @param string|array $body_classes
    9494 */
  • src/wp-admin/update-core.php

     
    2525
    2626/**
    2727 * @global string $wp_local_package
    28  * @global wpdb   $wpdb
     28 * @global wpdb   $wpdb             WordPress database abstraction object.
    2929 *
    3030 * @staticvar bool $first_pass
    3131 *
  • src/wp-admin/upgrade.php

     
    4040 * @global string $wp_version
    4141 * @global string $required_php_version
    4242 * @global string $required_mysql_version
    43  * @global wpdb   $wpdb
     43 * @global wpdb   $wpdb                   WordPress database abstraction object.
    4444 */
    4545global $wp_version, $required_php_version, $required_mysql_version;
    4646
  • src/wp-includes/canonical.php

     
    3030 *
    3131 * @global WP_Rewrite $wp_rewrite
    3232 * @global bool $is_IIS
    33  * @global WP_Query $wp_query
     33 * @global WP_Query $wp_query Global WP_Query instance.
    3434 * @global wpdb $wpdb WordPress database abstraction object.
    3535 * @global WP $wp Current WordPress environment instance.
    3636 *
  • src/wp-includes/class-wp-customize-manager.php

     
    33263326         *
    33273327         * @since 4.7.0
    33283328         * @see _wp_customize_publish_changeset()
    3329          * @global wpdb $wpdb
     3329         * @global wpdb $wpdb WordPress database abstraction object.
    33303330         *
    33313331         * @param int $changeset_post_id ID for customize_changeset post. Defaults to the changeset for the current manager instance.
    33323332         * @return true|WP_Error True or error info.
  • src/wp-includes/class-wp.php

     
    568568         *
    569569         * @since 2.0.0
    570570         *
    571          * @global WP_Query     $wp_query
     571     * @global WP_Query     $wp_query Global WP_Query instance.
    572572         * @global string       $query_string Query string for the loop.
    573573         * @global array        $posts The found posts.
    574574         * @global WP_Post|null $post The current post, if available.
     
    637637         *
    638638         * @since 2.0.0
    639639         *
    640          * @global WP_Query $wp_query
     640     * @global WP_Query $wp_query Global WP_Query instance.
    641641         */
    642642        public function handle_404() {
    643643                global $wp_query;
  • src/wp-includes/comment-template.php

     
    13051305 *
    13061306 * @since 1.5.0
    13071307 *
    1308  * @global WP_Query   $wp_query
     1308 * @global WP_Query   $wp_query         Global WP_Query instance.
    13091309 * @global WP_Post    $post
    1310  * @global wpdb       $wpdb
     1310 * @global wpdb       $wpdb             WordPress database abstraction object.
    13111311 * @global int        $id
    13121312 * @global WP_Comment $comment
    13131313 * @global string     $user_login
     
    19531953 *
    19541954 * @see WP_Query->comments
    19551955 *
    1956  * @global WP_Query $wp_query
     1956 * @global WP_Query $wp_query           Global WP_Query instance.
    19571957 * @global int      $comment_alt
    19581958 * @global int      $comment_depth
    19591959 * @global int      $comment_thread_alt
  • src/wp-includes/comment.php

     
    940940 *
    941941 * @uses Walker_Comment
    942942 *
    943  * @global WP_Query $wp_query
     943 * @global WP_Query $wp_query Global WP_Query instance.
    944944 *
    945945 * @param WP_Comment[] $comments Optional. Array of WP_Comment objects. Defaults to $wp_query->comments.
    946946 * @param int          $per_page Optional. Comments per page.
  • src/wp-includes/functions.php

     
    8383 *
    8484 * @since 0.71
    8585 *
    86  * @global WP_Locale $wp_locale
     86 * @global WP_Locale $wp_locale           The WordPress date and time locale object.
    8787 *
    8888 * @param string   $dateformatstring      Format to display the date.
    8989 * @param int|bool $timestamp_with_offset Optional. A sum of Unix timestamp and timezone offset in seconds.
     
    202202 *
    203203 * @since 4.4.0
    204204 *
    205  * @global WP_Locale $wp_locale
     205 * @global WP_Locale $wp_locale The WordPress date and time locale object.
    206206 *
    207207 * @param string $date Formatted date string.
    208208 * @return string The date, declined if locale specifies it.
     
    252252 *
    253253 * @since 2.3.0
    254254 *
    255  * @global WP_Locale $wp_locale
     255 * @global WP_Locale $wp_locale The WordPress date and time locale object.
    256256 *
    257257 * @param float $number   The number to convert based on locale.
    258258 * @param int   $decimals Optional. Precision of the number of decimal places. Default 0.
     
    10811081 * @since 2.0.0
    10821082 *
    10831083 * @global WP       $wp_locale
    1084  * @global WP_Query $wp_query
     1084 * @global WP_Query $wp_query Global WP_Query instance.
    10851085 * @global WP_Query $wp_the_query
    10861086 *
    10871087 * @param string|array $query_vars Default WP_Query arguments.
  • src/wp-includes/general-template.php

     
    11131113 *
    11141114 * @since 1.0.0
    11151115 *
    1116  * @global WP_Locale $wp_locale
     1116 * @global WP_Locale $wp_locale The WordPress date and time locale object.
    11171117 *
    11181118 * @param string $sep         Optional, default is '&raquo;'. How to separate the various items
    11191119 *                            within the page title.
     
    14341434 *
    14351435 * @since 0.71
    14361436 *
    1437  * @global WP_Locale $wp_locale
     1437 * @global WP_Locale $wp_locale The WordPress date and time locale object.
    14381438 *
    14391439 * @param string $prefix  Optional. What to display before the title.
    14401440 * @param bool   $display Optional, default is true. Whether to display or retrieve title.
     
    17041704 *
    17051705 * @see get_archives_link()
    17061706 *
    1707  * @global wpdb      $wpdb
    1708  * @global WP_Locale $wp_locale
     1707 * @global wpdb      $wpdb      WordPress database abstraction object.
     1708 * @global WP_Locale $wp_locale The WordPress date and time locale object.
    17091709 *
    17101710 * @param string|array $args {
    17111711 *     Default archive links arguments. Optional.
     
    19561956 *
    19571957 * @since 1.0.0
    19581958 *
    1959  * @global wpdb      $wpdb
     1959 * @global wpdb      $wpdb      WordPress database abstraction object.
    19601960 * @global int       $m
    19611961 * @global int       $monthnum
    19621962 * @global int       $year
    1963  * @global WP_Locale $wp_locale
     1963 * @global WP_Locale $wp_locale The WordPress date and time locale object.
    19641964 * @global array     $posts
    19651965 *
    19661966 * @param bool $initial Optional, default is true. Use initial calendar names.
     
    25972597 *
    25982598 * @since 0.71
    25992599 *
    2600  * @global WP_Locale $wp_locale
     2600 * @global WP_Locale $wp_locale The WordPress date and time locale object.
    26012601 */
    26022602function the_weekday() {
    26032603        global $wp_locale;
     
    26212621 *
    26222622 * @since 0.71
    26232623 *
    2624  * @global WP_Locale       $wp_locale
     2624 * @global WP_Locale       $wp_locale       The WordPress date and time locale object.
    26252625 * @global string|int|bool $currentday
    26262626 * @global string|int|bool $previousweekday
    26272627 *
     
    38063806 * @since 2.1.0
    38073807 * @since 4.9.0 Added the `aria_current` argument.
    38083808 *
    3809  * @global WP_Query   $wp_query
     3809 * @global WP_Query   $wp_query   Global WP_Query instance.
    38103810 * @global WP_Rewrite $wp_rewrite
    38113811 *
    38123812 * @param string|array $args {
  • src/wp-includes/l10n.php

     
    15031503 *
    15041504 * @since 3.0.0
    15051505 *
    1506  * @global WP_Locale $wp_locale
     1506 * @global WP_Locale $wp_locale The WordPress date and time locale object.
    15071507 *
    15081508 * @return bool Whether locale is RTL.
    15091509 */
  • src/wp-includes/link-template.php

     
    23112311 * @since 2.7.0
    23122312 *
    23132313 * @global int      $paged
    2314  * @global WP_Query $wp_query
     2314 * @global WP_Query $wp_query Global WP_Query instance.
    23152315 *
    23162316 * @param string $label    Content for link text.
    23172317 * @param int    $max_page Optional. Max pages. Default 0.
     
    24492449 *
    24502450 * @since 2.8.0
    24512451 *
    2452  * @global WP_Query $wp_query
     2452 * @global WP_Query $wp_query Global WP_Query instance.
    24532453 *
    24542454 * @param string|array $args {
    24552455 *     Optional. Arguments to build the post pages link navigation.
     
    27902790 *
    27912791 * @since 2.7.1
    27922792 *
    2793  * @global WP_Query $wp_query
     2793 * @global WP_Query $wp_query Global WP_Query instance.
    27942794 *
    27952795 * @param string $label    Optional. Label for link text. Default empty.
    27962796 * @param int    $max_page Optional. Max page. Default 0.
  • src/wp-includes/load.php

     
    778778 *
    779779 * @since 1.5.1
    780780 *
    781  * @global WP_Screen $current_screen
     781 * @global WP_Screen $current_screen The WordPress Current screen object.
    782782 *
    783783 * @return bool True if inside WordPress administration interface, false otherwise.
    784784 */
     
    802802 *
    803803 * @since 3.1.0
    804804 *
    805  * @global WP_Screen $current_screen
     805 * @global WP_Screen $current_screen The WordPress Current screen object.
    806806 *
    807807 * @return bool True if inside WordPress blog administration pages.
    808808 */
     
    826826 *
    827827 * @since 3.1.0
    828828 *
    829  * @global WP_Screen $current_screen
     829 * @global WP_Screen $current_screen The WordPress Current screen object.
    830830 *
    831831 * @return bool True if inside WordPress network administration pages.
    832832 */
     
    850850 *
    851851 * @since 3.1.0
    852852 *
    853  * @global WP_Screen $current_screen
     853 * @global WP_Screen $current_screen The WordPress Current screen object.
    854854 *
    855855 * @return bool True if inside WordPress user administration pages.
    856856 */
  • src/wp-includes/media.php

     
    34293429 * @since 3.5.0
    34303430 *
    34313431 * @global int       $content_width
    3432  * @global wpdb      $wpdb
    3433  * @global WP_Locale $wp_locale
     3432 * @global wpdb      $wpdb          WordPress database abstraction object.
     3433 * @global WP_Locale $wp_locale     The WordPress date and time locale object.
    34343434 *
    34353435 * @param array $args {
    34363436 *     Arguments for enqueuing media scripts.
  • src/wp-includes/ms-blogs.php

     
    16221622 * @see restore_current_blog()
    16231623 * @since MU (3.0.0)
    16241624 *
    1625  * @global wpdb            $wpdb
     1625 * @global wpdb            $wpdb               WordPress database abstraction object.
    16261626 * @global int             $blog_id
    16271627 * @global array           $_wp_switched_stack
    16281628 * @global bool            $switched
     
    17021702 * @see switch_to_blog()
    17031703 * @since MU (3.0.0)
    17041704 *
    1705  * @global wpdb            $wpdb
     1705 * @global wpdb            $wpdb               WordPress database abstraction object.
    17061706 * @global array           $_wp_switched_stack
    17071707 * @global int             $blog_id
    17081708 * @global bool            $switched
  • src/wp-includes/ms-functions.php

     
    582582 *
    583583 * @since MU (3.0.0)
    584584 *
    585  * @global wpdb   $wpdb
     585 * @global wpdb   $wpdb   WordPress database abstraction object.
    586586 * @global string $domain
    587587 *
    588588 * @param string         $blogname   The blog name provided by the user. Must be unique.
  • src/wp-includes/nav-menu-template.php

     
    290290 * @access private
    291291 * @since 3.0.0
    292292 *
    293  * @global WP_Query   $wp_query
     293 * @global WP_Query   $wp_query   Global WP_Query instance.
    294294 * @global WP_Rewrite $wp_rewrite
    295295 *
    296296 * @param array $menu_items The current menu item objects to which to add the class property information.
  • src/wp-includes/option.php

     
    11931193 *
    11941194 * @see get_option()
    11951195 *
    1196  * @global wpdb $wpdb
     1196 * @global wpdb $wpdb WordPress database abstraction object.
    11971197 *
    11981198 * @param int      $network_id ID of the network. Can be null to default to the current network ID.
    11991199 * @param string   $option     Name of option to retrieve. Expected to not be SQL-escaped.
     
    13261326 *
    13271327 * @see add_option()
    13281328 *
    1329  * @global wpdb $wpdb
     1329 * @global wpdb $wpdb WordPress database abstraction object.
    13301330 *
    13311331 * @param int    $network_id ID of the network. Can be null to default to the current network ID.
    13321332 * @param string $option     Name of option to add. Expected to not be SQL-escaped.
     
    14481448 *
    14491449 * @see delete_option()
    14501450 *
    1451  * @global wpdb $wpdb
     1451 * @global wpdb $wpdb WordPress database abstraction object.
    14521452 *
    14531453 * @param int    $network_id ID of the network. Can be null to default to the current network ID.
    14541454 * @param string $option     Name of option to remove. Expected to not be SQL-escaped.
     
    15411541 *
    15421542 * @see update_option()
    15431543 *
    1544  * @global wpdb $wpdb
     1544 * @global wpdb $wpdb WordPress database abstraction object.
    15451545 *
    15461546 * @param int      $network_id ID of the network. Can be null to default to the current network ID.
    15471547 * @param string   $option     Name of option. Expected to not be SQL-escaped.
  • src/wp-includes/post-template.php

     
    583583 *
    584584 * @since 2.8.0
    585585 *
    586  * @global WP_Query $wp_query
     586 * @global WP_Query $wp_query Global WP_Query instance.
    587587 *
    588588 * @param string|string[] $class Space-separated string or array of class names to add to the class list.
    589589 * @return string[] Array of class names.
     
    12041204 *
    12051205 * @see get_pages()
    12061206 *
    1207  * @global WP_Query $wp_query
     1207 * @global WP_Query $wp_query Global WP_Query instance.
    12081208 *
    12091209 * @param array|string $args {
    12101210 *     Optional. Array or string of arguments to generate a list of pages. See `get_pages()` for additional arguments.
  • src/wp-includes/post-thumbnail-template.php

     
    7171 *
    7272 * @since 3.2.0
    7373 *
    74  * @global WP_Query $wp_query
     74 * @global WP_Query $wp_query Global WP_Query instance.
    7575 *
    7676 * @param WP_Query $wp_query Optional. A WP_Query instance. Defaults to the $wp_query global.
    7777 */
  • src/wp-includes/script-loader.php

     
    26112611 *
    26122612 * @since 5.0.0
    26132613 *
    2614  * @global WP_Screen $current_screen
     2614 * @global WP_Screen $current_screen The WordPress Current screen object.
    26152615 */
    26162616function wp_common_block_scripts_and_styles() {
    26172617        global $current_screen;
     
    26452645 *
    26462646 * @since 5.0.0
    26472647 *
    2648  * @global WP_Screen $current_screen
     2648 * @global WP_Screen $current_screen The WordPress Current screen object.
    26492649 */
    26502650function wp_enqueue_registered_block_scripts_and_styles() {
    26512651        global $current_screen;
  • src/wp-includes/template.php

     
    668668 * @global array      $posts
    669669 * @global WP_Post    $post
    670670 * @global bool       $wp_did_header
    671  * @global WP_Query   $wp_query
     671 * @global WP_Query   $wp_query      Global WP_Query instance.
    672672 * @global WP_Rewrite $wp_rewrite
    673  * @global wpdb       $wpdb
     673 * @global wpdb       $wpdb          WordPress database abstraction object.
    674674 * @global string     $wp_version
    675675 * @global WP         $wp
    676676 * @global int        $id
  • src/wp-includes/theme.php

     
    265265 *
    266266 * @since 2.1.0
    267267 *
    268  * @global WP_Locale $wp_locale
     268 * @global WP_Locale $wp_locale The WordPress date and time locale object.
    269269 *
    270270 * @return string
    271271 */
     
    32313231 * @param string   $new_status Transition to this post status.
    32323232 * @param string   $old_status Previous post status.
    32333233 * @param \WP_Post $post       Post data.
    3234  * @global wpdb $wpdb
     3234 * @global wpdb $wpdb WordPress database abstraction object.
    32353235 */
    32363236function _wp_keep_alive_customize_changeset_dependent_auto_drafts( $new_status, $old_status, $post ) {
    32373237        global $wpdb;
  • src/wp-includes/update.php

     
    1515 *
    1616 * @since 2.3.0
    1717 * @global string $wp_version Used to check against the newest WordPress version.
    18  * @global wpdb   $wpdb
     18 * @global wpdb   $wpdb WordPress database abstraction object.
    1919 * @global string $wp_local_package
    2020 *
    2121 * @param array $extra_stats Extra statistics to report to the WordPress.org API.
  • src/wp-settings.php

     
    398398 * Holds the reference to @see $wp_the_query
    399399 * Use this global for WordPress queries
    400400 *
    401  * @global WP_Query $wp_query
     401 * @global WP_Query $wp_query Global WP_Query instance.
    402402 * @since 1.5.0
    403403 */
    404404$GLOBALS['wp_query'] = $GLOBALS['wp_the_query'];
     
    458458/**
    459459 * WordPress Locale object for loading locale domain date and various strings.
    460460 *
    461  * @global WP_Locale $wp_locale
     461 * @global WP_Locale $wp_locale The WordPress date and time locale object.
    462462 * @since 2.1.0
    463463 */
    464464$GLOBALS['wp_locale'] = new WP_Locale();