Changeset 1412437
- Timestamp:
- 05/08/2016 06:08:38 AM (10 years ago)
- File:
-
- 1 edited
-
wp-hrms/trunk/includes/class-wp-hrms.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-hrms/trunk/includes/class-wp-hrms.php
r1411841 r1412437 49 49 */ 50 50 public function enqueue_styles() { 51 global $wp_scripts; 52 51 53 $screen = get_current_screen(); 52 54 if ( ! in_array( $screen->post_type, $this->post_types ) ) { 53 55 return; 54 56 } 57 58 $jquery_version = isset( $wp_scripts->registered['jquery-ui-core']->ver ) ? $wp_scripts->registered['jquery-ui-core']->ver : '1.9.2'; 59 60 wp_enqueue_style( 61 'jquery-ui-style', 62 '//code.jquery.com/ui/' . $jquery_version . '/themes/smoothness/jquery-ui.css', 63 array(), 64 $jquery_version 65 ); 55 66 56 67 wp_enqueue_style( … … 79 90 'wp-hrms-admin', 80 91 WP_HRMS_PLUGIN_URL . '/assets/js/admin.js', 81 array( 'jquery' ),92 array( 'jquery', 'jquery-ui-datepicker' ), 82 93 WP_HRMS_VERSION 83 94 );
Note: See TracChangeset
for help on using the changeset viewer.