[wp-trac] [WordPress Trac] #48204: wp_exif_date2ts throws notice on empty date

WordPress Trac noreply at wordpress.org
Thu Oct 3 20:43:32 UTC 2019


#48204: wp_exif_date2ts throws notice on empty date
--------------------------+-----------------------------
 Reporter:  nosilver4u    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Media         |     Version:  5.2.3
 Severity:  minor         |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+-----------------------------

Comment (by joemcgill):

 Best next steps here would be to add a unit test for `wp_exif_date2ts()`
 (if none exists already) that ensures that strings that match our expected
 format return the expected value and also that strings that don't match
 our expected format return a either a `false` value or `null`, then update
 the internals of that function so that both tests pass.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48204#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list