Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Remove PHP_INT_MAX from enqueue_scripts

$
0
0

Replies: 0

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 be enqueued on the pages that actually use Helpful, where right now it is enqueued site-wide.


Viewing all articles
Browse latest Browse all 59525

Trending Articles