[wp-trac] [WordPress Trac] #12016: get_calendar can output a calendar when there are no posts

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 25 17:54:31 UTC 2010


#12016: get_calendar can output a calendar when there are no posts
--------------------------+-------------------------------------------------
 Reporter:  mtdewvirus    |       Owner:          
     Type:  defect (bug)  |      Status:  new     
 Priority:  normal        |   Milestone:  3.0     
Component:  General       |     Version:  3.0     
 Severity:  normal        |    Keywords:  calendar
--------------------------+-------------------------------------------------
 If a site doesn't have any posts, get_calendar isn't supposed to display a
 calendar. You can visit a page or have a static home page, and a calendar
 is displayed. The get_calendar function is looking at global $posts to
 determine if the site has posts but this variable can contain data from
 other post_types.

 r12821

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


More information about the wp-trac mailing list