[wp-trac] [WordPress Trac] #34093: New filter: `get_calendar_post_type` in get_calendar()
WordPress Trac
noreply at wordpress.org
Wed Sep 30 07:07:38 UTC 2015
#34093: New filter: `get_calendar_post_type` in get_calendar()
-------------------------------------+------------------------------
Reporter: sebastian.pisula | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses:
-------------------------------------+------------------------------
Changes (by swissspidy):
* keywords: => has-patch needs-refresh
Comment:
I can see that this enhancement would be helpful.
Just please use `$wpdb->prepare` to sanitize the post type and check if
`$post_type` is indeed a valid (public) post type.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34093#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list