PluginProbe
Insert Html Snippet / trunk
Insert Html Snippet vtrunk
1.4.6 trunk 1.0 1.0.1 1.1 1.1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.4 1.4.1 1.4.2 1.4.3 All 27 releases
← All changes | admin/menu.php +5 -4 1.4trunk View file →
@@ -75,15 +75,16 @@
75 75
76 76 function xyz_ihs_add_style_script(){
77 77
78 78 wp_enqueue_script('jquery');
79 + $current_version = xyz_ihs_plugin_get_version();
80 + // Register and enqueue script with versioning
81 + wp_register_script( 'xyz_ihs_notice_script', plugins_url('js/notice.js', XYZ_INSERT_HTML_PLUGIN_FILE ),array(),$current_version);
82 + wp_enqueue_script( 'xyz_ihs_notice_script' );
79 83
80 - wp_register_script( 'xyz_notice_script', plugins_url('js/notice.js', XYZ_INSERT_HTML_PLUGIN_FILE ));
81 - wp_enqueue_script( 'xyz_notice_script' );
82 84
83 -
84 85 // Register stylesheets
85 - wp_register_style('xyz_ihs_style',plugins_url('css/xyz_ihs_styles.css', XYZ_INSERT_HTML_PLUGIN_FILE ));
86 + wp_register_style('xyz_ihs_style',plugins_url('css/xyz_ihs_styles.css', XYZ_INSERT_HTML_PLUGIN_FILE ),array(),$current_version);
86 87 wp_enqueue_style('xyz_ihs_style');
87 88 }
88 89 add_action('admin_enqueue_scripts', 'xyz_ihs_add_style_script');
89 90