[wp-trac] [WordPress Trac] #21975: Twenty Twelve: Register navigation.js before enqueue script?

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 23 16:38:19 UTC 2012


#21975: Twenty Twelve: Register navigation.js before enqueue script?
---------------------------+------------------------------
 Reporter:  MattV          |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  3.4.2
 Severity:  normal         |  Resolution:
 Keywords:  2nd-opinion    |
---------------------------+------------------------------

Comment (by nacin):

 As wp_enqueue_script() does registration, calling both one after the other
 is redundant.

 There is both wp_deregister_script() and wp_dequeue_script(), so you can
 easily remove the handle from the queue or all together. Even if it was
 registered with "enqueue", dequeueing it keeps it registered.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21975#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list