get_bloginfo() should use ‘url’ instead of ‘wpurl’
-
Thanks for the great simple plugin!
In Settings → General, my site uses a WordPress Address (
https://raamdev.com/wordpress
) that’s different from the Site Address (https://raamdev.com
).Since this plugin (v1.1.1) uses
get_bloginfo( 'wpurl' )
, the redirects for attachment pages that don’t have a post parent end up being redirected tohttps://raamdev.com/wordpress
, which is incorrect (and in my case results in a redirect to a completely irrelevant post because WordPress attempts to guess the correct permalink with do_redirect_guess_404_permalink).Using
get_bloginfo( 'url' )
in this plugin (the Site Address) fixes this issue.I’ve manually applied this fix to the plugin on my site, so it’s working now, but it would be great to see this fix applied in a future version.
- The topic ‘get_bloginfo() should use ‘url’ instead of ‘wpurl’’ is closed to new replies.