[wp-trac] Re: [WordPress Trac] #3944: Entering an invalid post timestamp will be tolerated and results in bad view links

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 10 05:50:39 GMT 2007


#3944: Entering an invalid post timestamp will be tolerated and results in bad
view links
----------------------------------------+-----------------------------------
 Reporter:  erikwasser                  |        Owner:  anonymous
     Type:  defect                      |       Status:  new      
 Priority:  low                         |    Milestone:  2.2      
Component:  Administration              |      Version:  2.1.2    
 Severity:  normal                      |   Resolution:           
 Keywords:  has-patch admin write post  |  
----------------------------------------+-----------------------------------
Comment (by jhodgdon):

 One more note. It would be possible to modify get_permalink (the function
 that actually makes the permalink) so that instead of converting the DB
 information in the post_date field to a real date and then extracting
 parts of it, it would just extract the parts of the actual DB information
 directly.

 That would mean that if somehow an invalid date got into the database
 (which it shouldn't any more, once the above patch is installed), the
 permalink generated by get_permalink would at least be findable by the
 query logic, since it would match the actual database info used by the
 query logic.

 Thoughts? This would not be a hard fix to do, but I am not sure it is
 worth doing to take care of something that should no longer happen. At
 least if the admin-functions route is the only way posts are created or
 updated. ???

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3944#comment:6>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list