[buddypress-trac] [BuddyPress Trac] #6278: Attachment Library
buddypress-trac
noreply at wordpress.org
Sun Mar 15 01:38:37 UTC 2015
#6278: Attachment Library
------------------------------------+------------------
Reporter: imath | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 2.3
Component: API | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+------------------
Comment (by henry.wright):
Also, just wondering why a hash is used as the filename rather than a
simple unique identifier such as user ID or user_login?
{{{
$full_filename = wp_hash( $absolute_path . time() ) . '-bpfull.' . $ext;
$thumb_filename = wp_hash( $absolute_path . time() ) . '-bpthumb.' . $ext;
}}}
592757b8618756393518f6121da2001b-bpthumb.jpg
'''vs'''
henrywright-bpthumb.jpg '''or''' 8276-bpthumb.jpg
Although I'm sure there's a good reason, to me hashing for this purpose
seems unnecessary effort.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6278#comment:26>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list