Skip to:
Content

bbPress.org

Changeset 5300


Ignore:
Timestamp:
03/03/2014 04:36:07 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Add meta_type hinting to admin queries. See #2554.

Location:
trunk/src/includes/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/replies.php

    r5040 r5300  
    810810        if ( !empty( $_GET['bbp_forum_id'] ) ) {
    811811            $query_vars['meta_key']   = '_bbp_forum_id';
     812            $query_vars['meta_type']  = 'NUMERIC';
    812813            $query_vars['meta_value'] = $_GET['bbp_forum_id'];
    813814        }
  • trunk/src/includes/admin/tools.php

    r5265 r5300  
    407407        'post_type'   => bbp_get_forum_post_type(),
    408408        'meta_key'    => '_bbp_old_forum_id',
     409        'meta_type'   => 'NUMERIC',
    409410        'meta_value'  => $old_default_forum_id,
    410411        'numberposts' => 1
  • trunk/src/includes/admin/topics.php

    r5073 r5300  
    880880        if ( !empty( $_GET['bbp_forum_id'] ) ) {
    881881            $query_vars['meta_key']   = '_bbp_forum_id';
     882            $query_vars['meta_type']  = 'NUMERIC';
    882883            $query_vars['meta_value'] = $_GET['bbp_forum_id'];
    883884        }
Note: See TracChangeset for help on using the changeset viewer.