Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin base URL not available #39326

Open
iandunn opened this issue Mar 9, 2022 · 2 comments
Open

Admin base URL not available #39326

iandunn opened this issue Mar 9, 2022 · 2 comments
Labels
[Package] Editor /packages/editor [Type] Enhancement A suggestion for improvement.

Comments

@iandunn
Copy link
Member

iandunn commented Mar 9, 2022

What problem does this address?

There used to be an unexported getWPAdminURL() function. Something like that would be useful for plugins, so that each one doesn't have to add their own copy via wp_add_inline_script(). It's not exported outside of its package, though.

Related: #7095, #7096

What is your proposed solution?

Add it back, but in a way that fixes #7095, so that it'd also work on the front end.

@iandunn iandunn added [Type] Enhancement A suggestion for improvement. [Package] Editor /packages/editor labels Mar 9, 2022
@Mamaduka
Copy link
Member

The method was removed in #39033.

@iandunn iandunn changed the title getWPAdminURL() is not exported Admin base URL not available Mar 14, 2022
@iandunn
Copy link
Member Author

iandunn commented Mar 14, 2022

Ah, thanks, I missed that. I updated the issue to reflect that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Editor /packages/editor [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants