[wp-trac] [WordPress Trac] #17180: Invalid published date insertion in posts
WordPress Trac
wp-trac at lists.automattic.com
Mon Jul 9 16:12:44 UTC 2012
#17180: Invalid published date insertion in posts
---------------------------------+-----------------------
Reporter: hew | Owner: westi
Type: defect (bug) | Status: assigned
Priority: high | Milestone: 3.5
Component: Date/Time | Version:
Severity: major | Resolution:
Keywords: 3.5-early has-patch |
---------------------------------+-----------------------
Changes (by jkudish):
* keywords: 3.5-early needs-patch => 3.5-early has-patch
Comment:
Replying to [comment:14 westi]:
> We should protect against invalid dates from XML-RPC as well by adding a
similar check lower down in the API inside wp_insert_post as this is the
function that finally does the db writes.
> I think that as checkdate is specifically a Gregorian function we should
either have a wrapper function with a filter in it or we should filter the
response from it so that plugins that want to implement different calendar
systems can check the date in there own way.
Both these good points have been addressed in
[http://core.trac.wordpress.org/attachment/ticket/17180/17180-4.diff
17180-4.diff]
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17180#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list