Skip to:
Content

bbPress.org

Changeset 4325


Ignore:
Timestamp:
11/03/2012 10:42:51 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Template Tags:

  • Check for edit when calling _is_ single forum/topic/reply.
  • See #1968.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/common/template-tags.php

    r4277 r4325  
    174174    $retval = false;
    175175
     176    // Edit is not a single forum
     177    if ( bbp_is_forum_edit() )
     178        return false;
     179
    176180    // Single and a match
    177181    if ( is_singular( bbp_get_forum_post_type() ) || bbp_is_query_name( 'bbp_single_forum' ) )
     
    244248    // Assume false
    245249    $retval = false;
     250
     251    // Edit is not a single topic
     252    if ( bbp_is_topic_edit() )
     253        return false;
    246254
    247255    // Single and a match
     
    487495    // Assume false
    488496    $retval = false;
     497
     498    // Edit is not a single reply
     499    if ( bbp_is_reply_edit() )
     500        return false;
    489501
    490502    // Single and a match
Note: See TracChangeset for help on using the changeset viewer.