WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #36791, comment 3


Ignore:
Timestamp:
05/10/2016 01:18:44 PM (5 years ago)
Author:
logistiker
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36791, comment 3

    initial v1  
    1 add_action is for function calls and in this case the only call is to print scripts and has no bearing on the queue order of scripts or styles.  The point of adding an offset is so you don't have to worry about the order in which the style or script is enqueued and it allows you to override code that is not in your control like core functionality or plugins without modifying them.
     1add_action is for function calls and in this case the only call is to print scripts and has no bearing on the queue order of scripts or styles.  The point of adding an offset is so you don't have to worry about the order in which the style or script is enqueued and it allows you to override code that is not in your control like core functionality or plugins without modifying them.  Although admittedly, if core or plugins started using this functionality, I would still not have a way to override the order.  The point is that I would like certain scripts or styles to load before other ones regardless of what order they were queued in because I don't necessarily have control over that order.