-
Since the hooks-filters.php has not been changed from 1.0.87 to 1.0.88 it would be nice to know where the code has been changed to fix this.
Was it the following change?:
file: api.php
code added:
if ( strstr($url, ‘wp-content’)) {
$url = explode(‘wp-content’, $url);
$url = $url[1];
}did it @keyhanjun… but i don’t want to be surprised with every update…
It works on this install, and works on WP MS subfolders/subdomain. ๐ I am surprised it does not work on single install for you. Can you please open a new topic with a link to broken profile photo / profile so I can check why its not working for you.
Also, please do not use FULL URLs in compatibility settings. Use relative paths. ๐ That’s probably the issue!
Hi Ahmed,
seems you have overlooked my question (#35586). Can you please have a look again?
That’s the changed code:
if ( strstr($url, โwp-contentโ)) {
$url = explode(โwp-contentโ, $url);
$url = $url[1];
}Basically it strips everything before wp-content/ so makes it safe and correct to show real avatar. ๐
That’s it keyhanjun. ๐
You’re welcome. That should be it right? I mean it makes sense? Because It works on both types of installations.
Indeed, just tested v1.0.88 on:
1. WP MS installation based on subdomains
2. WP MS installation based on subfolders
3. (normal/single) WP installation& can report it works fine on all of them, great job! ๐
You must be logged in to reply to this topic.