Skip to:
Content

bbPress.org


Ignore:
Timestamp:
09/14/2026 06:20:47 PM (4 weeks ago)
Author:
johnjamesjacoby
Message:

Administration: Normalize forum list filter IDs.

Cast the forum filter value to an integer before passing it into numeric meta queries for topic and reply list tables.

This keeps identifier handling consistent with the filter dropdown and avoids passing untyped request data into the query layer.

In trunk, for 2.7.

File:
1 edited

Legend:

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

    r7386 r7507  
    12281228                        $query_vars['meta_key']   = '_bbp_forum_id';
    12291229                        $query_vars['meta_type']  = 'NUMERIC';
    1230                         $query_vars['meta_value'] = $_GET['bbp_forum_id'];
     1230                        $query_vars['meta_value'] = (int) $_GET['bbp_forum_id'];
    12311231                }
    12321232
Note: See TracChangeset for help on using the changeset viewer.