Make WordPress Core


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

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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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() {
Note: See TracChangeset for help on using the changeset viewer.