Skip to:
Content

bbPress.org

Ticket #2545: theme-compat.php.patch

File theme-compat.php.patch, 950 bytes (added by Mat Lipe, 8 years ago)

Patch showing quick fix

  • includes/core/theme-compat.php

     
    383383        $wp_query->is_404     = $dummy['is_404'];
    384384        $wp_query->is_page    = $dummy['is_page'];
    385385        $wp_query->is_single  = $dummy['is_single'];
    386         $wp_query->is_archive = $dummy['is_archive'];
     386    $wp_query->is_singular = $dummy['is_single'];
     387        $wp_query->is_archive  = $dummy['is_archive'];
    387388        $wp_query->is_tax     = $dummy['is_tax'];
    388389
    389390        // Clean up the dummy post
     
    474475                        'post_title'     => bbp_get_displayed_user_field( 'display_name' ),
    475476                        'post_status'    => bbp_get_public_status_id(),
    476477                        'is_archive'     => false,
    477                         'comment_status' => 'closed'
     478                        'comment_status' => 'closed',
     479                        'is_single'      => true
    478480                ) );
    479481
    480482        /** Forums ************************************************************/