WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #16586


Ignore:
Timestamp:
02/18/11 04:11:23 (4 years ago)
Author:
nacin
Comment:

Correcting the admin_enqueue_scripts hook name in the description.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16586 – Description

    initial v1  
    1 admin_print_scripts and wp_enqueue_scripts actions are ideally where wp_enqueue_script() calls should be attached to -- one for the admin, and one for the theme. 
     1admin_enqueue_scripts and wp_enqueue_scripts actions are ideally where wp_enqueue_script() calls should be attached to -- one for the admin, and one for the theme. 
    22 
    33[16000] attached wp_enqueue_scripts() to login_head, which is a wrapper function to fire the wp_enqueue_scripts action. This means that a theme attaching a script to the frontend via wp_enqueue_scripts -- even if wrapped in an unnecessary is_admin() check -- will get their JS printed on the login form. This has the potential to throw JS errors, which is what happens in P2 for example.