Improve admin page check
-
Hi, the plugin has a function “wpforms_is_admin_page” to check if the current page is a wpforms page, but if just the string “wpforms” is in the “page” parameter value, css and js are injected.
I suggest checking if the “page” parameter starts with “wpforms-” instead.
I have an integration plugin with its page slug containing the “wpforms” string and the admin page result scrambled. ??
Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Improve admin page check’ is closed to new replies.