[wp-trac] [WordPress Trac] #21309: Introduce WP_Post class
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 22 17:03:49 UTC 2012
#21309: Introduce WP_Post class
----------------------------+------------------
Reporter: scribu | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.5
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+------------------
Comment (by scribu):
[attachment:get_the_terms.21309.diff] uses get_the_terms().
However, the unit tests fail because the `$taxonomy . '_relationships'
cache isn't invalidated:
{{{
wp_set_post_categories( $post_id, array( $term1['term_id'],
$term2['term_id'], $term3['term_id'] ) );
$this->assertEquals( 3, count( $post->post_category ) );
}}}
The cached value is still `array()`, instead of either not existing or
containing the appropriate terms.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21309#comment:74>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list