Shortcode copied! Message Still Appearing in Some Contexts
-
Hi, we’re running the current version of BEAF on WP 6.7.1. I know the Shortcode copied! issue was reported previously and marked as resolved, but the message still leaks out if there is a JS error or PHP notice anywhere in the back end. I’ve seen it on post.php, the Dashboard, the Updates page and on other plugin settings pages.
It also tends to flash up briefly when post.php is loading.
I wanted to suggest that if you only use this message on certain WP Admin pages, that perhaps you could use the $pagenow and $typenow globals to exit the function without outputting the div containing this message if the current page does not need it. I’ve had content providers reporting this as a bug. Containing the scope would resolve most instances. I do realize that PHP or JS errors in other plugins leading to this div being exposed are not within your ability to control.
Thanks so much.
- You must be logged in to reply to this topic.