Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/26/2017 07:12:34 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Engagements: First pass at:

  • User profile section
  • Template parts changes
  • Rewrite rules support
  • Repair & upgrade tools
  • BuddyPress support
  • engagement slug setting

See #3068.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/template-functions.php

    r6241 r6320  
    537537        /** User Exists *******************************************************/
    538538
    539         $is_favs    = $posts_query->get( bbp_get_user_favorites_rewrite_id()     );
    540         $is_subs    = $posts_query->get( bbp_get_user_subscriptions_rewrite_id() );
    541         $is_topics  = $posts_query->get( bbp_get_user_topics_rewrite_id()        );
    542         $is_replies = $posts_query->get( bbp_get_user_replies_rewrite_id()       );
     539        $is_favs        = $posts_query->get( bbp_get_user_favorites_rewrite_id()     );
     540        $is_subs        = $posts_query->get( bbp_get_user_subscriptions_rewrite_id() );
     541        $is_topics      = $posts_query->get( bbp_get_user_topics_rewrite_id()        );
     542        $is_replies     = $posts_query->get( bbp_get_user_replies_rewrite_id()       );
     543        $is_engagements = $posts_query->get( bbp_get_user_engagements_rewrite_id()   );
    543544
    544545        // View or edit?
     
    581582        } elseif ( ! empty( $is_replies ) ) {
    582583            $posts_query->bbp_is_single_user_replies = true;
     584
     585        // User engagements
     586        } elseif ( ! empty( $is_engagements ) ) {
     587            $posts_query->bbp_is_single_user_engagements = true;
    583588
    584589        // User profile
Note: See TracChangeset for help on using the changeset viewer.