Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/24/2011 10:20:13 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Add checks to supplemental topic and reply actions to make sure those actions are only called on those kinds of objects. Also perform sanity check on $argspost_parent? before attempting to unset it in bbp_has_topics()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-topic-functions.php

    r2922 r2933  
    18481848    $topic_id = bbp_get_topic_id( $topic_id );
    18491849
    1850     if ( empty( $topic_id ) )
     1850    if ( empty( $topic_id ) || !bbp_is_topic( $topic_id ) )
    18511851        return false;
    18521852
     
    18651865    $topic_id = bbp_get_topic_id( $topic_id );
    18661866
    1867     if ( empty( $topic_id ) )
     1867    if ( empty( $topic_id ) || !bbp_is_topic( $topic_id ) )
    18681868        return false;
    18691869
     
    18901890    $topic_id = bbp_get_topic_id( $topic_id );
    18911891
    1892     if ( empty( $topic_id ) )
     1892    if ( empty( $topic_id ) || !bbp_is_topic( $topic_id ) )
    18931893        return false;
    18941894
     
    19071907    $topic_id = bbp_get_topic_id( $topic_id );
    19081908
    1909     if ( empty( $topic_id ) )
     1909    if ( empty( $topic_id ) || !bbp_is_topic( $topic_id ) )
    19101910        return false;
    19111911
     
    19161916    $topic_id = bbp_get_topic_id( $topic_id );
    19171917
    1918     if ( empty( $topic_id ) )
     1918    if ( empty( $topic_id ) || !bbp_is_topic( $topic_id ) )
    19191919        return false;
    19201920
     
    19251925    $topic_id = bbp_get_topic_id( $topic_id );
    19261926
    1927     if ( empty( $topic_id ) )
     1927    if ( empty( $topic_id ) || !bbp_is_topic( $topic_id ) )
    19281928        return false;
    19291929
Note: See TracChangeset for help on using the changeset viewer.