get_calendar can output a calendar when there are no posts
|Reported by:||mtdewvirus||Owned by:|
|Component:||Posts, Post Types||Keywords:||has-patch|
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.
Change History (12)
- Keywords 2nd-opinion added
- Milestone changed from Awaiting Triage to Future Release