WordPress.org

Make WordPress Core

Changeset 30122


Ignore:
Timestamp:
10/31/2014 05:55:39 PM (6 years ago)
Author:
DrewAPicture
Message:

Correct references of @uses $wpdb in core documentation to use @global.

See #30191, [30105].
Fixes #30217.

Location:
trunk/src
Files:
18 edited

Legend:

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

    r27469 r30122  
    113113 * Create the date options fields for exporting a given post type.
    114114 *
    115  * @global wpdb      $wpdb      WordPress database object.
     115 * @global wpdb      $wpdb      WordPress database abstraction object.
    116116 * @global WP_Locale $wp_locale Date and Time Locale object.
    117117 *
  • trunk/src/wp-admin/includes/comment.php

    r25434 r30122  
    1111 *
    1212 * @since 2.0.0
    13  * @uses $wpdb
     13 *
     14 * @global wpdb $wpdb WordPress database abstraction object.
    1415 *
    1516 * @param string $comment_author Author of the comment
     
    111112 *
    112113 * @since 2.3.0
    113  * @uses $wpdb
     114 *
     115 * @global wpdb $wpdb WordPress database abstraction object.
    114116 *
    115117 * @param int|array $post_id Either a single Post ID or an array of Post IDs
  • trunk/src/wp-admin/includes/schema.php

    r30056 r30122  
    325325 *
    326326 * @since 1.5.0
    327  * @uses $wpdb
     327 *
     328 * @global wpdb $wpdb WordPress database abstraction object.
    328329 * @uses $wp_db_version
    329330 */
  • trunk/src/wp-admin/install-helper.php

    r29206 r30122  
    4545 * @since 1.0.0
    4646 *
    47  * @uses $wpdb
     47 * @global wpdb $wpdb WordPress database abstraction object.
    4848 *
    4949 * @param string $table_name Database table name.
     
    7777 * @since 1.0.0
    7878 *
    79  * @uses $wpdb
     79 * @global wpdb $wpdb WordPress database abstraction object.
    8080 *
    8181 * @param string $table_name Database table name
     
    111111 * @since 1.0.0
    112112 *
    113  * @uses $wpdb
     113 * @global wpdb $wpdb WordPress database abstraction object.
    114114 *
    115115 * @param string $table_name Table name
  • trunk/src/wp-includes/bookmark.php

    r30105 r30122  
    1111 *
    1212 * @since 2.1.0
    13  * @uses $wpdb Database Object
     13 *
     14 * @global wpdb $wpdb WordPress database abstraction object.
    1415 *
    1516 * @param mixed $bookmark
     
    9293 * @since 2.1.0
    9394 *
    94  * @global wpdb $wpdb WordPress database access abstraction object.
     95 * @global wpdb $wpdb WordPress database abstraction object.
    9596 *
    9697 * @param string|array $args {
  • trunk/src/wp-includes/canonical.php

    r30090 r30122  
    513513 *
    514514 * @since 2.3.0
    515  * @uses $wpdb
     515 *
     516 * @global wpdb $wpdb WordPress database abstraction object.
    516517 *
    517518 * @return bool|string The correct URL if one is found. False on failure.
  • trunk/src/wp-includes/capabilities.php

    r29634 r30122  
    105105     * @since 2.1.0
    106106     * @access protected
    107      * @uses $wpdb Used to get the database prefix.
     107     *
     108     * @global wpdb  $wpdb          WordPress database abstraction object.
    108109     * @global array $wp_user_roles Used to set the 'roles' property value.
    109110     */
  • trunk/src/wp-includes/comment.php

    r30110 r30122  
    2525 * @since 1.2.0
    2626 *
    27  * @global wpdb $wpdb WordPress database access abstraction object.
     27 * @global wpdb $wpdb WordPress database abstraction object.
    2828 *
    2929 * @param string $author       Comment author name.
     
    156156 *
    157157 * @since 2.0.0
    158  * @uses $wpdb
     158 *
     159 * @global wpdb $wpdb WordPress database abstraction object.
    159160 *
    160161 * @param object|string|int $comment Comment to retrieve.
     
    215216 *
    216217 * @since 2.7.0
    217  * @uses $wpdb
     218 *
     219 * @global wpdb $wpdb WordPress database abstraction object.
    218220 *
    219221 * @param mixed $args Optional. Array or string of options to override defaults.
     
    758760 *
    759761 * @since 1.5.0
    760  * @uses $wpdb
     762 *
     763 * @global wpdb $wpdb WordPress database abstraction object.
    761764 *
    762765 * @param string $timezone Which timezone to use in reference to 'gmt', 'blog',
     
    798801 *
    799802 * @since 2.0.0
    800  * @uses $wpdb
     803 *
     804 * @global wpdb $wpdb WordPress database abstraction object.
    801805 *
    802806 * @param int $post_id Optional. Comment amount in post if > 0, else total comments blog wide.
     
    10161020 *
    10171021 * @since 2.0.0
    1018  * @uses $wpdb
     1022 *
     1023 * @global wpdb $wpdb WordPress database abstraction object.
    10191024 *
    10201025 * @param array $commentdata Contains information on the comment
     
    11331138 *
    11341139 * @since 2.3.0
    1135  * @uses $wpdb
     1140 *
     1141 * @global wpdb $wpdb WordPress database abstraction object.
    11361142 *
    11371143 * @param string $ip Comment IP.
     
    14361442 *
    14371443 * @since 2.0.0
    1438  * @uses $wpdb
     1444 *
     1445 * @global wpdb $wpdb WordPress database abstraction object.
    14391446 *
    14401447 * @param int $comment_id Comment ID
     
    18111818 *
    18121819 * @since 2.0.0
    1813  * @uses $wpdb
     1820 *
     1821 * @global wpdb $wpdb WordPress database abstraction object.
    18141822 *
    18151823 * @param array $commentdata Contains information on the comment.
     
    21062114 *
    21072115 * @since 2.0.0
    2108  * @uses $wpdb
     2116 *
     2117 * @global wpdb $wpdb WordPress database abstraction object.
    21092118 *
    21102119 * @param array $commentarr Contains information on the comment.
     
    22442253 *
    22452254 * @since 2.5.0
    2246  * @uses $wpdb
     2255 *
     2256 * @global wpdb $wpdb WordPress database abstraction object.
    22472257 *
    22482258 * @param int $post_id Post ID
     
    23582368 *
    23592369 * @since 2.1.0
    2360  * @uses $wpdb
     2370 *
     2371 * @global wpdb $wpdb WordPress database abstraction object.
    23612372 */
    23622373function do_all_pings() {
     
    23892400 *
    23902401 * @since 1.5.0
    2391  * @uses $wpdb
     2402 *
     2403 * @global wpdb $wpdb WordPress database abstraction object.
    23922404 *
    23932405 * @param int $post_id Post ID to do trackbacks on.
     
    25632575 *
    25642576 * @since 0.71
    2565  * @uses $wpdb
     2577 *
     2578 * @global wpdb $wpdb WordPress database abstraction object.
    25662579 *
    25672580 * @param string $trackback_url URL to send trackbacks.
  • trunk/src/wp-includes/deprecated.php

    r30105 r30122  
    24252425 * @since 2.2.0
    24262426 * @deprecated 3.1.0
    2427  * @uses $wpdb WordPress database object for queries
     2427 *
     2428 * @global wpdb $wpdb WordPress database abstraction object.
    24282429 * @uses $blog_id The Blog id of the blog for those that use more than one blog
    24292430 *
  • trunk/src/wp-includes/functions.php

    r30105 r30122  
    10881088 * @since 2.0.0
    10891089 *
    1090  * @global wpdb $wpdb WordPress database access abstraction object.
     1090 * @global wpdb $wpdb WordPress database abstraction object.
    10911091 *
    10921092 * @return int Number of database queries.
     
    12541254 * @since 2.1.0
    12551255 *
    1256  * @global wpdb $wpdb WordPress database access abstraction object.
     1256 * @global wpdb $wpdb WordPress database abstraction object.
    12571257 *
    12581258 * @return bool Whether the blog is already installed.
     
    32393239 * @since 2.3.2
    32403240 *
    3241  * @global wpdb $wpdb WordPress database access abstraction object.
     3241 * @global wpdb $wpdb WordPress database abstraction object.
    32423242 */
    32433243function dead_db() {
  • trunk/src/wp-includes/media.php

    r30105 r30122  
    32613261 * @since 4.0.0
    32623262 *
    3263  * @global wpdb $wpdb WordPress database access abstraction object.
     3263 * @global wpdb $wpdb WordPress database abstraction object.
    32643264 *
    32653265 * @param string $url The URL to resolve.
  • trunk/src/wp-includes/meta.php

    r30115 r30122  
    1616 *
    1717 * @since 2.9.0
    18  * @uses $wpdb WordPress database object for queries.
     18 *
     19 * @global wpdb $wpdb WordPress database abstraction object.
    1920 *
    2021 * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)
     
    129130 *
    130131 * @since 2.9.0
    131  * @uses $wpdb WordPress database object for queries.
     132 *
     133 * @global wpdb $wpdb WordPress database abstraction object.
    132134 *
    133135 * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)
     
    279281 *
    280282 * @since 2.9.0
    281  * @uses $wpdb WordPress database object for queries.
     283 *
     284 * @global wpdb $wpdb WordPress database abstraction object.
    282285 *
    283286 * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)
     
    757760 *
    758761 * @since 2.9.0
    759  * @uses $wpdb WordPress database object for queries.
     762 *
     763 * @global wpdb $wpdb WordPress database abstraction object.
    760764 *
    761765 * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)
     
    15011505 *
    15021506 * @since 2.9.0
    1503  * @uses $wpdb WordPress database object for queries.
     1507 *
     1508 * @global wpdb $wpdb WordPress database abstraction object.
    15041509 *
    15051510 * @param string $type Type of object to get metadata table for (e.g., comment, post, or user)
  • trunk/src/wp-includes/pluggable.php

    r30105 r30122  
    14851485 * @since 1.0.0
    14861486 *
    1487  * @uses $wpdb
     1487 * @global wpdb $wpdb WordPress database abstraction object.
    14881488 *
    14891489 * @param int $comment_id Comment ID
     
    20652065 * @since 2.5.0
    20662066 *
    2067  * @uses $wpdb WordPress database object for queries
     2067 * @global wpdb $wpdb WordPress database abstraction object.
    20682068 *
    20692069 * @param string $password The plaintext new user password
  • trunk/src/wp-includes/post.php

    r30105 r30122  
    17901790 * @since 2.5.0
    17911791 *
    1792  * @global wpdb $wpdb WordPress database access abstraction object.
     1792 * @global wpdb $wpdb WordPress database abstraction object.
    17931793 *
    17941794 * @param int    $post_id   Optional. Post ID to change post type. Default 0.
     
    25552555 * @since 1.0.0
    25562556 *
    2557  * @global wpdb $wpdb WordPress database access abstraction object.
     2557 * @global wpdb $wpdb WordPress database abstraction object.
    25582558 * @see wp_delete_attachment()
    25592559 * @see wp_trash_post()
     
    28002800 * @since 2.9.0
    28012801 *
    2802  * @global wpdb $wpdb WordPress database access abstraction object.
     2802 * @global wpdb $wpdb WordPress database abstraction object.
    28032803 *
    28042804 * @param int|WP_Post $post Optional. Post ID or post object. Defaults to global $post.
     
    47424742 * @since 2.0.0
    47434743 *
    4744  * @global wpdb $wpdb WordPress database access abstraction object.
     4744 * @global wpdb $wpdb WordPress database abstraction object.
    47454745 *
    47464746 * @param int  $post_id      Attachment ID.
     
    54315431 * @since 2.0.0
    54325432 *
    5433  * @global wpdb $wpdb WordPress database access abstraction object.
     5433 * @global wpdb $wpdb WordPress database abstraction object.
    54345434 *
    54355435 * @param int|WP_Post $post Post ID or post object to remove from the cache.
     
    55895589 *
    55905590 * @see wp_clear_scheduled_hook()
    5591  * @global wpdb $wpdb WordPress database access abstraction object.
     5591 * @global wpdb $wpdb WordPress database abstraction object.
    55925592 *
    55935593 * @param string  $new_status New post status.
     
    57815781 * @since 3.4.0
    57825782 *
    5783  * @global wpdb $wpdb WordPress database access abstraction object.
     5783 * @global wpdb $wpdb WordPress database abstraction object.
    57845784 */
    57855785function wp_delete_auto_drafts() {
  • trunk/src/wp-includes/query.php

    r30105 r30122  
    22122212     * @access protected
    22132213     *
    2214      * @global wpdb $wpdb WordPress database access abstraction object.
     2214     * @global wpdb $wpdb WordPress database abstraction object.
    22152215     *
    22162216     * @param string $orderby Alias for the field to order by.
     
    46204620 *
    46214621 * @since 2.1.0
     4622 *
    46224623 * @uses $wp_query
    4623  * @uses $wpdb
     4624 * @global wpdb $wpdb WordPress database abstraction object.
    46244625 *
    46254626 * @return null If no link is found, null is returned.
  • trunk/src/wp-includes/taxonomy.php

    r30108 r30122  
    563563 * @since 2.3.0
    564564 *
    565  * @uses $wpdb
     565 * @global wpdb $wpdb WordPress database abstraction object.
    566566 *
    567567 * @param int|array $term_ids Term id or array of term ids of terms that will be used
     
    12621262 * @since 2.3.0
    12631263 *
    1264  * @uses $wpdb
     1264 * @global wpdb $wpdb WordPress database abstraction object.
    12651265 * @see sanitize_term_field() The $context param lists the available values for get_term_by() $filter param.
    12661266 *
     
    13571357 * @since 2.3.0
    13581358 *
    1359  * @uses $wpdb
     1359 * @global wpdb $wpdb WordPress database abstraction object.
    13601360 * @see sanitize_term_field() The $context param lists the available values for get_term_by() $filter param.
    13611361 *
     
    14471447 * @since 2.3.0
    14481448 *
    1449  * @uses $wpdb
     1449 * @global wpdb $wpdb WordPress database abstraction object.
    14501450 *
    14511451 * @param string $term_id ID of Term to get children
     
    15541554 * @since 2.3.0
    15551555 *
    1556  * @global wpdb $wpdb WordPress database access abstraction object.
     1556 * @global wpdb $wpdb WordPress database abstraction object.
    15571557 *
    15581558 * @param string|array $taxonomies Taxonomy name or list of Taxonomy names.
     
    20042004 * @since 3.0.0
    20052005 *
    2006  * @uses $wpdb
     2006 * @global wpdb $wpdb WordPress database abstraction object.
    20072007 *
    20082008 * @param int|string $term The term to check
     
    21442144 * @since 2.3.0
    21452145 *
    2146  * @uses $wpdb
     2146 * @global wpdb $wpdb WordPress database abstraction object.
    21472147 *
    21482148 * @param string $field Term field to sanitize
     
    23642364 * @since 2.3.0
    23652365 *
    2366  * @uses $wpdb
     2366 * @global wpdb $wpdb WordPress database abstraction object.
    23672367 *
    23682368 * @param int $term Term ID
     
    25632563 *
    25642564 * @since 2.3.0
    2565  * @uses $wpdb
     2565 *
     2566 * @global wpdb $wpdb WordPress database abstraction object.
    25662567 *
    25672568 * @param int|array $object_ids The ID(s) of the object(s) to retrieve.
     
    27342735 * or the term slug and name are not unique, a WP_Error object will be returned.
    27352736 *
    2736  * @global wpdb $wpdb The WordPress database object.
     2737 * @global wpdb $wpdb WordPress database abstraction object.
    27372738
    27382739 * @since 2.3.0
     
    30903091 *
    30913092 * @since 3.6.0
    3092  * @uses $wpdb
     3093 *
     3094 * @global wpdb $wpdb WordPress database abstraction object.
    30933095 *
    30943096 * @param int $object_id The ID of the object from which the terms will be removed.
     
    31783180 *
    31793181 * @since 2.3.0
    3180  * @uses $wpdb
     3182 *
     3183 * @global wpdb $wpdb WordPress database abstraction object.
    31813184 *
    31823185 * @param string $slug The string that will be tried for a unique slug
     
    32503253 * @since 2.3.0
    32513254 *
    3252  * @uses $wpdb
     3255 * @global wpdb $wpdb WordPress database abstraction object.
    32533256 *
    32543257 * @param int $term_id The ID of the term
     
    34953498 *
    34963499 * @since 2.3.0
    3497  * @uses $wpdb
     3500 *
     3501 * @global wpdb $wpdb WordPress database abstraction object.
    34983502 *
    34993503 * @param int|array $terms The term_taxonomy_id of the terms
     
    36083612 *
    36093613 * @since 2.3.0
    3610  * @uses $wpdb
     3614 *
     3615 * @global wpdb $wpdb WordPress database abstraction object.
    36113616 *
    36123617 * @param int|array $ids Single or list of Term IDs
     
    38713876 * @access private
    38723877 * @since 2.3.0
    3873  * @uses $wpdb
     3878 *
     3879 * @global wpdb $wpdb WordPress database abstraction object.
    38743880 *
    38753881 * @param array $terms List of Term IDs
     
    39353941 * @access private
    39363942 * @since 2.3.0
    3937  * @uses $wpdb
     3943 *
     3944 * @global wpdb $wpdb WordPress database abstraction object.
    39383945 *
    39393946 * @param array $terms List of Term taxonomy IDs
     
    39833990 *
    39843991 * @since 3.3.0
    3985  * @uses $wpdb
     3992 *
     3993 * @global wpdb $wpdb WordPress database abstraction object.
    39863994 *
    39873995 * @param array $terms List of Term taxonomy IDs
  • trunk/src/wp-includes/user.php

    r30105 r30122  
    807807         * @since 3.2.0
    808808         *
    809          * @global wpdb $wpdb WordPress database object.
     809         * @global wpdb $wpdb WordPress database abstraction object.
    810810         *
    811811         * @param string $sql The SELECT FOUND_ROWS() query for the current WP_User_Query.
  • trunk/src/wp-login.php

    r30033 r30122  
    264264 * Handles sending password retrieval email to user.
    265265 *
    266  * @uses $wpdb WordPress Database object
     266 * @global wpdb         $wpdb      WordPress database abstraction object.
     267 * @global PasswordHash $wp_hasher Portable PHP password hashing framework.
    267268 *
    268269 * @return bool|WP_Error True: when finish. WP_Error on error
Note: See TracChangeset for help on using the changeset viewer.