Skip to:
Content

bbPress.org

Changeset 4377


Ignore:
Timestamp:
11/09/2012 04:22:44 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Theme Compat:

  • Set post_excerpt when setting the dummy post.
  • Fixes issue with unset $post->post_excerpt warnings.
  • For 2.1 branch.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/bbp-includes/bbp-theme-compatibility.php

    r4151 r4377  
    305305        'post_date'       => 0,
    306306        'post_content'    => '',
     307        'post_excerpt'    => '',
    307308        'post_type'       => 'page',
    308309        'post_status'     => bbp_get_public_status_id(),
     
    324325            'post_date'       => get_the_date(),
    325326            'post_content'    => get_the_content(),
     327            'post_excerpt'    => get_the_excerpt(),
    326328            'post_type'       => get_post_type(),
    327329            'post_status'     => get_post_status(),
     
    349351    $wp_query->post->post_date      = $dummy['post_date'];
    350352    $wp_query->post->post_content   = $dummy['post_content'];
     353    $wp_query->post->post_excerpt   = $dummy['post_excerpt'];
    351354    $wp_query->post->post_type      = $dummy['post_type'];
    352355    $wp_query->post->post_status    = $dummy['post_status'];
Note: See TracChangeset for help on using the changeset viewer.