line 277 of register-plus.php: hardcoded uploads dir
-
Hello.
I have changed the location of the uploads directory from the default (“uploads” → “files”), which causes a minor error with Register Plus. The uploads directory is hardcoded in one place, which later on is used for displaying the avatar as a logo (well, it tries to, anyway, heh). Line 277 of register-plus.php:
return trailingslashit( get_option('siteurl') ) . 'wp-content/uploads/' . $logo;Could you maybe update this to the dynamically generated config var for the uploads directory?
Thanks in advance for your help.
cheers,
– pgl
PS: this is an example of the error that appears on (eg) wp-login.php with a non-default setting of the uploads directory:
Warning: getimagesize(/home/apache/vhosts/pgl.yoyo.org/htdocs/bits/wp-content/uploads/mozzie-leaning-on-beer-70x70.png) [function.getimagesize]: failed to open stream: No such file or directory in /home/apache/vhosts/pgl.yoyo.org/htdocs/bits/wp-content/plugins/register-plus/register-plus.php on line 1531
The topic ‘line 277 of register-plus.php: hardcoded uploads dir’ is closed to new replies.