Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/24/2012 06:54:00 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Rearrange $wpdb global usage in bbp_check_for_duplicate().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/common/functions.php

    r4499 r4500  
    649649                return true;
    650650
     651        // Define global to use get_meta_sql() and get_var() methods
     652        global $wpdb;
     653
    651654        $r = bbp_parse_args( $post_data, array(
    652655                'post_author'    => 0,
    … …  
    677680        $query .= " LIMIT 1";
    678681        $dupe   = apply_filters( 'bbp_check_for_duplicate_query', $query, $r );
    679 
    680         global $wpdb;
    681682
    682683        if ( $wpdb->get_var( $dupe ) ) {
Note: See TracChangeset for help on using the changeset viewer.