Make WordPress Core


Ignore:
Timestamp:
05/29/2015 02:05:26 AM (10 years ago)
Author:
wonderboymusic
Message:

Add @global annotations to (the rest of the?) wp-admin/* files.

Does not include list table file changes.

See #32444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/upgrade.php

    r32456 r32643  
    118118 *
    119119 * @since 2.1.0
     120 *
     121 * @global wpdb       $wpdb
     122 * @global WP_Rewrite $wp_rewrite
     123 * @global string     $table_prefix
    120124 *
    121125 * @param int $user_id User ID.
     
    386390 * @since 2.1.0
    387391 *
     392 * @global int  $wp_current_db_version
     393 * @global int  $wp_db_version
     394 * @global wpdb $wpdb
     395 *
    388396 * @return null If no update is necessary or site isn't completely installed, null.
    389397 */
     
    436444 * @since 1.0.1
    437445 *
     446 * @global int $wp_current_db_version
     447 * @global int $wp_db_version
     448 *
    438449 * @return null If no update is necessary, null.
    439450 */
     
    546557 *
    547558 * @since 1.0.0
     559 *
     560 * @global wpdb $wpdb
    548561 */
    549562function upgrade_100() {
     
    602615 *
    603616 * @since 1.0.1
     617 *
     618 * @global wpdb $wpdb
    604619 */
    605620function upgrade_101() {
     
    620635 *
    621636 * @since 1.2.0
     637 *
     638 * @global wpdb $wpdb
    622639 */
    623640function upgrade_110() {
     
    680697 *
    681698 * @since 1.5.0
     699 *
     700 * @global wpdb $wpdb
    682701 */
    683702function upgrade_130() {
     
    764783 *
    765784 * @since 2.0.0
     785 *
     786 * @global wpdb $wpdb
     787 * @global int  $wp_current_db_version
    766788 */
    767789function upgrade_160() {
     
    847869 *
    848870 * @since 2.1.0
     871 *
     872 * @global wpdb $wpdb
     873 * @global int  $wp_current_db_version
    849874 */
    850875function upgrade_210() {
     
    891916 *
    892917 * @since 2.3.0
     918 *
     919 * @global wpdb $wpdb
     920 * @global int  $wp_current_db_version
    893921 */
    894922function upgrade_230() {
     
    10671095 *
    10681096 * @since 2.3.0
     1097 *
     1098 * @global wpdb $wpdb
    10691099 */
    10701100function upgrade_230_options_table() {
     
    10811111 *
    10821112 * @since 2.3.0
     1113 *
     1114 * @global wpdb $wpdb
    10831115 */
    10841116function upgrade_230_old_tables() {
     
    10931125 *
    10941126 * @since 2.2.0
     1127 *
     1128 * @global wpdb $wpdb
    10951129 */
    10961130function upgrade_old_slugs() {
     
    11041138 *
    11051139 * @since 2.5.0
     1140 *
     1141 * @global int $wp_current_db_version
    11061142 */
    11071143function upgrade_250() {
     
    11181154 *
    11191155 * @since 2.5.2
     1156 *
     1157 * @global wpdb $wpdb
    11201158 */
    11211159function upgrade_252() {
     
    11291167 *
    11301168 * @since 2.6.0
     1169 *
     1170 * @global int $wp_current_db_version
    11311171 */
    11321172function upgrade_260() {
     
    11411181 *
    11421182 * @since 2.7.0
     1183 *
     1184 * @global wpdb $wpdb
     1185 * @global int  $wp_current_db_version
    11431186 */
    11441187function upgrade_270() {
     
    11571200 *
    11581201 * @since 2.8.0
     1202 *
     1203 * @global int  $wp_current_db_version
     1204 * @global wpdb $wpdb
    11591205 */
    11601206function upgrade_280() {
     
    11841230 *
    11851231 * @since 2.9.0
     1232 *
     1233 * @global int $wp_current_db_version
    11861234 */
    11871235function upgrade_290() {
     
    12011249 *
    12021250 * @since 3.0.0
     1251 *
     1252 * @global int  $wp_current_db_version
     1253 * @global wpdb $wpdb
    12031254 */
    12041255function upgrade_300() {
     
    12431294 *
    12441295 * @since 3.3.0
     1296 *
     1297 * @global int   $wp_current_db_version
     1298 * @global wpdb  $wpdb
     1299 * @global array $wp_registered_widgets
     1300 * @global array $sidebars_widgets
    12451301 */
    12461302function upgrade_330() {
     
    13121368 *
    13131369 * @since 3.4.0
     1370 *
     1371 * @global int   $wp_current_db_version
     1372 * @global wpdb  $wpdb
    13141373 */
    13151374function upgrade_340() {
     
    13451404 *
    13461405 * @since 3.5.0
     1406 *
     1407 * @global int   $wp_current_db_version
     1408 * @global wpdb  $wpdb
    13471409 */
    13481410function upgrade_350() {
     
    13721434 *
    13731435 * @since 3.7.0
     1436 *
     1437 * @global int $wp_current_db_version
    13741438 */
    13751439function upgrade_370() {
     
    13841448 * @since 3.7.2
    13851449 * @since 3.8.0
     1450 *
     1451 * @global int $wp_current_db_version
    13861452 */
    13871453function upgrade_372() {
     
    13951461 *
    13961462 * @since 3.8.0
     1463 *
     1464 * @global int $wp_current_db_version
    13971465 */
    13981466function upgrade_380() {
     
    14071475 *
    14081476 * @since 4.0.0
     1477 *
     1478 * @global int $wp_current_db_version
    14091479 */
    14101480function upgrade_400() {
     
    14251495 *
    14261496 * @since 4.2.0
     1497 *
     1498 * @global int   $wp_current_db_version
     1499 * @global wpdb  $wpdb
    14271500 */
    14281501function upgrade_420() {
     
    14461519 *
    14471520 * @since 4.3.0
     1521 *
     1522 * @global int   $wp_current_db_version
     1523 * @global wpdb  $wpdb
    14481524 */
    14491525function upgrade_430() {
     
    14941570 *
    14951571 * @since 3.0.0
     1572 *
     1573 * @global int   $wp_current_db_version
     1574 * @global wpdb  $wpdb
    14961575 */
    14971576function upgrade_network() {
     
    16351714 * @since 1.0.0
    16361715 *
     1716 * @global wpdb  $wpdb
     1717 *
    16371718 * @param string $table_name Database table name to create.
    16381719 * @param string $create_ddl SQL statement to create table.
     
    16621743 *
    16631744 * @since 1.0.1
     1745 *
     1746 * @global wpdb  $wpdb
    16641747 *
    16651748 * @param string $table Database table name.
     
    16841767 * @since 1.0.1
    16851768 *
     1769 * @global wpdb  $wpdb
     1770 *
    16861771 * @param string $table Database table name.
    16871772 * @param string $index Database table index column.
     
    17001785 * @since 1.3.0
    17011786 *
     1787 * @global wpdb  $wpdb
     1788 *
    17021789 * @param string $table_name  The table name to modify.
    17031790 * @param string $column_name The column name to add to the table.
     
    17291816 *
    17301817 * @since 4.2.0
     1818 *
     1819 * @global wpdb  $wpdb
    17311820 *
    17321821 * @param string $table The table to convert.
     
    17711860 * @since 1.2.0
    17721861 *
     1862 * @global wpdb  $wpdb
     1863 *
    17731864 * @return stdClass List of options.
    17741865 */
     
    17931884 * @access private
    17941885 *
     1886 * @global wpdb  $wpdb
     1887 *
    17951888 * @param string $setting Option name.
    17961889 * @return mixed
     
    18511944 *
    18521945 * @since 1.5.0
     1946 *
     1947 * @global wpdb  $wpdb
    18531948 *
    18541949 * @param string|array $queries Optional. The query to run. Can be multiple queries
     
    23762471 *
    23772472 * @since 2.1.0
     2473 *
     2474 * @global wpdb  $wpdb
    23782475 */
    23792476function wp_check_mysql_version() {
     
    24052502 *
    24062503 * @since 3.5.0
     2504 *
     2505 * @global int  $wp_current_db_version
     2506 * @global wpdb $wpdb
    24072507 */
    24082508function maybe_disable_link_manager() {
     
    24172517 *
    24182518 * @since 2.9.0
     2519 *
     2520 * @global int  $wp_current_db_version
     2521 * @global wpdb $wpdb
    24192522 */
    24202523function pre_schema_upgrade() {
     
    24732576 * @since 3.0.0
    24742577 *
     2578 * @global wpdb   $wpdb
     2579 * @global string $charset_collate
    24752580 */
    24762581if ( !function_exists( 'install_global_terms' ) ) :
Note: See TracChangeset for help on using the changeset viewer.