WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #21782


Ignore:
Timestamp:
09/03/2012 09:45:47 PM (6 years ago)
Author:
SergeyBiryukov
Comment:

admin_print_footer_scripts is too late for enqueueing. This is when _wp_footer_scripts() is called, so only the styles included earlier will be printed.

Use admin_footer instead.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21782

    • Property Keywords 2nd-opinion needs-patch removed
  • Ticket #21782 – Description

    initial v1  
    11the code I use:
    2 
     2{{{
    33function tt() {
    44        wp_enqueue_script('jquery-ui-accordion');
    55} add_action('admin_print_footer_scripts', 'tt');
    6 
     6}}}
    77the jquery-ui-accordion is not loaded in the footer.