| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | Plugin URI: https://status301.net/wordpress-plugins/coolclock/ |
| 5 | 5 | Description: Add an analog clock to your sidebar. |
| 6 | 6 | Text Domain: coolclock |
| 7 | 7 | Domain Path: languages |
| 8 | -Version: 4.0 | |
| 8 | +Version: 4.1 | |
| 9 | 9 | Author: RavanH |
| 10 | 10 | Author URI: https://status301.net/ |
| 11 | 11 | */ |
| 12 | 12 | |
| @@ -30,9 +30,10 @@ | ||
| 30 | 30 | // widgets |
| 31 | 31 | add_action( 'widgets_init', array( 'CoolClock', 'register_widget' ) ); |
| 32 | 32 | |
| 33 | 33 | // enqueue scripts but only if shortcode or widget has been used |
| 34 | -add_action( 'wp_footer', array( 'CoolClock', 'enqueue_scripts' ), 9 ); | |
| 34 | +// so it has to be done as late as the wp_footer action | |
| 35 | +add_action( 'wp_footer', array( 'CoolClock', 'enqueue_scripts' ), 1 ); | |
| 35 | 36 | |
| 36 | 37 | /************** |
| 37 | 38 | * SHORTCODE |
| 38 | 39 | **************/ |