Changeset 2933 for branches/plugin/bbp-includes/bbp-topic-template.php
- Timestamp:
- 02/24/2011 10:20:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-topic-template.php
r2928 r2933 104 104 // Remove post_parent from possible assignments 105 105 unset( $default['post_parent'] ); 106 unset( $args['post_parent']);106 if ( isset( $args['post_parent'] ) ) unset( $args['post_parent'] ); 107 107 108 108 // Reassign post_parent to current ID … … 308 308 elseif ( ( bbp_is_topic() || bbp_is_topic_edit() ) && isset( $wp_query->post->ID ) ) 309 309 $bbp_topic_id = $wp_query->post->ID; 310 311 // Currently viewing a singular reply312 elseif ( ( bbp_is_reply() || bbp_is_reply_edit() ) )313 $bbp_topic_id = bbp_get_reply_topic_id();314 310 315 311 // Fallback
Note: See TracChangeset
for help on using the changeset viewer.