Skip to:
Content

bbPress.org

Changeset 3585


Ignore:
Timestamp:
11/03/2011 04:39:06 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Introduce bbp_is_edit global posts_query var to indicate that bbPress editing is occurring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-core-compatibility.php

    r3579 r3585  
    16651665            }
    16661666
     1667            // Editing a user
     1668            $posts_query->bbp_is_edit = true;
     1669
    16671670        // We are viewing a profile
    16681671        } else {
     
    17181721                case bbp_get_forum_post_type() :
    17191722                    $posts_query->bbp_is_forum_edit = true;
     1723                    $posts_query->bbp_is_edit       = true;
    17201724                    break;
    17211725
     
    17231727                case bbp_get_topic_post_type() :
    17241728                    $posts_query->bbp_is_topic_edit = true;
     1729                    $posts_query->bbp_is_edit       = true;
    17251730                    break;
    17261731
     
    17281733                case bbp_get_reply_post_type() :
    17291734                    $posts_query->bbp_is_reply_edit = true;
     1735                    $posts_query->bbp_is_edit       = true;
    17301736                    break;
    17311737            }
     
    17341740        } elseif ( bbp_is_topic_tag() ) {
    17351741            $posts_query->bbp_is_topic_tag_edit = true;
     1742            $posts_query->bbp_is_edit           = true;
    17361743        }
    17371744
Note: See TracChangeset for help on using the changeset viewer.