Remove PHP_INT_MAX from enqueue_scripts
-
helpful/core/modules/class-frontend.php line 49 uses PHP_INT_MAX as the add_action priority for wp_enqueue_scripts. Doing this makes it impossible to customize how the script loading occurs and prevents users from hooking into the plugin. It would be more developer-friendly to use a sane number here like 100.
A good use case is that on our site, we only want the Helpful scripts to be enqueued on the pages that actually use Helpful, where right now it is enqueued site-wide.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Remove PHP_INT_MAX from enqueue_scripts’ is closed to new replies.