wp-shopify icon indicating copy to clipboard operation
wp-shopify copied to clipboard

get_abs_admin_path() not working if WordPress is installed in a subdirectory

Open MWDelaney opened this issue 6 years ago • 1 comments

Hi, I'm upgrading a site from WP-Shopify to WP-Shopify Pro and ran across an issue related, I think, to installing WordPress in a subdirectory.

I'm using Roots/Trellis to develop my site, and when activating WP-Shopify-Pro I received an error related to get_abs_admin_path(). Digging into it, it looks like this function expects the wp-admin URL, and the wp-admin directory to be at the same location, which isn't true if WordPress is in a subdirectory.

I was able to work around the issue, but this is notable for anyone else running Trellis or other WordPress in a subdirectory solutions.

Thanks!

MWDelaney avatar Aug 26 '19 21:08 MWDelaney

@MWDelaney Thanks for letting me know! I'll look into it 👍

arobbins avatar Aug 27 '19 19:08 arobbins