Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/14/2011 03:50:25 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Introduce bbp_template_redirect() and use for checking various edit screens:

  • Introduce bbp_check_forum_edit() to check for forum edit
  • Introduce bbp_check_topic_edit() to check for topic edit
  • Introduce bbp_check_reply_edit() to check for reply edit
  • Introduce bbp_check_topic_tag_edit() to check for topic tag edit
  • Introduce bbp_check_user_edit() to check for user edit
  • Remove these checks from bbp_pre_get_posts() and only use it to setup query vars
  • Fixes #1684, r3605
  • For 2.1 (plugin) branch
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-common-template.php

    r3586 r3607  
    484484    $retval = false;
    485485
    486     if ( !empty( $bbp->displayed_user ) && is_user_logged_in() )
     486    if ( bbp_is_single_user() && is_user_logged_in() )
    487487        $retval = (bool) ( bbp_get_displayed_user_id() == bbp_get_current_user_id() );
    488488
Note: See TracChangeset for help on using the changeset viewer.