[wp-trac] [WordPress Trac] #26660: Twenty Fourteen: Featured Content transients block child themes from overriding the number of FC posts

WordPress Trac noreply at wordpress.org
Tue Dec 17 22:43:11 UTC 2013


#26660: Twenty Fourteen: Featured Content transients block child themes from
overriding the number of FC posts
---------------------------+------------------------------
 Reporter:  kwight         |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:                 |
---------------------------+------------------------------

Comment (by MikeHansenMe):

 The transient is deleted on post_save and delete_post_tag. Something like
 this would solve the problem in the TwentyFourteen theme.


 {{{
 function twentyfourteen_switch_theme() {
         delete_transient( 'featured_content_ids' );
 }
 add_action( 'switch_theme', 'twentyfourteen_switch_theme' );
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26660#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list