In my WordPress 4.1 instance I found a strange thing. The wp_footer action print_script
with priority 1 is executed after wp_print_footer_scripts
which has priority 20.
add_action( 'wp_footer', array( &$this, 'print_script' ), 1 );
I thought that it’s a problem with my plugin or something. I put the code in the functions.php
and the same problem.