[Plugin: Simple Portfolio]
-
I found a bug using a wordpress network. Images can be uploaded but as soon as a project is uploaded you cannot reedit your project or the image will dissapear. I tracked it down to the fact that the image.html file could not be loaded using wp_remote_fopen. It always said Not Found.
The first problem I found was that WP_PLUGIN_URL (as used in admin-menu.php in the function portfolio_meta_media_html) is not correct in this context. It has to point to the wordpress network plugins url, not to the current sites plugins url (cause it doesn’t exist).
However when I changed it to the correct url the file could still not be loaded using wp_remote_fopen although I could browse to the url specified as the wp_remote_fopen argument.
In the end I solved it by removing wp_remote_fopen and using file_read_contents instead. I also had to use WP_PLUGIN_DIR instead of WP_PLUGIN_URL.
I don’t know if this is a common problem with network sites or if this is something that went wrong on my end. Anyway, this post is to notify the developers so that they may (or may not) change it in a future release. Perhaps there is a better solution than my quick hack? 😀
Cheers!
The topic ‘[Plugin: Simple Portfolio]’ is closed to new replies.