Ultimate FAQ - Version 1.8.8

Version Description

  • Added version number to enqueued files
Download this release

Release Info

Developer Rustaurius
Plugin Icon 128x128 Ultimate FAQ
Version 1.8.8
Comparing to
See all releases

Code changes from version 1.8.7 to 1.8.8

Files changed (3) hide show
  1. Main.php +5 -5
  2. js/ewd-ufaq-dashboard-review-ask.js +3 -3
  3. readme.txt +3 -0
Main.php CHANGED
@@ -7,7 +7,7 @@ Author: Etoile Web Design
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: ultimate-faqs
10
- Version: 1.8.7
11
  */
12
 
13
  global $ewd_ufaq_message;
@@ -115,7 +115,7 @@ add_filter("plugin_action_links_$plugin", 'EWD_UFAQ_plugin_settings_link' );
115
  function Add_EWD_UFAQ_Scripts($hook) {
116
  global $post, $EWD_UFAQ_Version;
117
 
118
- wp_enqueue_script('ewd-ufaq-review-ask', plugins_url("js/ewd-ufaq-dashboard-review-ask.js", __FILE__, array('jquery')));
119
 
120
  if ((isset($_GET['post_type']) && $_GET['post_type'] == 'ufaq') or
121
  (isset($_GET['page']) && $_GET['page'] == 'EWD-UFAQ-Options')) {
@@ -131,7 +131,7 @@ function Add_EWD_UFAQ_Scripts($hook) {
131
 
132
  if ($hook == 'edit.php' or $hook == 'post-new.php' or $hook == 'post.php') {
133
  if (isset($post->post_type) and $post->post_type == 'product') {
134
- wp_enqueue_script('ewd-ufaq-wc-admin', plugins_url("js/ewd-ufaq-wc-admin.js", __FILE__, array('jquery')));
135
  }
136
  }
137
  }
@@ -166,7 +166,7 @@ function Add_EWD_UFAQ_FrontEnd_Scripts() {
166
  add_action( 'wp_enqueue_scripts', 'EWD_UFAQ_Add_Stylesheet' );
167
  function EWD_UFAQ_Add_Stylesheet() {
168
  wp_register_style( 'ewd-ufaq-style', plugins_url('css/ewd-ufaq-styles.css', __FILE__) );
169
- wp_enqueue_style( 'ewd-ufaq-style' );
170
 
171
  wp_register_style( 'ewd-ufaq-rrssb', plugins_url('css/rrssb-min.css', __FILE__) );
172
  wp_enqueue_style( 'ewd-ufaq-rrssb' );
@@ -345,7 +345,7 @@ function UFAQ_Post_Edit_Styles( $hook_suffix ){
345
  if( in_array( $hook_suffix, array('post.php', 'post-new.php') ) ){
346
  $screen = get_current_screen();
347
  if( is_object( $screen ) && $cpt == $screen->post_type ){
348
- wp_enqueue_style( 'ewd-ufaq-post-edit-styles', plugins_url("ultimate-faqs/css/ewd-ufaq-post-edit-styles.css"));
349
  }
350
  }
351
  }
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: ultimate-faqs
10
+ Version: 1.8.8
11
  */
12
 
13
  global $ewd_ufaq_message;
115
  function Add_EWD_UFAQ_Scripts($hook) {
116
  global $post, $EWD_UFAQ_Version;
117
 
118
+ wp_enqueue_script('ewd-ufaq-review-ask', plugins_url("js/ewd-ufaq-dashboard-review-ask.js", __FILE__), array('jquery'), $EWD_UFAQ_Version);
119
 
120
  if ((isset($_GET['post_type']) && $_GET['post_type'] == 'ufaq') or
121
  (isset($_GET['page']) && $_GET['page'] == 'EWD-UFAQ-Options')) {
131
 
132
  if ($hook == 'edit.php' or $hook == 'post-new.php' or $hook == 'post.php') {
133
  if (isset($post->post_type) and $post->post_type == 'product') {
134
+ wp_enqueue_script('ewd-ufaq-wc-admin', plugins_url("js/ewd-ufaq-wc-admin.js", __FILE__), array('jquery'), $EWD_UFAQ_Version);
135
  }
136
  }
137
  }
166
  add_action( 'wp_enqueue_scripts', 'EWD_UFAQ_Add_Stylesheet' );
167
  function EWD_UFAQ_Add_Stylesheet() {
168
  wp_register_style( 'ewd-ufaq-style', plugins_url('css/ewd-ufaq-styles.css', __FILE__) );
169
+ wp_enqueue_style( 'ewd-ufaq-style', $EWD_UFAQ_Version );
170
 
171
  wp_register_style( 'ewd-ufaq-rrssb', plugins_url('css/rrssb-min.css', __FILE__) );
172
  wp_enqueue_style( 'ewd-ufaq-rrssb' );
345
  if( in_array( $hook_suffix, array('post.php', 'post-new.php') ) ){
346
  $screen = get_current_screen();
347
  if( is_object( $screen ) && $cpt == $screen->post_type ){
348
+ wp_enqueue_style( 'ewd-ufaq-post-edit-styles', plugins_url("ultimate-faqs/css/ewd-ufaq-post-edit-styles.css"), $EWD_UFAQ_Version );
349
  }
350
  }
351
  }
js/ewd-ufaq-dashboard-review-ask.js CHANGED
@@ -3,7 +3,7 @@ jQuery(document).ready(function($) {
3
 
4
  jQuery('.ewd-ufaq-main-dashboard-review-ask').on('click', function(event) {
5
  if (jQuery(event.srcElement).hasClass('notice-dismiss')) {
6
- var data = 'Ask_Review_Date=1&action=ewd_ufaq_hide_review_ask';
7
  jQuery.post(ajaxurl, data, function() {});
8
  }
9
  });
@@ -18,7 +18,7 @@ jQuery(document).ready(function($) {
18
  jQuery('.ewd-ufaq-review-ask-not-really').addClass('ufaq-hidden');
19
  jQuery('.ewd-ufaq-review-ask-yes').addClass('ufaq-hidden');
20
 
21
- var data = 'Ask_Review_Date=3&action=ewd_ufaq_hide_review_ask';
22
  jQuery.post(ajaxurl, data, function() {});
23
  });
24
 
@@ -29,7 +29,7 @@ jQuery(document).ready(function($) {
29
  jQuery('.ewd-ufaq-review-ask-feedback-form').removeClass('ufaq-hidden');
30
  jQuery('.ewd-ufaq-review-ask-actions').addClass('ufaq-hidden');
31
 
32
- var data = 'Ask_Review_Date=3&action=ewd_ufaq_hide_review_ask';
33
  jQuery.post(ajaxurl, data, function() {});
34
  });
35
 
3
 
4
  jQuery('.ewd-ufaq-main-dashboard-review-ask').on('click', function(event) {
5
  if (jQuery(event.srcElement).hasClass('notice-dismiss')) {
6
+ var data = 'Ask_Review_Date=3&action=ewd_ufaq_hide_review_ask';
7
  jQuery.post(ajaxurl, data, function() {});
8
  }
9
  });
18
  jQuery('.ewd-ufaq-review-ask-not-really').addClass('ufaq-hidden');
19
  jQuery('.ewd-ufaq-review-ask-yes').addClass('ufaq-hidden');
20
 
21
+ var data = 'Ask_Review_Date=7&action=ewd_ufaq_hide_review_ask';
22
  jQuery.post(ajaxurl, data, function() {});
23
  });
24
 
29
  jQuery('.ewd-ufaq-review-ask-feedback-form').removeClass('ufaq-hidden');
30
  jQuery('.ewd-ufaq-review-ask-actions').addClass('ufaq-hidden');
31
 
32
+ var data = 'Ask_Review_Date=7&action=ewd_ufaq_hide_review_ask';
33
  jQuery.post(ajaxurl, data, function() {});
34
  });
35
 
readme.txt CHANGED
@@ -270,6 +270,9 @@ Video 3 - FAQs Ordering
270
 
271
 
272
  == Changelog ==
 
 
 
273
  = 1.8.7 =
274
  - Update to fix class conflict with PHPSpreadsheet if using more than one of our plugins
275
 
270
 
271
 
272
  == Changelog ==
273
+ = 1.8.8 =
274
+ - Added version number to enqueued files
275
+
276
  = 1.8.7 =
277
  - Update to fix class conflict with PHPSpreadsheet if using more than one of our plugins
278