WordPress.org

Make WordPress Core

Ticket #45604: 45604.patch

File 45604.patch, 16.4 KB (added by mukesh27, 10 months ago)

Patch.

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

     
    501501         *
    502502         * @since 3.1.0
    503503         *
    504          * @global wpdb      $wpdb
     504         * @global wpdb      $wpdb      WordPress database abstraction object.
    505505         * @global WP_Locale $wp_locale
    506506         *
    507507         * @param string $post_type
  • src/wp-admin/includes/class-wp-ms-sites-list-table.php

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

     
    2828         *
    2929         * @global string $usersearch
    3030         * @global string $role
    31          * @global wpdb   $wpdb
     31         * @global wpdb   $wpdb WordPress database abstraction object.
    3232         * @global string $mode
    3333         */
    3434        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         */
     
    660660        }
    661661
    662662        /**
    663          * @global wpdb    $wpdb
     663         * @global wpdb    $wpdb WordPress database abstraction object.
    664664         * @global WP_Post $post
    665665         * @param array $pages
    666666         * @param int $pagenum
  • src/wp-admin/includes/media.php

     
    23492349 *
    23502350 * @since 2.5.0
    23512351 *
    2352  * @global wpdb      $wpdb
     2352 * @global wpdb      $wpdb            WordPress database abstraction object.
    23532353 * @global WP_Query  $wp_query
    23542354 * @global WP_Locale $wp_locale
    23552355 * @global string    $type
  • 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 */
     
    867867 *
    868868 * @since 3.0.0
    869869 *
    870  * @global wpdb       $wpdb
     870 * @global wpdb       $wpdb          WordPress database abstraction object.
    871871 * @global object     $current_site
    872872 * @global int        $wp_db_version
    873873 * @global WP_Rewrite $wp_rewrite
  • src/wp-admin/includes/update-core.php

     
    862862 * @global WP_Filesystem_Base $wp_filesystem
    863863 * @global array              $_old_files
    864864 * @global array              $_new_bundled_files
    865  * @global wpdb               $wpdb
     865 * @global wpdb               $wpdb                   WordPress database abstraction object.
    866866 * @global string             $wp_version
    867867 * @global string             $required_php_version
    868868 * @global string             $required_mysql_version
  • src/wp-admin/includes/upgrade.php

     
    121121 *
    122122 * @since 2.1.0
    123123 *
    124  * @global wpdb       $wpdb
     124 * @global wpdb       $wpdb         WordPress database abstraction object.
    125125 * @global WP_Rewrite $wp_rewrite
    126126 * @global string     $table_prefix
    127127 *
     
    14111411 * @since 3.3.0
    14121412 *
    14131413 * @global int   $wp_current_db_version
    1414  * @global wpdb  $wpdb
     1414 * @global wpdb  $wpdb                  WordPress database abstraction object.
    14151415 * @global array $wp_registered_widgets
    14161416 * @global array $sidebars_widgets
    14171417 */
     
    14861486 * @since 3.4.0
    14871487 *
    14881488 * @global int   $wp_current_db_version
    1489  * @global wpdb  $wpdb
     1489 * @global wpdb  $wpdb                  WordPress database abstraction object.
    14901490 */
    14911491function upgrade_340() {
    14921492        global $wp_current_db_version, $wpdb;
     
    15231523 * @since 3.5.0
    15241524 *
    15251525 * @global int   $wp_current_db_version
    1526  * @global wpdb  $wpdb
     1526 * @global wpdb  $wpdb                  WordPress database abstraction object.
    15271527 */
    15281528function upgrade_350() {
    15291529        global $wp_current_db_version, $wpdb;
     
    16191619 * @since 4.2.0
    16201620 *
    16211621 * @global int   $wp_current_db_version
    1622  * @global wpdb  $wpdb
     1622 * @global wpdb  $wpdb                  WordPress database abstraction object.
    16231623 */
    16241624function upgrade_420() {}
    16251625
     
    18411841 * @since 3.0.0
    18421842 *
    18431843 * @global int   $wp_current_db_version
    1844  * @global wpdb  $wpdb
     1844 * @global wpdb  $wpdb                  WordPress database abstraction object.
    18451845 */
    18461846function upgrade_network() {
    18471847        global $wp_current_db_version, $wpdb;
     
    19861986 *
    19871987 * @since 1.0.0
    19881988 *
    1989  * @global wpdb  $wpdb
     1989 * @global wpdb  $wpdb WordPress database abstraction object.
    19901990 *
    19911991 * @param string $table_name Database table name to create.
    19921992 * @param string $create_ddl SQL statement to create table.
     
    20162016 *
    20172017 * @since 1.0.1
    20182018 *
    2019  * @global wpdb  $wpdb
     2019 * @global wpdb  $wpdb WordPress database abstraction object.
    20202020 *
    20212021 * @param string $table Database table name.
    20222022 * @param string $index Index name to drop.
     
    20392039 *
    20402040 * @since 1.0.1
    20412041 *
    2042  * @global wpdb  $wpdb
     2042 * @global wpdb  $wpdb WordPress database abstraction object.
    20432043 *
    20442044 * @param string $table Database table name.
    20452045 * @param string $index Database table index column.
     
    20572057 *
    20582058 * @since 1.3.0
    20592059 *
    2060  * @global wpdb  $wpdb
     2060 * @global wpdb  $wpdb WordPress database abstraction object.
    20612061 *
    20622062 * @param string $table_name  The table name to modify.
    20632063 * @param string $column_name The column name to add to the table.
     
    20892089 *
    20902090 * @since 4.2.0
    20912091 *
    2092  * @global wpdb  $wpdb
     2092 * @global wpdb  $wpdb WordPress database abstraction object.
    20932093 *
    20942094 * @param string $table The table to convert.
    20952095 * @return bool true if the table was converted, false if it wasn't.
     
    21322132 *
    21332133 * @since 1.2.0
    21342134 *
    2135  * @global wpdb  $wpdb
     2135 * @global wpdb  $wpdb WordPress database abstraction object.
    21362136 *
    21372137 * @return stdClass List of options.
    21382138 */
     
    21562156 * @since 1.5.1
    21572157 * @access private
    21582158 *
    2159  * @global wpdb  $wpdb
     2159 * @global wpdb  $wpdb WordPress database abstraction object.
    21602160 *
    21612161 * @param string $setting Option name.
    21622162 * @return mixed
     
    22172217 *
    22182218 * @since 1.5.0
    22192219 *
    2220  * @global wpdb  $wpdb
     2220 * @global wpdb  $wpdb WordPress database abstraction object.
    22212221 *
    22222222 * @param string|array $queries Optional. The query to run. Can be multiple queries
    22232223 *                              in an array, or a string of queries separated by
     
    28452845 *
    28462846 * @since 2.1.0
    28472847 *
    2848  * @global wpdb  $wpdb
     2848 * @global wpdb  $wpdb WordPress database abstraction object.
    28492849 */
    28502850function wp_check_mysql_version() {
    28512851        global $wpdb;
     
    29542954 *
    29552955 * @since 3.0.0
    29562956 *
    2957  * @global wpdb   $wpdb
     2957 * @global wpdb   $wpdb            WordPress database abstraction object.
    29582958 * @global string $charset_collate
    29592959 */
    29602960function install_global_terms() {
  • src/wp-admin/install.php

     
    225225 * @global string $wp_version
    226226 * @global string $required_php_version
    227227 * @global string $required_mysql_version
    228  * @global wpdb   $wpdb
     228 * @global wpdb   $wpdb                   WordPress database abstraction object.
    229229 */
    230230global $wp_version, $required_php_version, $required_mysql_version;
    231231
  • 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

     
    3939 * @global string $wp_version
    4040 * @global string $required_php_version
    4141 * @global string $required_mysql_version
    42  * @global wpdb   $wpdb
     42 * @global wpdb   $wpdb                   WordPress database abstraction object.
    4343 */
    4444global $wp_version, $required_php_version, $required_mysql_version;
    4545
  • src/wp-includes/class-wp-customize-manager.php

     
    32783278         *
    32793279         * @since 4.7.0
    32803280         * @see _wp_customize_publish_changeset()
    3281          * @global wpdb $wpdb
     3281         * @global wpdb $wpdb WordPress database abstraction object.
    32823282         *
    32833283         * @param int $changeset_post_id ID for customize_changeset post. Defaults to the changeset for the current manager instance.
    32843284         * @return true|WP_Error True or error info.
  • src/wp-includes/comment-template.php

     
    12861286 *
    12871287 * @global WP_Query   $wp_query
    12881288 * @global WP_Post    $post
    1289  * @global wpdb       $wpdb
     1289 * @global wpdb       $wpdb             WordPress database abstraction object.
    12901290 * @global int        $id
    12911291 * @global WP_Comment $comment
    12921292 * @global string     $user_login
  • src/wp-includes/general-template.php

     
    16731673 *
    16741674 * @see get_archives_link()
    16751675 *
    1676  * @global wpdb      $wpdb
     1676 * @global wpdb      $wpdb      WordPress database abstraction object.
    16771677 * @global WP_Locale $wp_locale
    16781678 *
    16791679 * @param string|array $args {
     
    19151915 *
    19161916 * @since 1.0.0
    19171917 *
    1918  * @global wpdb      $wpdb
     1918 * @global wpdb      $wpdb      WordPress database abstraction object.
    19191919 * @global int       $m
    19201920 * @global int       $monthnum
    19211921 * @global int       $year
  • src/wp-includes/media.php

     
    32973297 * @since 3.5.0
    32983298 *
    32993299 * @global int       $content_width
    3300  * @global wpdb      $wpdb
     3300 * @global wpdb      $wpdb          WordPress database abstraction object.
    33013301 * @global WP_Locale $wp_locale
    33023302 *
    33033303 * @param array $args {
  • src/wp-includes/ms-blogs.php

     
    787787 * @see restore_current_blog()
    788788 * @since MU (3.0.0)
    789789 *
    790  * @global wpdb            $wpdb
     790 * @global wpdb            $wpdb               WordPress database abstraction object.
    791791 * @global int             $blog_id
    792792 * @global array           $_wp_switched_stack
    793793 * @global bool            $switched
     
    867867 * @see switch_to_blog()
    868868 * @since MU (3.0.0)
    869869 *
    870  * @global wpdb            $wpdb
     870 * @global wpdb            $wpdb               WordPress database abstraction object.
    871871 * @global array           $_wp_switched_stack
    872872 * @global int             $blog_id
    873873 * @global bool            $switched
  • src/wp-includes/ms-functions.php

     
    561561 *
    562562 * @since MU (3.0.0)
    563563 *
    564  * @global wpdb   $wpdb
     564 * @global wpdb   $wpdb   WordPress database abstraction object.
    565565 * @global string $domain
    566566 *
    567567 * @param string         $blogname   The blog name provided by the user. Must be unique.
     
    14251425 *
    14261426 * @since MU (3.0.0)
    14271427 *
    1428  * @global wpdb     $wpdb
     1428 * @global wpdb     $wpdb     WordPress database abstraction object.
    14291429 * @global WP_Roles $wp_roles
    14301430 *
    14311431 * @param int    $blog_id    The value returned by insert_blog().
  • src/wp-includes/option.php

     
    11651165 *
    11661166 * @see get_option()
    11671167 *
    1168  * @global wpdb $wpdb
     1168 * @global wpdb $wpdb WordPress database abstraction object.
    11691169 *
    11701170 * @param int      $network_id ID of the network. Can be null to default to the current network ID.
    11711171 * @param string   $option     Name of option to retrieve. Expected to not be SQL-escaped.
     
    12931293 *
    12941294 * @see add_option()
    12951295 *
    1296  * @global wpdb $wpdb
     1296 * @global wpdb $wpdb WordPress database abstraction object.
    12971297 *
    12981298 * @param int    $network_id ID of the network. Can be null to default to the current network ID.
    12991299 * @param string $option     Name of option to add. Expected to not be SQL-escaped.
     
    14081408 *
    14091409 * @see delete_option()
    14101410 *
    1411  * @global wpdb $wpdb
     1411 * @global wpdb $wpdb WordPress database abstraction object.
    14121412 *
    14131413 * @param int    $network_id ID of the network. Can be null to default to the current network ID.
    14141414 * @param string $option     Name of option to remove. Expected to not be SQL-escaped.
     
    14951495 *
    14961496 * @see update_option()
    14971497 *
    1498  * @global wpdb $wpdb
     1498 * @global wpdb $wpdb WordPress database abstraction object.
    14991499 *
    15001500 * @param int      $network_id ID of the network. Can be null to default to the current network ID.
    15011501 * @param string   $option     Name of option. Expected to not be SQL-escaped.
  • src/wp-includes/template.php

     
    663663 * @global bool       $wp_did_header
    664664 * @global WP_Query   $wp_query
    665665 * @global WP_Rewrite $wp_rewrite
    666  * @global wpdb       $wpdb
     666 * @global wpdb       $wpdb          WordPress database abstraction object.
    667667 * @global string     $wp_version
    668668 * @global WP         $wp
    669669 * @global int        $id
  • src/wp-includes/theme.php

     
    30813081 * @param string   $new_status Transition to this post status.
    30823082 * @param string   $old_status Previous post status.
    30833083 * @param \WP_Post $post       Post data.
    3084  * @global wpdb $wpdb
     3084 * @global wpdb $wpdb WordPress database abstraction object.
    30853085 */
    30863086function _wp_keep_alive_customize_changeset_dependent_auto_drafts( $new_status, $old_status, $post ) {
    30873087        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.