[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
Mon Dec 16 23:49:26 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         |   Keywords:
---------------------------+-----------------------------
 By creating a child theme, we should be able to change the number of
 Featured Content posts with our own `add_theme_support` call and a
 different `max_posts` argument. Somehow transients are getting in the way.

 To replicate:
 * create and activate a Twenty Fourteen child theme
 * define your own `twentyfourteen_setup` function
 * change `max_posts` to something other than 6 in the `add_theme_support`
 call
 * notice 6 FC posts are still returned
 * comment out L154 and L190 in the parent theme `inc/featured-content.php`
 to disable transients
 * the correct number of posts are now returned

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


More information about the wp-trac mailing list