Skip to:
Content

BuddyPress.org

Changeset 6390


Ignore:
Timestamp:
10/08/2012 04:59:46 AM (13 years ago)
Author:
r-a-y
Message:

Fix notice in bp_theme_compat_reset_post().

  • The 'post_category' variable does not exist for WP pages.
  • To address the problem, the 'post_category' references have been removed from the function.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-theme-compatibility.php

    r6289 r6390  
    346346            'post_content'          => $wp_query->post->post_content,
    347347            'post_title'            => $wp_query->post->post_title,
    348             'post_category'         => $wp_query->post->post_category,
    349348            'post_excerpt'          => $wp_query->post->post_excerpt,
    350349            'post_content_filtered' => $wp_query->post->post_content_filtered,
     
    387386    $wp_query->post->post_content          = $dummy['post_content'];
    388387    $wp_query->post->post_title            = $dummy['post_title'];
    389     $wp_query->post->post_category         = $dummy['post_category'];
    390388    $wp_query->post->post_excerpt          = $dummy['post_content_filtered'];
    391389    $wp_query->post->post_content_filtered = $dummy['post_content_filtered'];
Note: See TracChangeset for help on using the changeset viewer.