Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

admin_url() return main domain url since 0.11 #55

Closed
crmb opened this issue Apr 14, 2019 · 4 comments
Closed

admin_url() return main domain url since 0.11 #55

crmb opened this issue Apr 14, 2019 · 4 comments
Labels

Comments

@crmb
Copy link

crmb commented Apr 14, 2019

update 0.11.0 (or 0.11.1) broke my site and i found the issue
I use this to set ajax url :
wp_localize_script( 'jquery', 'MyAjax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) );

but admin_url() is now returning main site url
(my site setup is complicated, with logged-in users being attached to a specific domain)

@straube
Copy link
Owner

straube commented Apr 15, 2019

Hey @crmb. Thanks for reporting that. Do you know the version you have installed before the update?

@straube straube added the bug label Apr 15, 2019
@crmb
Copy link
Author

crmb commented Apr 15, 2019

It was working with 0.10.3

@straube
Copy link
Owner

straube commented Apr 19, 2019

@crmb I just released a new version that should fix this issue. It's 0.11.2. Please let me know how it goes.

@crmb
Copy link
Author

crmb commented Apr 21, 2019

Yes it's fixed thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants