WordPress.org

Make WordPress Core

Changeset 28539


Ignore:
Timestamp:
05/22/2014 05:36:42 PM (7 years ago)
Author:
wonderboymusic
Message:

These functions import $wpdb but do not use it.

See #27882.

Location:
trunk/src
Files:
8 edited

Legend:

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

    r28358 r28539  
    104104 */
    105105function wp_ajax_ajax_tag_search() {
    106     global $wpdb;
    107 
    108106    if ( isset( $_GET['tax'] ) ) {
    109107        $taxonomy = sanitize_key( $_GET['tax'] );
     
    895893 */
    896894function wp_ajax_replyto_comment( $action ) {
    897     global $wp_list_table, $wpdb;
     895    global $wp_list_table;
    898896    if ( empty( $action ) )
    899897        $action = 'replyto-comment';
  • trunk/src/wp-admin/includes/dashboard.php

    r28497 r28539  
    762762 */
    763763function wp_dashboard_recent_comments( $total_items = 5 ) {
    764     global $wpdb;
    765 
    766764    // Select all comment types and filter out spam later for better query performance.
    767765    $comments = array();
  • trunk/src/wp-admin/includes/meta-boxes.php

    r28499 r28539  
    624624 */
    625625function post_comment_meta_box( $post ) {
    626     global $wpdb;
    627 
    628626    wp_nonce_field( 'get-comments', 'add_comment_nonce', false );
    629627    ?>
  • trunk/src/wp-admin/includes/post.php

    r28497 r28539  
    519519 */
    520520function get_default_post_to_edit( $post_type = 'post', $create_in_db = false ) {
    521     global $wpdb;
    522 
    523521    $post_title = '';
    524522    if ( !empty( $_REQUEST['post_title'] ) )
     
    734732 */
    735733function add_meta( $post_ID ) {
    736     global $wpdb;
    737734    $post_ID = (int) $post_ID;
    738735
  • trunk/src/wp-includes/capabilities.php

    r28531 r28539  
    141141            return;
    142142
    143         global $wpdb, $wp_user_roles;
     143        global $wpdb;
    144144
    145145        // Duplicated from _init() to avoid an extra function call.
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r28515 r28539  
    31913191     */
    31923192    public function wp_newComment($args) {
    3193         global $wpdb;
    3194 
    31953193        $this->escape($args);
    31963194
  • trunk/src/wp-includes/general-template.php

    r28538 r28539  
    754754 */
    755755function wp_title($sep = '»', $display = true, $seplocation = '') {
    756     global $wpdb, $wp_locale;
     756    global $wp_locale;
    757757
    758758    $m = get_query_var('m');
  • trunk/src/wp-includes/taxonomy.php

    r28466 r28539  
    31623162 */
    31633163function wp_update_term_count_now( $terms, $taxonomy ) {
    3164     global $wpdb;
    3165 
    31663164    $terms = array_map('intval', $terms);
    31673165
Note: See TracChangeset for help on using the changeset viewer.