[PATCH] Don't add JS unless necessary
I noticed a changeTaxonomy function was being added to my page source even though I wasn’t using the dropdown list style. This can be fixed with a slight modification to /taxonomy-widget.php.
At the top of the listeners_print() function add
if ( !sizeof(self::$listeners) ) return;
- The topic ‘[PATCH] Don't add JS unless necessary’ is closed to new replies.