We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
However this is somehow intended, I somehow see this this as a bug, since the Global Media tab is only showed when editing posts.
When you want to use global media on other places (like custom options pages, or even ACF option pages), the script for the tab is not loading.
That is because of this lines in enqueueScripts():
enqueueScripts()
if ('post' !== get_current_screen()->base) { return; }
What is the reason behind it and can this be removed, or at least being overridden through a filter?
When just removing these lines it seems to work great, so I don't understand this choice? But probably there is one, so I'm curious :-)
PS: same goes for the CSS file, of course :-)
I'd expect that the tab is visible for any "Add Media" button everywhere in the backend.
No response
When just removing the get_current_screen() check it works. So adding a filter for that at least would be very great.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description of the bug
However this is somehow intended, I somehow see this this as a bug, since the Global Media tab is only showed when editing posts.
When you want to use global media on other places (like custom options pages, or even ACF option pages), the script for the tab is not loading.
That is because of this lines in
enqueueScripts()
:What is the reason behind it and can this be removed, or at least being overridden through a filter?
When just removing these lines it seems to work great, so I don't understand this choice? But probably there is one, so I'm curious :-)
PS: same goes for the CSS file, of course :-)
Reproduction instructions
Expected behavior
I'd expect that the tab is visible for any "Add Media" button everywhere in the backend.
Environment info
Relevant log output
No response
Additional context
When just removing the get_current_screen() check it works. So adding a filter for that at least would be very great.
Code of Conduct
The text was updated successfully, but these errors were encountered: