[wp-trac] [WordPress Trac] #15311: dynamic image resize (on the fly) using already available functions
WordPress Trac
noreply at wordpress.org
Sat Jan 26 19:37:13 UTC 2013
#15311: dynamic image resize (on the fly) using already available functions
------------------------------------+-----------------------------
Reporter: vteixeira | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Media | Version: 3.1
Severity: normal | Resolution:
Keywords: dev-feedback has-patch |
------------------------------------+-----------------------------
Comment (by esauvisky):
Guys, I have a RewriteRule on .htaccess from '''/''' to '''/wordpress'''
({{{RewriteRule (.*) /wordpress/$1 [L]}}}) for stripping ''/wordpress''
from my urls, and I was getting the error ''No such file or directory''
because '''$filepath''' was '''wordpress/'''wp-content/uploads[...].
I fixed it with an disgusting '''{{{preg_replace('/^.wordpress\//')}}}''',
but I would like to know if there's a better way of doing it. Thanks!
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15311#comment:80>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list