[wp-trac] [WordPress Trac] #48204: wp_exif_date2ts throws notice on empty date
WordPress Trac
noreply at wordpress.org
Thu Oct 3 20:21:55 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 nosilver4u):
Indeed, and I see why the notice was not displayed before, version 5.2.3
uses the error suppression operator:
{{{
@list( $date, $time ) = explode( ' ', trim( $str ) );
@list( $y, $m, $d ) = explode( ':', $date );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48204#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list