Skip to:
Content

bbPress.org

Changeset 2928


Ignore:
Timestamp:
02/21/2011 12:11:43 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Unset $argspost_parent? to prevent '0' value conflict with topics widget.

File:
1 edited

Legend:

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

    r2915 r2928  
    101101    // Don't pass post_parent if forum_id is empty or 0
    102102    if ( empty( $default['post_parent'] ) ) {
     103
     104        // Remove post_parent from possible assignments
    103105        unset( $default['post_parent'] );
     106        unset( $args['post_parent']    );
     107
     108        // Reassign post_parent to current ID
    104109        if ( !bbp_is_user_profile_page() && !bbp_is_user_profile_edit() && !bbp_is_view() )
    105110            $post_parent = get_the_ID();
     
    24002405    }
    24012406
    2402 
    24032407?>
Note: See TracChangeset for help on using the changeset viewer.