[wp-trac] [WordPress Trac] #36931: wp_upload_dir caches calls with default arguments separately from their explicit equivalent
WordPress Trac
noreply at wordpress.org
Thu Sep 15 12:49:45 UTC 2016
#36931: wp_upload_dir caches calls with default arguments separately from their
explicit equivalent
--------------------------------------+------------------------------
Reporter: stephenharris | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.5
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by stephenharris):
@joemcgill Yes, it uses current_time( 'mysql' ) but then just extracts the
year and month part. So you can pass it '2016/09 something else' and it
will extract 2016 and 09 as the year / month to form the subdirectory. So
I don't think there should be an issue with forcing that as a default
value.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36931#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list