Making WordPress.org

Changeset 3759


Ignore:
Timestamp:
08/01/2016 01:00:47 PM (10 years ago)
Author:
jmdodd
Message:

Support: Use cleaned variable for $post_type comparison.

Props ocean90.
See #1880.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-redirect/wporg-bbp-redirect.php

    r3758 r3759  
    4949                        }
    5050
    51                         if ( in_array( get_query_var( 'post_type' ), array( 'forum', 'topic' ) ) ) {
     51                        if ( in_array( $post_type, array( 'forum', 'topic' ) ) ) {
    5252                                $maybe_id = get_query_var( 'name' );
    5353                                if ( is_numeric( $maybe_id ) ) {
Note: See TracChangeset for help on using the changeset viewer.