Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #19510, comment 1


Ignore:
Timestamp:
12/12/2011 05:04:05 AM (13 years ago)
Author:
dd32
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19510, comment 1

    initial v1  
    1 You're almost correct, in that wp_print_styles was '''usually only''' called on the front end in 3.2, it could be called from within the admin, Since ~WordPress 2.6 the function has been called in the admin if a CSS stylesheet is enqueued after the other stylesheets have already been printed, in 3.3 though, this happens when WP_Editor() is used anywhere too.
     1You're almost correct, in that wp_print_styles was '''usually only''' called on the front end in 3.2, it could be called from within the admin, Since !WordPress 2.6 the function has been called in the admin if a CSS stylesheet is enqueued after the other stylesheets have already been printed, in 3.3 though, this happens when WP_Editor() is used anywhere too.
    22
    33`'wp_enqueue_scripts'` is a better hook for adding/enqueueing Styles/Javascript on the front end, whilst `'admin_enqueue_scripts'` is available on the back-end.