YOP Poll - Version 6.4.0

Version Description

  • fixed issue that was causing translation files not to load properly
Download this release

Release Info

Developer yourownprogrammer
Plugin Icon 128x128 YOP Poll
Version 6.4.0
Comparing to
See all releases

Code changes from version 6.3.9 to 6.4.0

admin/admin.php CHANGED
@@ -354,10 +354,14 @@ class YOP_Poll_Admin {
354
  $maintenance = new YOP_POLL_Maintenance();
355
  $maintenance->update_to_version_6_3_9();
356
  }
 
 
 
 
357
  }
358
  }
359
  public function load_translations() {
360
- load_plugin_textdomain( 'yop-poll', false, 'yop-poll/languages/' );
361
  }
362
  public function is_user_logged_in() {
363
  if ( true === is_user_logged_in() ) {
@@ -507,11 +511,14 @@ class YOP_Poll_Admin {
507
  } else {
508
  $plugin_admin_js_file = 'admin-' . YOP_POLL_VERSION . '.min.js';
509
  }
510
- wp_enqueue_script( 'yop', YOP_POLL_URL . 'admin/assets/js/' . $plugin_admin_js_file, array(
511
- 'jquery',
512
- 'jquery-ui-sortable',
513
- 'jquery-ui-dialog',
514
- 'jquery-ui-datepicker',
 
 
 
515
  )
516
  );
517
  /* add reCaptcha if enabled */
354
  $maintenance = new YOP_POLL_Maintenance();
355
  $maintenance->update_to_version_6_3_9();
356
  }
357
+ if ( true === version_compare( $installed_version, '6.4.0', '<' ) ) {
358
+ $maintenance = new YOP_POLL_Maintenance();
359
+ $maintenance->update_to_version_6_4_0();
360
+ }
361
  }
362
  }
363
  public function load_translations() {
364
+ $result = load_plugin_textdomain( 'yop-poll', false, YOP_POLL_DIR . '/languages' );
365
  }
366
  public function is_user_logged_in() {
367
  if ( true === is_user_logged_in() ) {
511
  } else {
512
  $plugin_admin_js_file = 'admin-' . YOP_POLL_VERSION . '.min.js';
513
  }
514
+ wp_enqueue_script(
515
+ 'yop',
516
+ YOP_POLL_URL . 'admin/assets/js/' . $plugin_admin_js_file,
517
+ array(
518
+ 'jquery',
519
+ 'jquery-ui-sortable',
520
+ 'jquery-ui-dialog',
521
+ 'jquery-ui-datepicker',
522
  )
523
  );
524
  /* add reCaptcha if enabled */
admin/assets/css/{admin-6.3.9.css → admin-6.4.0.css} RENAMED
File without changes
admin/assets/js/{admin-6.3.9.min.js → admin-6.4.0.min.js} RENAMED
File without changes
admin/inc/maintenance.php CHANGED
@@ -164,6 +164,9 @@ class YOP_POLL_Maintenance {
164
  public function update_to_version_6_3_9() {
165
  update_option( 'yop_poll_version', '6.3.9' );
166
  }
 
 
 
167
  public function create_archive_page() {
168
  $poll_archive_page = get_page_by_path( 'yop-poll-archive', ARRAY_A );
169
  if ( ! $poll_archive_page ) {
164
  public function update_to_version_6_3_9() {
165
  update_option( 'yop_poll_version', '6.3.9' );
166
  }
167
+ public function update_to_version_6_4_0() {
168
+ update_option( 'yop_poll_version', '6.4.0' );
169
+ }
170
  public function create_archive_page() {
171
  $poll_archive_page = get_page_by_path( 'yop-poll-archive', ARRAY_A );
172
  if ( ! $poll_archive_page ) {
public/assets/css/{yop-poll-public-6.3.9.css → yop-poll-public-6.4.0.css} RENAMED
File without changes
public/assets/js/{yop-poll-public-6.3.9.min.js → yop-poll-public-6.4.0.min.js} RENAMED
File without changes
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate Link: https://www.yop-poll.com
4
  Tags: booth, create poll, poll plugin, poll, polls, wordpress poll, vote, voting, survey, polling, yop poll, yop
5
  Requires at least: 3.3
6
  Tested up to: 5.9
7
- Stable tag: 6.3.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.htm
10
 
@@ -119,6 +119,9 @@ You can have only one question per poll.
119
 
120
  == Changelog ==
121
 
 
 
 
122
  = 6.3.9 =
123
  * fixed issue that was preventing editing polls on windows servers
124
 
4
  Tags: booth, create poll, poll plugin, poll, polls, wordpress poll, vote, voting, survey, polling, yop poll, yop
5
  Requires at least: 3.3
6
  Tested up to: 5.9
7
+ Stable tag: 6.4.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.htm
10
 
119
 
120
  == Changelog ==
121
 
122
+ = 6.4.0 =
123
+ * fixed issue that was causing translation files not to load properly
124
+
125
  = 6.3.9 =
126
  * fixed issue that was preventing editing polls on windows servers
127
 
yop_poll.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: YOP Poll
4
  Plugin URI: https://yop-poll.com
5
  Description: Use a full option polling functionality to get the answers you need. YOP Poll is the perfect, easy to use poll plugin for your WordPress website.
6
- Version: 6.3.9
7
  Author: yourownprogrammer
8
  Author URI: https://yop-poll.com
9
  License: GPL2
@@ -11,9 +11,10 @@ License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
  Domain Path: /languages
12
  Text Domain: yop-poll
13
  */
14
- define( 'YOP_POLL_VERSION', '6.3.9' );
15
  define( 'YOP_POLL_URL', plugin_dir_url( __FILE__ ) );
16
  define( 'YOP_POLL_PATH', plugin_dir_path( __FILE__ ) );
 
17
  define( 'YOP_POLL_TEST_MODE', false );
18
  require_once( 'admin/inc/dbschema.php' );
19
  require_once( 'admin/models/skins.php' );
3
  Plugin Name: YOP Poll
4
  Plugin URI: https://yop-poll.com
5
  Description: Use a full option polling functionality to get the answers you need. YOP Poll is the perfect, easy to use poll plugin for your WordPress website.
6
+ Version: 6.4.0
7
  Author: yourownprogrammer
8
  Author URI: https://yop-poll.com
9
  License: GPL2
11
  Domain Path: /languages
12
  Text Domain: yop-poll
13
  */
14
+ define( 'YOP_POLL_VERSION', '6.4.0' );
15
  define( 'YOP_POLL_URL', plugin_dir_url( __FILE__ ) );
16
  define( 'YOP_POLL_PATH', plugin_dir_path( __FILE__ ) );
17
+ define( 'YOP_POLL_DIR', dirname( plugin_basename( __FILE__ ) ) );
18
  define( 'YOP_POLL_TEST_MODE', false );
19
  require_once( 'admin/inc/dbschema.php' );
20
  require_once( 'admin/models/skins.php' );