Make WordPress Core

Changeset 34446


Ignore:
Timestamp:
09/22/2015 08:26:17 PM (9 years ago)
Author:
wonderboymusic
Message:

Remove some unused globals and/or their docs.

See ##33491.

Location:
trunk/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-media-list-table.php

    r34383 r34446  
    7878
    7979    /**
    80      *
    81      * @global wpdb  $wpdb
    8280     * @global array $post_mime_types
    8381     * @global array $avail_post_mime_types
  • trunk/src/wp-includes/canonical.php

    r34272 r34446  
    534534 *
    535535 * @global wpdb $wpdb WordPress database abstraction object.
    536  * @global WP_Rewrite $wp_rewrite
    537536 *
    538537 * @return false|string The correct URL if one is found. False on failure.
    539538 */
    540539function redirect_guess_404_permalink() {
    541     global $wpdb, $wp_rewrite;
     540    global $wpdb;
    542541
    543542    if ( get_query_var('name') ) {
  • trunk/src/wp-includes/comment-functions.php

    r34411 r34446  
    163163 * @since 2.0.0
    164164 *
    165  * @global wpdb   $wpdb WordPress database abstraction object.
    166165 * @global object $comment
    167166 *
  • trunk/src/wp-includes/post-functions.php

    r34400 r34446  
    54075407 *
    54085408 * @global bool $_wp_suspend_cache_invalidation
    5409  * @global wpdb $wpdb WordPress database abstraction object.
    54105409 *
    54115410 * @param int|WP_Post $post Post ID or post object to remove from the cache.
    54125411 */
    54135412function clean_post_cache( $post ) {
    5414     global $_wp_suspend_cache_invalidation, $wpdb;
     5413    global $_wp_suspend_cache_invalidation;
    54155414
    54165415    if ( ! empty( $_wp_suspend_cache_invalidation ) )
  • trunk/src/wp-includes/post-template.php

    r34330 r34446  
    529529 *
    530530 * @global WP_Query $wp_query
    531  * @global wpdb     $wpdb
    532531 *
    533532 * @param string|array $class One or more classes to add to the class list.
     
    535534 */
    536535function get_body_class( $class = '' ) {
    537     global $wp_query, $wpdb;
     536    global $wp_query;
    538537
    539538    $classes = array();
  • trunk/src/wp-includes/taxonomy-functions.php

    r34403 r34446  
    38703870 * @since 4.3.0
    38713871 *
    3872  * @global wpdb $wpdb
    3873  *
    38743872 * @param int    $term_id          ID of the formerly shared term.
    38753873 * @param int    $new_term_id      ID of the new term created for the $term_taxonomy_id.
  • trunk/src/wp-includes/user-functions.php

    r34393 r34446  
    860860 * @since 2.3.0
    861861 *
    862  * @global wpdb $wpdb WordPress database object for queries.
    863862 * @global int  $blog_id
    864863 *
Note: See TracChangeset for help on using the changeset viewer.