YOP Poll - Version 6.3.6

Version Description

  • fixed issue with polls not displaying correctly in widgets
  • fixed archive shortcode to only display published polls
  • added more sanitization for arrays and objects
Download this release

Release Info

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

Code changes from version 6.3.5 to 6.3.6

admin/admin.php CHANGED
@@ -338,6 +338,10 @@ class YOP_Poll_Admin {
338
  $maintenance = new YOP_POLL_Maintenance();
339
  $maintenance->update_to_version_6_3_5();
340
  }
 
 
 
 
341
  }
342
  }
343
  public function load_translations() {
@@ -793,7 +797,8 @@ class YOP_Poll_Admin {
793
  'templates' => $templates,
794
  'skins' => $skins,
795
  'integrations' => YOP_Poll_Settings::get_integrations(),
796
- 'date_format' => self::$date_format ) );
 
797
  } else {
798
  esc_html_e( 'You don\'t have sufficient permissions to access this page', 'yop-poll' );
799
  }
@@ -803,7 +808,14 @@ class YOP_Poll_Admin {
803
  public function create_poll() {
804
  if ( current_user_can( 'yop_poll_add' ) && check_ajax_referer( 'yop-poll-add-poll', '_token', false ) ) {
805
  if ( true === isset( $_POST['poll'] ) ) {
806
- $result = YOP_Poll_Polls::add( json_decode( sanitize_text_field( wp_unslash( $_POST['poll'] ) ) ) );
 
 
 
 
 
 
 
807
  if ( true === $result['success'] ) {
808
  wp_send_json_success(
809
  array(
@@ -822,14 +834,15 @@ class YOP_Poll_Admin {
822
  }
823
  public function update_poll() {
824
  $current_user = wp_get_current_user();
825
- $poll = isset( $_POST['poll'] ) ? json_decode( sanitize_text_field( wp_unslash( $_POST['poll'] ) ) ) : array();
826
- $poll_owner = YOP_Poll_Polls::get_owner( $poll->id );
 
827
  if ( check_ajax_referer( 'yop-poll-edit-poll', '_token', false ) ) {
828
  if (
829
  ( ( $poll_owner === $current_user->ID ) && ( current_user_can( 'yop_poll_edit_own' ) ) ) ||
830
  ( ( $poll_owner !== $current_user->ID ) && ( current_user_can( 'yop_poll_edit_others' ) ) )
831
  ) {
832
- $result = YOP_Poll_Polls::update( $poll );
833
  if ( true === $result['success'] ) {
834
  wp_send_json_success(
835
  array(
@@ -878,9 +891,12 @@ class YOP_Poll_Admin {
878
  public function delete_bulk_poll() {
879
  if ( check_ajax_referer( 'yop-poll-bulk-polls', '_token', false ) ) {
880
  $current_user = wp_get_current_user();
881
- $polls = isset( $_POST['polls'] ) ? json_decode( sanitize_text_field( wp_unslash( $_POST['polls'] ) ) ) : array();
 
 
 
882
  $success = 0;
883
- foreach ( $polls as $poll ) {
884
  $poll_owner = YOP_Poll_Polls::get_owner( $poll );
885
  if (
886
  ( ( $poll_owner === $current_user->ID ) && ( current_user_can( 'yop_poll_delete_own' ) ) ) ||
@@ -896,18 +912,18 @@ class YOP_Poll_Admin {
896
  $success--;
897
  }
898
  }
899
- if ( $success === intval( count( $polls ) ) ) {
900
  wp_send_json_success( _n(
901
  'Poll successfully deleted',
902
  'Polls successfully deleted',
903
- count( $polls ),
904
  'yop-poll' )
905
  );
906
  } else {
907
  wp_send_json_error( _n(
908
  'Error deleting poll',
909
  'Error deleting polls',
910
- count( $polls ),
911
  'yop-poll' )
912
  );
913
  }
@@ -937,9 +953,12 @@ class YOP_Poll_Admin {
937
  }
938
  public function clone_bulk_poll() {
939
  if ( check_ajax_referer( 'yop-poll-bulk-polls', '_token', false ) ) {
940
- $polls = isset( $_POST['polls'] ) ? json_decode( sanitize_text_field( wp_unslash( $_POST['polls'] ) ) ) : array();
 
 
 
941
  $success = 0;
942
- foreach ( $polls as $poll ) {
943
  if ( current_user_can( 'yop_poll_add' ) ) {
944
  $result = YOP_Poll_Polls::clone_poll( $poll );
945
  if ( true === $result['success'] ) {
@@ -951,18 +970,18 @@ class YOP_Poll_Admin {
951
  $success--;
952
  }
953
  }
954
- if ( $success === intval( count( $polls ) ) ) {
955
  wp_send_json_success( _n(
956
  'Poll successfully cloned',
957
  'Polls successfully cloned',
958
- count( $polls ),
959
  'yop-poll' )
960
  );
961
  } else {
962
  wp_send_json_error( _n(
963
  'Error cloning poll',
964
  'Error cloning polls',
965
- count( $polls ),
966
  'yop-poll' )
967
  );
968
  }
@@ -972,9 +991,12 @@ class YOP_Poll_Admin {
972
  }
973
  public function reset_bulk_poll() {
974
  if ( check_ajax_referer( 'yop-poll-bulk-polls', '_token', false ) ) {
975
- $polls = isset( $_POST['polls'] ) ? json_decode( sanitize_text_field( wp_unslash( $_POST['polls'] ) ) ) : array();
 
 
 
976
  $success = 0;
977
- foreach ( $polls as $poll ) {
978
  if ( current_user_can( 'yop_poll_add' ) ) {
979
  $result = YOP_Poll_Polls::reset_poll( $poll );
980
  if ( true === $result['success'] ) {
@@ -986,7 +1008,7 @@ class YOP_Poll_Admin {
986
  $success--;
987
  }
988
  }
989
- if ( $success === intval( count( $polls ) ) ) {
990
  wp_send_json_success( esc_html__( 'Votes successfully reset', 'yop-poll' ) );
991
  } else {
992
  wp_send_json_error( esc_html__( 'Error resetting votes', 'yop-poll' ) );
@@ -1298,8 +1320,11 @@ class YOP_Poll_Admin {
1298
  }
1299
  public function create_ban() {
1300
  if ( current_user_can( 'yop_poll_add' ) && check_ajax_referer( 'yop-poll-add-ban', '_token', false ) ) {
1301
- $ban = isset( $_POST['ban'] ) ? json_decode( sanitize_text_field( wp_unslash( $_POST['ban'] ) ) ) : array();
1302
- $result = YOP_Poll_Bans::add( $ban );
 
 
 
1303
  if ( true === $result['success'] ) {
1304
  wp_send_json_success( esc_html__( 'Ban successfully added', 'yop-poll' ) );
1305
  } else {
@@ -1358,15 +1383,18 @@ class YOP_Poll_Admin {
1358
  }
1359
  }
1360
  public function update_ban() {
1361
- $ban = isset( $_POST['ban'] ) ? json_decode( sanitize_text_field( wp_unslash( $_POST['ban'] ) ) ) : array();
1362
- $ban_owner = YOP_Poll_Bans::get_owner( $ban->ban->id );
 
 
 
1363
  $current_user = wp_get_current_user();
1364
  if ( check_ajax_referer( 'yop-poll-edit-ban', '_token', false ) ) {
1365
  if (
1366
  ( ( $ban_owner === $current_user->ID ) && ( current_user_can( 'yop_poll_edit_own' ) ) ) ||
1367
  ( ( $ban_owner !== $current_user->ID ) && ( current_user_can( 'yop_poll_edit_others' ) ) )
1368
  ) {
1369
- $result = YOP_Poll_Bans::update( $ban );
1370
  if ( true === $result['success'] ) {
1371
  wp_send_json_success( esc_html__( 'Ban successfully updated', 'yop-poll' ) );
1372
  } else {
@@ -1381,10 +1409,13 @@ class YOP_Poll_Admin {
1381
  }
1382
  public function delete_bulk_ban() {
1383
  if ( check_ajax_referer( 'yop-poll-bulk-bans', '_token', false ) ) {
1384
- $bans = isset( $_POST['bans'] ) ? json_decode( sanitize_text_field( wp_unslash( $_POST['bans'] ) ) ) : array();
 
 
 
1385
  $success = 0;
1386
  $current_user = wp_get_current_user();
1387
- foreach ( $bans as $ban ) {
1388
  $ban_owner = YOP_Poll_Bans::get_owner( $ban );
1389
  if (
1390
  ( ( $ban_owner === $current_user->ID ) && ( current_user_can( 'yop_poll_delete_own' ) ) ) ||
@@ -1400,18 +1431,18 @@ class YOP_Poll_Admin {
1400
  $success--;
1401
  }
1402
  }
1403
- if ( $success === intval( count( $bans ) ) ) {
1404
  wp_send_json_success( _n(
1405
  'Ban successfully deleted',
1406
  'Bans successfully deleted',
1407
- count( $bans ),
1408
  'yop-poll' )
1409
  );
1410
  } else {
1411
  wp_send_json_error( _n(
1412
  'Error deleting ban',
1413
  'Error deleting bans',
1414
- count( $bans ),
1415
  'yop-poll' )
1416
  );
1417
  }
@@ -1420,10 +1451,13 @@ class YOP_Poll_Admin {
1420
  }
1421
  }
1422
  public function record_vote() {
1423
- $vote_data = isset( $_POST['data'] ) ? json_decode( sanitize_text_field( wp_unslash( $_POST['data'] ) ) ) : array();
1424
- if ( isset( $vote_data->pollId ) && ( 0 < intval( $vote_data->pollId ) ) ) {
1425
- if ( check_ajax_referer( 'yop-poll-vote-' . $vote_data->pollId, '_token', false ) ) {
1426
- $result = YOP_Poll_Votes::add( $vote_data );
 
 
 
1427
  if ( true === $result['success'] ) {
1428
  wp_send_json_success( esc_html__( 'Vote Recorded', 'yop-poll' ) );
1429
  } else {
@@ -1502,11 +1536,14 @@ class YOP_Poll_Admin {
1502
  }
1503
  public function delete_bulk_votes() {
1504
  if ( check_ajax_referer( 'yop-poll-bulk-votes', '_token', false ) ) {
1505
- $votes = isset( $_POST['votes'] ) ? json_decode( sanitize_text_field( wp_unslash( $_POST['votes'] ) ) ) : array();
 
 
 
1506
  $poll_id = isset( $_POST['poll_id'] ) ? sanitize_text_field( wp_unslash( $_POST['poll_id'] ) ) : '';
1507
  $success = 0;
1508
  $current_user = wp_get_current_user();
1509
- foreach ( $votes as $vote ) {
1510
  $vote_owner = YOP_Poll_Votes::get_owner( $vote );
1511
  if (
1512
  ( ( $vote_owner === $current_user->ID ) && ( current_user_can( 'yop_poll_delete_own' ) ) ) ||
@@ -1525,18 +1562,18 @@ class YOP_Poll_Admin {
1525
  $success--;
1526
  }
1527
  }
1528
- if ( $success === intval( count( $votes ) ) ) {
1529
  wp_send_json_success( _n(
1530
  'Vote successfully deleted',
1531
  'Votes successfully deleted',
1532
- count( $votes ),
1533
  'yop-poll' )
1534
  );
1535
  } else {
1536
  wp_send_json_error( _n(
1537
  'Error deleting vote',
1538
  'Error deleting votes',
1539
- count( $votes ),
1540
  'yop-poll' )
1541
  );
1542
  }
@@ -1572,10 +1609,13 @@ class YOP_Poll_Admin {
1572
  }
1573
  public function delete_bulk_log() {
1574
  if ( check_ajax_referer( 'yop-poll-bulk-logs', '_token', false ) ) {
1575
- $logs = isset( $_POST['logs'] ) ? json_decode( sanitize_text_field( wp_unslash( $_POST['logs'] ) ) ) : array();
 
 
 
1576
  $success = 0;
1577
  $current_user = wp_get_current_user();
1578
- foreach ( $logs as $log ) {
1579
  $log_owner = YOP_Poll_Logs::get_owner( $log );
1580
  if (
1581
  ( ( $log_owner === $current_user->ID ) && ( current_user_can( 'yop_poll_delete_own' ) ) ) ||
@@ -1591,18 +1631,18 @@ class YOP_Poll_Admin {
1591
  $success--;
1592
  }
1593
  }
1594
- if ( $success === intval( count( $logs ) ) ) {
1595
  wp_send_json_success( _n(
1596
  'Log successfully deleted',
1597
  'Logs successfully deleted',
1598
- count( $logs ),
1599
  'yop-poll' )
1600
  );
1601
  } else {
1602
  wp_send_json_error( _n(
1603
  'Error deleting log',
1604
  'Error deleting logs',
1605
- count( $logs ),
1606
  'yop-poll' )
1607
  );
1608
  }
@@ -1624,8 +1664,11 @@ class YOP_Poll_Admin {
1624
  public function save_settings() {
1625
  if ( current_user_can( 'yop_poll_add' ) ) {
1626
  if ( check_ajax_referer( 'yop-poll-update-settings', '_token', false ) ) {
1627
- $settings = isset( $_POST['settings'] ) ? json_decode( sanitize_text_field( wp_unslash( $_POST['settings'] ) ) ) : array();
1628
- $result = YOP_Poll_Settings::save_settings( $settings );
 
 
 
1629
  if ( true === $result['success'] ) {
1630
  wp_send_json_success( esc_html__( 'Settings updated', 'yop-poll' ) );
1631
  } else {
@@ -1641,9 +1684,12 @@ class YOP_Poll_Admin {
1641
  public function add_votes_manually() {
1642
  if ( isset( $_POST['id'] ) && ( 0 < intval( $_POST['id'] ) ) ) {
1643
  if ( check_ajax_referer( 'yop-poll-add-votes-manually', '_token', false ) ) {
1644
- $poll_id = intval( $_POST['id'] );
1645
- $votes_data = isset( $_POST['data'] ) ? json_decode( sanitize_text_field( wp_unslash( $_POST['data'] ) ) ) : array();
1646
- $result = YOP_Poll_Polls::add_votes_manually( $poll_id, $votes_data );
 
 
 
1647
  if ( true === $result['success'] ) {
1648
  wp_send_json_success( esc_html__( 'Votes Succesfully Added', 'yop-poll' ) );
1649
  } else {
338
  $maintenance = new YOP_POLL_Maintenance();
339
  $maintenance->update_to_version_6_3_5();
340
  }
341
+ if ( true === version_compare( $installed_version, '6.3.6', '<' ) ) {
342
+ $maintenance = new YOP_POLL_Maintenance();
343
+ $maintenance->update_to_version_6_3_6();
344
+ }
345
  }
346
  }
347
  public function load_translations() {
797
  'templates' => $templates,
798
  'skins' => $skins,
799
  'integrations' => YOP_Poll_Settings::get_integrations(),
800
+ 'date_format' => self::$date_format )
801
+ );
802
  } else {
803
  esc_html_e( 'You don\'t have sufficient permissions to access this page', 'yop-poll' );
804
  }
808
  public function create_poll() {
809
  if ( current_user_can( 'yop_poll_add' ) && check_ajax_referer( 'yop-poll-add-poll', '_token', false ) ) {
810
  if ( true === isset( $_POST['poll'] ) ) {
811
+ $poll_sanitized = YOP_Poll_Helper::sanitize_text_or_array_or_object(
812
+ json_decode(
813
+ wp_unslash(
814
+ $_POST['poll']
815
+ )
816
+ )
817
+ );
818
+ $result = YOP_Poll_Polls::add( $poll_sanitized );
819
  if ( true === $result['success'] ) {
820
  wp_send_json_success(
821
  array(
834
  }
835
  public function update_poll() {
836
  $current_user = wp_get_current_user();
837
+ $poll_received = isset( $_POST['poll'] ) ? json_decode( wp_unslash( $_POST['poll'] ) ) : array();
838
+ $poll_sanitized = YOP_Poll_Helper::sanitize_text_or_array_or_object( $poll_received );
839
+ $poll_owner = YOP_Poll_Polls::get_owner( $poll_sanitized->id );
840
  if ( check_ajax_referer( 'yop-poll-edit-poll', '_token', false ) ) {
841
  if (
842
  ( ( $poll_owner === $current_user->ID ) && ( current_user_can( 'yop_poll_edit_own' ) ) ) ||
843
  ( ( $poll_owner !== $current_user->ID ) && ( current_user_can( 'yop_poll_edit_others' ) ) )
844
  ) {
845
+ $result = YOP_Poll_Polls::update( $poll_sanitized );
846
  if ( true === $result['success'] ) {
847
  wp_send_json_success(
848
  array(
891
  public function delete_bulk_poll() {
892
  if ( check_ajax_referer( 'yop-poll-bulk-polls', '_token', false ) ) {
893
  $current_user = wp_get_current_user();
894
+ $polls_received = isset( $_POST['polls'] ) ? json_decode( wp_unslash( $_POST['polls'] ) ) : array();
895
+ $polls_sanitized = YOP_Poll_Helper::sanitize_text_or_array_or_object(
896
+ $polls_received
897
+ );
898
  $success = 0;
899
+ foreach ( $polls_sanitized as $poll ) {
900
  $poll_owner = YOP_Poll_Polls::get_owner( $poll );
901
  if (
902
  ( ( $poll_owner === $current_user->ID ) && ( current_user_can( 'yop_poll_delete_own' ) ) ) ||
912
  $success--;
913
  }
914
  }
915
+ if ( $success === intval( count( $polls_sanitized ) ) ) {
916
  wp_send_json_success( _n(
917
  'Poll successfully deleted',
918
  'Polls successfully deleted',
919
+ count( $polls_sanitized ),
920
  'yop-poll' )
921
  );
922
  } else {
923
  wp_send_json_error( _n(
924
  'Error deleting poll',
925
  'Error deleting polls',
926
+ count( $polls_sanitized ),
927
  'yop-poll' )
928
  );
929
  }
953
  }
954
  public function clone_bulk_poll() {
955
  if ( check_ajax_referer( 'yop-poll-bulk-polls', '_token', false ) ) {
956
+ $polls_received = isset( $_POST['polls'] ) ? json_decode( wp_unslash( $_POST['polls'] ) ) : array();
957
+ $polls_sanitized = YOP_Poll_Helper::sanitize_text_or_array_or_object(
958
+ $polls_received
959
+ );
960
  $success = 0;
961
+ foreach ( $polls_sanitized as $poll ) {
962
  if ( current_user_can( 'yop_poll_add' ) ) {
963
  $result = YOP_Poll_Polls::clone_poll( $poll );
964
  if ( true === $result['success'] ) {
970
  $success--;
971
  }
972
  }
973
+ if ( $success === intval( count( $polls_sanitized ) ) ) {
974
  wp_send_json_success( _n(
975
  'Poll successfully cloned',
976
  'Polls successfully cloned',
977
+ count( $polls_sanitized ),
978
  'yop-poll' )
979
  );
980
  } else {
981
  wp_send_json_error( _n(
982
  'Error cloning poll',
983
  'Error cloning polls',
984
+ count( $polls_sanitized ),
985
  'yop-poll' )
986
  );
987
  }
991
  }
992
  public function reset_bulk_poll() {
993
  if ( check_ajax_referer( 'yop-poll-bulk-polls', '_token', false ) ) {
994
+ $polls_received = isset( $_POST['polls'] ) ? json_decode( wp_unslash( $_POST['polls'] ) ) : array();
995
+ $polls_sanitized = YOP_Poll_Helper::sanitize_text_or_array_or_object(
996
+ $polls_received
997
+ );
998
  $success = 0;
999
+ foreach ( $polls_sanitized as $poll ) {
1000
  if ( current_user_can( 'yop_poll_add' ) ) {
1001
  $result = YOP_Poll_Polls::reset_poll( $poll );
1002
  if ( true === $result['success'] ) {
1008
  $success--;
1009
  }
1010
  }
1011
+ if ( $success === intval( count( $polls_sanitized ) ) ) {
1012
  wp_send_json_success( esc_html__( 'Votes successfully reset', 'yop-poll' ) );
1013
  } else {
1014
  wp_send_json_error( esc_html__( 'Error resetting votes', 'yop-poll' ) );
1320
  }
1321
  public function create_ban() {
1322
  if ( current_user_can( 'yop_poll_add' ) && check_ajax_referer( 'yop-poll-add-ban', '_token', false ) ) {
1323
+ $ban_received = isset( $_POST['ban'] ) ? json_decode( wp_unslash( $_POST['ban'] ) ) : array();
1324
+ $ban_sanitized = YOP_Poll_Helper::sanitize_text_or_array_or_object(
1325
+ $ban_received
1326
+ );
1327
+ $result = YOP_Poll_Bans::add( $ban_sanitized );
1328
  if ( true === $result['success'] ) {
1329
  wp_send_json_success( esc_html__( 'Ban successfully added', 'yop-poll' ) );
1330
  } else {
1383
  }
1384
  }
1385
  public function update_ban() {
1386
+ $ban_received = isset( $_POST['ban'] ) ? json_decode( wp_unslash( $_POST['ban'] ) ) : array();
1387
+ $ban_sanitized = YOP_Poll_Helper::sanitize_text_or_array_or_object(
1388
+ $ban_received
1389
+ );
1390
+ $ban_owner = YOP_Poll_Bans::get_owner( $ban_sanitized->ban->id );
1391
  $current_user = wp_get_current_user();
1392
  if ( check_ajax_referer( 'yop-poll-edit-ban', '_token', false ) ) {
1393
  if (
1394
  ( ( $ban_owner === $current_user->ID ) && ( current_user_can( 'yop_poll_edit_own' ) ) ) ||
1395
  ( ( $ban_owner !== $current_user->ID ) && ( current_user_can( 'yop_poll_edit_others' ) ) )
1396
  ) {
1397
+ $result = YOP_Poll_Bans::update( $ban_sanitized );
1398
  if ( true === $result['success'] ) {
1399
  wp_send_json_success( esc_html__( 'Ban successfully updated', 'yop-poll' ) );
1400
  } else {
1409
  }
1410
  public function delete_bulk_ban() {
1411
  if ( check_ajax_referer( 'yop-poll-bulk-bans', '_token', false ) ) {
1412
+ $bans_received = isset( $_POST['bans'] ) ? json_decode( wp_unslash( $_POST['bans'] ) ) : array();
1413
+ $bans_sanitized = YOP_Poll_Helper::sanitize_text_or_array_or_object(
1414
+ $bans_received
1415
+ );
1416
  $success = 0;
1417
  $current_user = wp_get_current_user();
1418
+ foreach ( $bans_sanitized as $ban ) {
1419
  $ban_owner = YOP_Poll_Bans::get_owner( $ban );
1420
  if (
1421
  ( ( $ban_owner === $current_user->ID ) && ( current_user_can( 'yop_poll_delete_own' ) ) ) ||
1431
  $success--;
1432
  }
1433
  }
1434
+ if ( $success === intval( count( $bans_sanitized ) ) ) {
1435
  wp_send_json_success( _n(
1436
  'Ban successfully deleted',
1437
  'Bans successfully deleted',
1438
+ count( $bans_sanitized ),
1439
  'yop-poll' )
1440
  );
1441
  } else {
1442
  wp_send_json_error( _n(
1443
  'Error deleting ban',
1444
  'Error deleting bans',
1445
+ count( $bans_sanitized ),
1446
  'yop-poll' )
1447
  );
1448
  }
1451
  }
1452
  }
1453
  public function record_vote() {
1454
+ $vote_data_received = isset( $_POST['data'] ) ? json_decode( wp_unslash( $_POST['data'] ) ) : array();
1455
+ $vote_data_sanitized = YOP_Poll_Helper::sanitize_text_or_array_or_object(
1456
+ $vote_data_received
1457
+ );
1458
+ if ( isset( $vote_data_sanitized->pollId ) && ( 0 < intval( $vote_data_sanitized->pollId ) ) ) {
1459
+ if ( check_ajax_referer( 'yop-poll-vote-' . $vote_data_sanitized->pollId, '_token', false ) ) {
1460
+ $result = YOP_Poll_Votes::add( $vote_data_sanitized );
1461
  if ( true === $result['success'] ) {
1462
  wp_send_json_success( esc_html__( 'Vote Recorded', 'yop-poll' ) );
1463
  } else {
1536
  }
1537
  public function delete_bulk_votes() {
1538
  if ( check_ajax_referer( 'yop-poll-bulk-votes', '_token', false ) ) {
1539
+ $votes_received = isset( $_POST['votes'] ) ? json_decode( wp_unslash( $_POST['votes'] ) ) : array();
1540
+ $votes_sanitized = YOP_Poll_Helper::sanitize_text_or_array_or_object(
1541
+ $votes_received
1542
+ );
1543
  $poll_id = isset( $_POST['poll_id'] ) ? sanitize_text_field( wp_unslash( $_POST['poll_id'] ) ) : '';
1544
  $success = 0;
1545
  $current_user = wp_get_current_user();
1546
+ foreach ( $votes_sanitized as $vote ) {
1547
  $vote_owner = YOP_Poll_Votes::get_owner( $vote );
1548
  if (
1549
  ( ( $vote_owner === $current_user->ID ) && ( current_user_can( 'yop_poll_delete_own' ) ) ) ||
1562
  $success--;
1563
  }
1564
  }
1565
+ if ( $success === intval( count( $votes_sanitized ) ) ) {
1566
  wp_send_json_success( _n(
1567
  'Vote successfully deleted',
1568
  'Votes successfully deleted',
1569
+ count( $votes_sanitized ),
1570
  'yop-poll' )
1571
  );
1572
  } else {
1573
  wp_send_json_error( _n(
1574
  'Error deleting vote',
1575
  'Error deleting votes',
1576
+ count( $votes_sanitized ),
1577
  'yop-poll' )
1578
  );
1579
  }
1609
  }
1610
  public function delete_bulk_log() {
1611
  if ( check_ajax_referer( 'yop-poll-bulk-logs', '_token', false ) ) {
1612
+ $logs_received = isset( $_POST['logs'] ) ? json_decode( wp_unslash( $_POST['logs'] ) ) : array();
1613
+ $logs_sanitized = YOP_Poll_Helper::sanitize_text_or_array_or_object(
1614
+ $logs_received
1615
+ );
1616
  $success = 0;
1617
  $current_user = wp_get_current_user();
1618
+ foreach ( $logs_sanitized as $log ) {
1619
  $log_owner = YOP_Poll_Logs::get_owner( $log );
1620
  if (
1621
  ( ( $log_owner === $current_user->ID ) && ( current_user_can( 'yop_poll_delete_own' ) ) ) ||
1631
  $success--;
1632
  }
1633
  }
1634
+ if ( $success === intval( count( $logs_sanitized ) ) ) {
1635
  wp_send_json_success( _n(
1636
  'Log successfully deleted',
1637
  'Logs successfully deleted',
1638
+ count( $logs_sanitized ),
1639
  'yop-poll' )
1640
  );
1641
  } else {
1642
  wp_send_json_error( _n(
1643
  'Error deleting log',
1644
  'Error deleting logs',
1645
+ count( $logs_sanitized ),
1646
  'yop-poll' )
1647
  );
1648
  }
1664
  public function save_settings() {
1665
  if ( current_user_can( 'yop_poll_add' ) ) {
1666
  if ( check_ajax_referer( 'yop-poll-update-settings', '_token', false ) ) {
1667
+ $settings_received = isset( $_POST['settings'] ) ? json_decode( wp_unslash( $_POST['settings'] ) ) : array();
1668
+ $settings_sanitized = YOP_Poll_Helper::sanitize_text_or_array_or_object(
1669
+ $settings_received
1670
+ );
1671
+ $result = YOP_Poll_Settings::save_settings( $settings_sanitized );
1672
  if ( true === $result['success'] ) {
1673
  wp_send_json_success( esc_html__( 'Settings updated', 'yop-poll' ) );
1674
  } else {
1684
  public function add_votes_manually() {
1685
  if ( isset( $_POST['id'] ) && ( 0 < intval( $_POST['id'] ) ) ) {
1686
  if ( check_ajax_referer( 'yop-poll-add-votes-manually', '_token', false ) ) {
1687
+ $poll_id = intval( sanitize_text_field( wp_unslash( $_POST['id'] ) ) );
1688
+ $votes_data_received = isset( $_POST['data'] ) ? json_decode( wp_unslash( $_POST['data'] ) ) : array();
1689
+ $votes_data_sanitized = YOP_Poll_Helper::sanitize_text_or_array_or_object(
1690
+ $votes_data_received
1691
+ );
1692
+ $result = YOP_Poll_Polls::add_votes_manually( $poll_id, $votes_data_sanitized );
1693
  if ( true === $result['success'] ) {
1694
  wp_send_json_success( esc_html__( 'Votes Succesfully Added', 'yop-poll' ) );
1695
  } else {
admin/assets/css/{admin-6.3.5.css → admin-6.3.6.css} RENAMED
File without changes
admin/assets/js/{admin-6.3.5.min.js → admin-6.3.6.min.js} RENAMED
File without changes
admin/inc/ClassYOPPollWidget.php CHANGED
@@ -90,7 +90,7 @@ class YOP_Poll_Widget extends WP_Widget {
90
  echo wp_kses_post( $args['before_title'] );
91
  print( wp_kses_post( $title ) );
92
  echo wp_kses_post( $args['after_title'] );
93
- print( wp_kses_post( $poll_output ) );
94
  echo wp_kses_post( $args['after_widget'] );
95
  }
96
  }
90
  echo wp_kses_post( $args['before_title'] );
91
  print( wp_kses_post( $title ) );
92
  echo wp_kses_post( $args['after_title'] );
93
+ print( $poll_output );
94
  echo wp_kses_post( $args['after_widget'] );
95
  }
96
  }
admin/inc/Helper.php CHANGED
@@ -73,4 +73,29 @@ class YOP_Poll_Helper {
73
  );
74
  return str_ireplace( $initial_tags, $new_tags, esc_html( $text ) );
75
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  }
73
  );
74
  return str_ireplace( $initial_tags, $new_tags, esc_html( $text ) );
75
  }
76
+ public static function sanitize_text_or_array_or_object( $string_or_array_or_object ) {
77
+ if ( true === is_string( $string_or_array_or_object ) ) {
78
+ $string_or_array_or_object = sanitize_text_field(
79
+ wp_unslash( $string_or_array_or_object )
80
+ );
81
+ } elseif (
82
+ ( true === is_array( $string_or_array_or_object ) ) ||
83
+ ( true === is_object( $string_or_array_or_object ) )
84
+ ) {
85
+ foreach ( $string_or_array_or_object as $key => &$value ) {
86
+ if (
87
+ ( true === is_array( $value ) ) ||
88
+ ( true === is_object( $value ) )
89
+ ) {
90
+ $value = self::sanitize_text_or_array_or_object( $value );
91
+ }
92
+ else {
93
+ $value = sanitize_text_field(
94
+ wp_unslash( $value )
95
+ );
96
+ }
97
+ }
98
+ }
99
+ return $string_or_array_or_object;
100
+ }
101
  }
admin/inc/maintenance.php CHANGED
@@ -152,6 +152,9 @@ class YOP_POLL_Maintenance {
152
  public function update_to_version_6_3_5() {
153
  update_option( 'yop_poll_version', '6.3.5' );
154
  }
 
 
 
155
  public function create_archive_page() {
156
  $poll_archive_page = get_page_by_path( 'yop-poll-archive', ARRAY_A );
157
  if ( ! $poll_archive_page ) {
152
  public function update_to_version_6_3_5() {
153
  update_option( 'yop_poll_version', '6.3.5' );
154
  }
155
+ public function update_to_version_6_3_6() {
156
+ update_option( 'yop_poll_version', '6.3.6' );
157
+ }
158
  public function create_archive_page() {
159
  $poll_archive_page = get_page_by_path( 'yop-poll-archive', ARRAY_A );
160
  if ( ! $poll_archive_page ) {
admin/models/polls.php CHANGED
@@ -2429,13 +2429,13 @@ class YOP_Poll_Polls {
2429
  public static function get_all_polls_for_archive( $params, $order_by ) {
2430
  if ( 0 !== $params['max'] ) {
2431
  $limit = 'LIMIT %d';
2432
- $query = "SELECT `id` FROM `{$GLOBALS['wpdb']->yop_poll_polls}` WHERE `status` != 'deleted' {$order_by} LIMIT %d";
2433
  $query_ready = $GLOBALS['wpdb']->prepare(
2434
  $query,
2435
  $params['max']
2436
  );
2437
  } else {
2438
- $query_ready = "SELECT `id` FROM `{$GLOBALS['wpdb']->yop_poll_polls}` WHERE `status` != 'deleted' {$order_by}";
2439
  }
2440
  $polls = $GLOBALS['wpdb']->get_results( $query_ready, ARRAY_A );
2441
  return $polls;
@@ -2443,7 +2443,7 @@ class YOP_Poll_Polls {
2443
  public static function get_active_polls_for_archive( $params, $order_by ) {
2444
  $polls_for_display = array();
2445
  $nr_added = 0;
2446
- $query_ready = "SELECT `id`, `meta_data` FROM `{$GLOBALS['wpdb']->yop_poll_polls}` WHERE `status` != 'deleted' {$order_by}";
2447
  $polls = $GLOBALS['wpdb']->get_results( $query_ready, OBJECT );
2448
  foreach ( $polls as $poll ) {
2449
  $poll->meta_data = unserialize( $poll->meta_data );
@@ -2466,7 +2466,7 @@ class YOP_Poll_Polls {
2466
  public static function get_ended_polls_for_archive( $params, $order_by ) {
2467
  $polls_for_display = array();
2468
  $nr_added = 0;
2469
- $query_ready = "SELECT `id`, `meta_data` FROM `{$GLOBALS['wpdb']->yop_poll_polls}` WHERE `status` != 'deleted' {$order_by}";
2470
  $polls = $GLOBALS['wpdb']->get_results( $query_ready, ARRAY_A );
2471
  foreach ( $polls as $poll ) {
2472
  if ( true === YOP_Poll_Polls::is_ended( $poll, false ) ) {
2429
  public static function get_all_polls_for_archive( $params, $order_by ) {
2430
  if ( 0 !== $params['max'] ) {
2431
  $limit = 'LIMIT %d';
2432
+ $query = "SELECT `id` FROM `{$GLOBALS['wpdb']->yop_poll_polls}` WHERE `status` = 'published' {$order_by} LIMIT %d";
2433
  $query_ready = $GLOBALS['wpdb']->prepare(
2434
  $query,
2435
  $params['max']
2436
  );
2437
  } else {
2438
+ $query_ready = "SELECT `id` FROM `{$GLOBALS['wpdb']->yop_poll_polls}` WHERE `status` = 'published' {$order_by}";
2439
  }
2440
  $polls = $GLOBALS['wpdb']->get_results( $query_ready, ARRAY_A );
2441
  return $polls;
2443
  public static function get_active_polls_for_archive( $params, $order_by ) {
2444
  $polls_for_display = array();
2445
  $nr_added = 0;
2446
+ $query_ready = "SELECT `id`, `meta_data` FROM `{$GLOBALS['wpdb']->yop_poll_polls}` WHERE `status` = 'published' {$order_by}";
2447
  $polls = $GLOBALS['wpdb']->get_results( $query_ready, OBJECT );
2448
  foreach ( $polls as $poll ) {
2449
  $poll->meta_data = unserialize( $poll->meta_data );
2466
  public static function get_ended_polls_for_archive( $params, $order_by ) {
2467
  $polls_for_display = array();
2468
  $nr_added = 0;
2469
+ $query_ready = "SELECT `id`, `meta_data` FROM `{$GLOBALS['wpdb']->yop_poll_polls}` WHERE `status` = 'published' {$order_by}";
2470
  $polls = $GLOBALS['wpdb']->get_results( $query_ready, ARRAY_A );
2471
  foreach ( $polls as $poll ) {
2472
  if ( true === YOP_Poll_Polls::is_ended( $poll, false ) ) {
languages/yop-poll.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: YOP Poll 6.3.5\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yop-poll-free\n"
7
- "POT-Creation-Date: 2022-02-07 15:10:35+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -75,200 +75,200 @@ msgstr ""
75
  msgid "Skip and Deactivate"
76
  msgstr ""
77
 
78
- #: admin/admin.php:357 admin/admin.php:358
79
  msgid "Yop Poll"
80
  msgstr ""
81
 
82
- #: admin/admin.php:371 admin/admin.php:372 admin/admin.php:672
83
  #: admin/views/bans/add.php:23 admin/views/bans/edit.php:27
84
  #: admin/views/bans/edit.php:35 admin/views/polls/view.php:155
85
  #: admin/views/results/view.php:17 admin/views/results/votes.php:95
86
  msgid "All Polls"
87
  msgstr ""
88
 
89
- #: admin/admin.php:386 admin/admin.php:387 admin/views/bans/view.php:152
90
  #: admin/views/polls/view.php:166
91
  msgid "Add New"
92
  msgstr ""
93
 
94
- #: admin/admin.php:397 admin/admin.php:398 admin/views/bans/view.php:140
95
  msgid "Bans"
96
  msgstr ""
97
 
98
- #: admin/admin.php:408 admin/admin.php:409 admin/views/logs/view.php:108
99
  msgid "Logs"
100
  msgstr ""
101
 
102
- #: admin/admin.php:423 admin/admin.php:424
103
  msgid "Settings"
104
  msgstr ""
105
 
106
- #: admin/admin.php:435 admin/admin.php:436
107
  msgid "Migrate old records"
108
  msgstr ""
109
 
110
- #: admin/admin.php:447 admin/admin.php:448
111
  msgid "Upgrade to Pro"
112
  msgstr ""
113
 
114
- #: admin/admin.php:538
115
  msgid "New Custom Field"
116
  msgstr ""
117
 
118
- #: admin/admin.php:539
119
  msgid "Warning"
120
  msgstr ""
121
 
122
- #: admin/admin.php:540 admin/admin.php:541
123
  msgid "Are you sure you want to delete this poll?"
124
  msgstr ""
125
 
126
- #: admin/admin.php:542
127
  msgid "Are you sure you want to delete these polls?"
128
  msgstr ""
129
 
130
- #: admin/admin.php:543 admin/admin.php:544
131
  msgid "Are you sure you want to clone this poll?"
132
  msgstr ""
133
 
134
- #: admin/admin.php:545
135
  msgid "Are you sure you want to clone these polls?"
136
  msgstr ""
137
 
138
- #: admin/admin.php:546 admin/admin.php:547
139
  msgid "Are you sure you want to reset votes for this poll?"
140
  msgstr ""
141
 
142
- #: admin/admin.php:548
143
  msgid "Are you sure you want to reset votes for these polls?"
144
  msgstr ""
145
 
146
- #: admin/admin.php:549
147
  msgid "No bulk action selected"
148
  msgstr ""
149
 
150
- #: admin/admin.php:550
151
  msgid "No polls selected"
152
  msgstr ""
153
 
154
- #: admin/admin.php:551
155
  msgid "No bans selected"
156
  msgstr ""
157
 
158
- #: admin/admin.php:552
159
  msgid "No logs selected"
160
  msgstr ""
161
 
162
- #: admin/admin.php:553
163
  msgid "No votes selected"
164
  msgstr ""
165
 
166
- #: admin/admin.php:554 admin/admin.php:627
167
  msgid "Are you sure you want to delete this ban?"
168
  msgstr ""
169
 
170
- #: admin/admin.php:555
171
  msgid "Are you sure you want to delete these bans?"
172
  msgstr ""
173
 
174
- #: admin/admin.php:556 admin/admin.php:628
175
  msgid "Are you sure you want to delete this log?"
176
  msgstr ""
177
 
178
- #: admin/admin.php:557
179
  msgid "Are you sure you want to delete these logs?"
180
  msgstr ""
181
 
182
- #: admin/admin.php:558
183
  msgid "Are you sure you want to delete this vote?"
184
  msgstr ""
185
 
186
- #: admin/admin.php:559
187
  msgid "Are you sure you want to delete these votes?"
188
  msgstr ""
189
 
190
- #: admin/admin.php:560
191
  msgid "Are you sure you want to delete this answer?"
192
  msgstr ""
193
 
194
- #: admin/admin.php:561
195
  msgid "Answer can't be deleted. At least one answer is required!"
196
  msgstr ""
197
 
198
- #: admin/admin.php:562
199
  msgid "Are you sure you want to delete this custom field?"
200
  msgstr ""
201
 
202
- #: admin/admin.php:563 admin/views/polls/add/main.php:188
203
  #: admin/views/polls/edit/main.php:213 admin/views/results/votes.php:196
204
  msgid "Cancel"
205
  msgstr ""
206
 
207
- #: admin/admin.php:564
208
  msgid "Ok"
209
  msgstr ""
210
 
211
- #: admin/admin.php:565
212
  msgid "Before generating the preview a template is required"
213
  msgstr ""
214
 
215
- #: admin/admin.php:566
216
  msgid "Before generating the preview a skin is required"
217
  msgstr ""
218
 
219
- #: admin/admin.php:567
220
  msgid "Number of columns is missing"
221
  msgstr ""
222
 
223
- #: admin/admin.php:568
224
  msgid "Too many columns. Max 12 allowed"
225
  msgstr ""
226
 
227
- #: admin/admin.php:569
228
  msgid "Click to select"
229
  msgstr ""
230
 
231
- #: admin/admin.php:570 admin/views/polls/add/main.php:194
232
  msgid "Publish immediately"
233
  msgstr ""
234
 
235
- #: admin/admin.php:571
236
  msgid "Schedule for"
237
  msgstr ""
238
 
239
- #: admin/admin.php:572
240
  msgid "Code Copied To Clipboard"
241
  msgstr ""
242
 
243
- #: admin/admin.php:574
244
  msgid "Press"
245
  msgstr ""
246
 
247
- #: admin/admin.php:575
248
  msgid " to copy"
249
  msgstr ""
250
 
251
- #: admin/admin.php:576
252
  msgid "No Support"
253
  msgstr ""
254
 
255
- #: admin/admin.php:578
256
  msgid "Element added"
257
  msgstr ""
258
 
259
- #: admin/admin.php:590
260
  msgid "Poll Preview"
261
  msgstr ""
262
 
263
- #: admin/admin.php:591
264
  msgid "Show preview for"
265
  msgstr ""
266
 
267
- #: admin/admin.php:592 admin/views/settings/view.php:366
268
  msgid "Voting"
269
  msgstr ""
270
 
271
- #: admin/admin.php:593 admin/views/polls/add/main.php:108
272
  #: admin/views/polls/add/options-poll.php:40
273
  #: admin/views/polls/edit/main.php:124 admin/views/polls/view.php:323
274
  #: admin/views/polls/view.php:608 admin/views/results/view.php:24
@@ -276,93 +276,93 @@ msgstr ""
276
  msgid "Results"
277
  msgstr ""
278
 
279
- #: admin/admin.php:604
280
  msgid "Template is missing"
281
  msgstr ""
282
 
283
- #: admin/admin.php:605
284
  msgid "Skin is missing"
285
  msgstr ""
286
 
287
- #: admin/admin.php:606
288
  msgid " is missing"
289
  msgstr ""
290
 
291
- #: admin/admin.php:607
292
  msgid "Poll name is missing"
293
  msgstr ""
294
 
295
- #: admin/admin.php:608
296
  msgid "Question Text is missing"
297
  msgstr ""
298
 
299
- #: admin/admin.php:609
300
  msgid "Answer Text is missing"
301
  msgstr ""
302
 
303
- #: admin/admin.php:610
304
  msgid "Answer Link is missing"
305
  msgstr ""
306
 
307
- #: admin/admin.php:611
308
  msgid "Answer Embed is missing"
309
  msgstr ""
310
 
311
- #: admin/admin.php:612
312
  msgid "Label for Other is missing"
313
  msgstr ""
314
 
315
- #: admin/admin.php:613
316
  msgid "Minimum answers is missing"
317
  msgstr ""
318
 
319
- #: admin/admin.php:614
320
  msgid "Maximum answers is missing"
321
  msgstr ""
322
 
323
- #: admin/admin.php:615
324
  msgid "Custom Field Name is missing"
325
  msgstr ""
326
 
327
- #: admin/admin.php:616
328
  msgid "Poll Start Date is missing"
329
  msgstr ""
330
 
331
- #: admin/admin.php:617
332
  msgid "Poll End Date is missing"
333
  msgstr ""
334
 
335
- #: admin/admin.php:618
336
  msgid "Custom Date for displaying results is missing"
337
  msgstr ""
338
 
339
- #: admin/admin.php:619
340
  msgid "Show Results Time is missing"
341
  msgstr ""
342
 
343
- #: admin/admin.php:620
344
  msgid "Show Results To is missing"
345
  msgstr ""
346
 
347
- #: admin/admin.php:621
348
  msgid "Vote As WordPress User is missing"
349
  msgstr ""
350
 
351
- #: admin/admin.php:624
352
  msgid "Ban For is missing"
353
  msgstr ""
354
 
355
- #: admin/admin.php:625
356
  msgid "Ban Value is missing"
357
  msgstr ""
358
 
359
- #: admin/admin.php:629 admin/admin.php:1235 admin/admin.php:1462
360
  #: admin/models/votes.php:1562
361
  msgid "Question"
362
  msgstr ""
363
 
364
- #: admin/admin.php:630 admin/admin.php:1232 admin/admin.php:1237
365
- #: admin/admin.php:1459 admin/admin.php:1464 admin/models/logs.php:463
366
  #: admin/models/logs.php:467 admin/models/votes.php:1564
367
  #: admin/views/polls/add/elements.php:107
368
  #: admin/views/polls/add/elements.php:181
@@ -371,114 +371,114 @@ msgstr ""
371
  msgid "Answer"
372
  msgstr ""
373
 
374
- #: admin/admin.php:631 admin/views/logs/view.php:368
375
  #: admin/views/results/votes.php:404
376
  msgid "View Details"
377
  msgstr ""
378
 
379
- #: admin/admin.php:632
380
  msgid "Hide Details"
381
  msgstr ""
382
 
383
- #: admin/admin.php:633
384
  msgid "Number of Votes"
385
  msgstr ""
386
 
387
- #: admin/admin.php:635
388
  msgid "vote"
389
  msgstr ""
390
 
391
- #: admin/admin.php:636
392
  msgid "votes"
393
  msgstr ""
394
 
395
- #: admin/admin.php:639
396
  msgid "Got It. Continue with the migration"
397
  msgstr ""
398
 
399
- #: admin/admin.php:640
400
  msgid "Hold On. I want to change settings"
401
  msgstr ""
402
 
403
- #: admin/admin.php:641
404
  msgid "Please review your settings before continue"
405
  msgstr ""
406
 
407
- #: admin/admin.php:642
408
  msgid "Your selection"
409
  msgstr ""
410
 
411
- #: admin/admin.php:643
412
  msgid ""
413
  "This setting will migrate all data from previous version without any "
414
  "anonymization"
415
  msgstr ""
416
 
417
- #: admin/admin.php:644
418
  msgid ""
419
  "This setting will migrate all data from previous version but ips will be "
420
  "anonymized"
421
  msgstr ""
422
 
423
- #: admin/admin.php:645
424
  msgid "This setting will migrate everything except ip addresses. "
425
  msgstr ""
426
 
427
- #: admin/admin.php:646
428
  msgid "Response:"
429
  msgstr ""
430
 
431
- #: admin/admin.php:647
432
  msgid "All done."
433
  msgstr ""
434
 
435
- #: admin/admin.php:648
436
  msgid "Migration started"
437
  msgstr ""
438
 
439
- #: admin/admin.php:664 admin/views/polls/edit/main.php:14
440
  msgid "Edit Poll"
441
  msgstr ""
442
 
443
- #: admin/admin.php:668
444
  msgid "View Poll Results"
445
  msgstr ""
446
 
447
- #: admin/admin.php:681
448
  msgid "View Logs"
449
  msgstr ""
450
 
451
- #: admin/admin.php:690 admin/views/bans/add.php:4
452
  msgid "Add Ban"
453
  msgstr ""
454
 
455
- #: admin/admin.php:694 admin/views/bans/edit.php:4
456
  msgid "Edit Ban"
457
  msgstr ""
458
 
459
- #: admin/admin.php:698
460
  msgid "All Bans"
461
  msgstr ""
462
 
463
- #: admin/admin.php:798 admin/admin.php:1329
464
  msgid "You don't have sufficient permissions to access this page"
465
  msgstr ""
466
 
467
- #: admin/admin.php:811
468
  msgid "Poll successfully added"
469
  msgstr ""
470
 
471
- #: admin/admin.php:820 admin/admin.php:846 admin/admin.php:849
472
- #: admin/admin.php:869 admin/admin.php:872 admin/admin.php:875
473
- #: admin/admin.php:915 admin/admin.php:929 admin/admin.php:932
474
- #: admin/admin.php:935 admin/admin.php:970 admin/admin.php:995
475
- #: admin/admin.php:1190 admin/admin.php:1244 admin/admin.php:1247
476
- #: admin/admin.php:1250 admin/admin.php:1309 admin/admin.php:1351
477
- #: admin/admin.php:1354 admin/admin.php:1357 admin/admin.php:1376
478
- #: admin/admin.php:1379 admin/admin.php:1419 admin/admin.php:1471
479
- #: admin/admin.php:1474 admin/admin.php:1500 admin/admin.php:1544
480
- #: admin/admin.php:1564 admin/admin.php:1567 admin/admin.php:1570
481
- #: admin/admin.php:1610 admin/admin.php:1635 admin/admin.php:1638
482
  #: admin/inc/ClassYopPollImporter4x.php:759
483
  #: admin/inc/ClassYopPollImporter4x.php:813
484
  #: admin/inc/ClassYopPollImporter5x.php:2607
@@ -486,43 +486,43 @@ msgstr ""
486
  msgid "You are not allowed to perform this action"
487
  msgstr ""
488
 
489
- #: admin/admin.php:837
490
  msgid "Poll successfully updated"
491
  msgstr ""
492
 
493
- #: admin/admin.php:864 admin/admin.php:900
494
  msgid "Poll successfully deleted"
495
  msgstr ""
496
 
497
- #: admin/admin.php:907 admin/models/polls.php:603
498
  msgid "Error deleting poll"
499
  msgid_plural "Error deleting polls"
500
  msgstr[0] ""
501
  msgstr[1] ""
502
 
503
- #: admin/admin.php:924 admin/admin.php:955
504
  msgid "Poll successfully cloned"
505
  msgstr ""
506
 
507
- #: admin/admin.php:962 admin/models/polls.php:663
508
  msgid "Error cloning poll"
509
  msgid_plural "Error cloning polls"
510
  msgstr[0] ""
511
  msgstr[1] ""
512
 
513
- #: admin/admin.php:990
514
  msgid "Votes successfully reset"
515
  msgstr ""
516
 
517
- #: admin/admin.php:992 admin/models/polls.php:682
518
  msgid "Error resetting votes"
519
  msgstr ""
520
 
521
- #: admin/admin.php:1105 admin/admin.php:1144 admin/models/bans.php:410
522
  msgid "Invalid poll"
523
  msgstr ""
524
 
525
- #: admin/admin.php:1231 admin/admin.php:1458 admin/models/logs.php:462
526
  #: admin/views/custom-field.php:31 admin/views/polls/add/elements.php:15
527
  #: admin/views/polls/edit/elements.php:15
528
  #: admin/views/polls/edit/elements.php:496
@@ -531,71 +531,71 @@ msgstr ""
531
  msgid "Custom Field"
532
  msgstr ""
533
 
534
- #: admin/admin.php:1304
535
  msgid "Ban successfully added"
536
  msgstr ""
537
 
538
- #: admin/admin.php:1346 admin/admin.php:1404
539
  msgid "Ban successfully deleted"
540
  msgstr ""
541
 
542
- #: admin/admin.php:1371
543
  msgid "Ban successfully updated"
544
  msgstr ""
545
 
546
- #: admin/admin.php:1411 admin/models/bans.php:387
547
  msgid "Error deleting ban"
548
  msgid_plural "Error deleting bans"
549
  msgstr[0] ""
550
  msgstr[1] ""
551
 
552
- #: admin/admin.php:1428
553
  msgid "Vote Recorded"
554
  msgstr ""
555
 
556
- #: admin/admin.php:1433 admin/admin.php:1653
557
  msgid "Invalid data 1"
558
  msgstr ""
559
 
560
- #: admin/admin.php:1436 admin/admin.php:1656
561
  msgid "Invalid data 2"
562
  msgstr ""
563
 
564
- #: admin/admin.php:1491 admin/admin.php:1529
565
  msgid "Vote successfully deleted"
566
  msgstr ""
567
 
568
- #: admin/admin.php:1493 admin/admin.php:1497 admin/admin.php:1536
569
  msgid "Error deleting vote"
570
  msgstr ""
571
 
572
- #: admin/admin.php:1559 admin/admin.php:1595
573
  msgid "Log successfully deleted"
574
  msgstr ""
575
 
576
- #: admin/admin.php:1602 admin/models/logs.php:516
577
  msgid "Error deleting log"
578
  msgid_plural "Error deleting logs"
579
  msgstr[0] ""
580
  msgstr[1] ""
581
 
582
- #: admin/admin.php:1630
583
  msgid "Settings updated"
584
  msgstr ""
585
 
586
- #: admin/admin.php:1648
587
  msgid "Votes Succesfully Added"
588
  msgstr ""
589
 
590
- #: admin/admin.php:1669
591
  msgid "Error generating poll"
592
  msgstr ""
593
 
594
- #: admin/admin.php:1676
595
  msgid "Setting Updated"
596
  msgstr ""
597
 
598
- #: admin/admin.php:1695
599
  msgid "Guide Sent"
600
  msgstr ""
601
 
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: YOP Poll 6.3.6\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yop-poll-free\n"
7
+ "POT-Creation-Date: 2022-02-10 09:41:10+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
75
  msgid "Skip and Deactivate"
76
  msgstr ""
77
 
78
+ #: admin/admin.php:361 admin/admin.php:362
79
  msgid "Yop Poll"
80
  msgstr ""
81
 
82
+ #: admin/admin.php:375 admin/admin.php:376 admin/admin.php:676
83
  #: admin/views/bans/add.php:23 admin/views/bans/edit.php:27
84
  #: admin/views/bans/edit.php:35 admin/views/polls/view.php:155
85
  #: admin/views/results/view.php:17 admin/views/results/votes.php:95
86
  msgid "All Polls"
87
  msgstr ""
88
 
89
+ #: admin/admin.php:390 admin/admin.php:391 admin/views/bans/view.php:152
90
  #: admin/views/polls/view.php:166
91
  msgid "Add New"
92
  msgstr ""
93
 
94
+ #: admin/admin.php:401 admin/admin.php:402 admin/views/bans/view.php:140
95
  msgid "Bans"
96
  msgstr ""
97
 
98
+ #: admin/admin.php:412 admin/admin.php:413 admin/views/logs/view.php:108
99
  msgid "Logs"
100
  msgstr ""
101
 
102
+ #: admin/admin.php:427 admin/admin.php:428
103
  msgid "Settings"
104
  msgstr ""
105
 
106
+ #: admin/admin.php:439 admin/admin.php:440
107
  msgid "Migrate old records"
108
  msgstr ""
109
 
110
+ #: admin/admin.php:451 admin/admin.php:452
111
  msgid "Upgrade to Pro"
112
  msgstr ""
113
 
114
+ #: admin/admin.php:542
115
  msgid "New Custom Field"
116
  msgstr ""
117
 
118
+ #: admin/admin.php:543
119
  msgid "Warning"
120
  msgstr ""
121
 
122
+ #: admin/admin.php:544 admin/admin.php:545
123
  msgid "Are you sure you want to delete this poll?"
124
  msgstr ""
125
 
126
+ #: admin/admin.php:546
127
  msgid "Are you sure you want to delete these polls?"
128
  msgstr ""
129
 
130
+ #: admin/admin.php:547 admin/admin.php:548
131
  msgid "Are you sure you want to clone this poll?"
132
  msgstr ""
133
 
134
+ #: admin/admin.php:549
135
  msgid "Are you sure you want to clone these polls?"
136
  msgstr ""
137
 
138
+ #: admin/admin.php:550 admin/admin.php:551
139
  msgid "Are you sure you want to reset votes for this poll?"
140
  msgstr ""
141
 
142
+ #: admin/admin.php:552
143
  msgid "Are you sure you want to reset votes for these polls?"
144
  msgstr ""
145
 
146
+ #: admin/admin.php:553
147
  msgid "No bulk action selected"
148
  msgstr ""
149
 
150
+ #: admin/admin.php:554
151
  msgid "No polls selected"
152
  msgstr ""
153
 
154
+ #: admin/admin.php:555
155
  msgid "No bans selected"
156
  msgstr ""
157
 
158
+ #: admin/admin.php:556
159
  msgid "No logs selected"
160
  msgstr ""
161
 
162
+ #: admin/admin.php:557
163
  msgid "No votes selected"
164
  msgstr ""
165
 
166
+ #: admin/admin.php:558 admin/admin.php:631
167
  msgid "Are you sure you want to delete this ban?"
168
  msgstr ""
169
 
170
+ #: admin/admin.php:559
171
  msgid "Are you sure you want to delete these bans?"
172
  msgstr ""
173
 
174
+ #: admin/admin.php:560 admin/admin.php:632
175
  msgid "Are you sure you want to delete this log?"
176
  msgstr ""
177
 
178
+ #: admin/admin.php:561
179
  msgid "Are you sure you want to delete these logs?"
180
  msgstr ""
181
 
182
+ #: admin/admin.php:562
183
  msgid "Are you sure you want to delete this vote?"
184
  msgstr ""
185
 
186
+ #: admin/admin.php:563
187
  msgid "Are you sure you want to delete these votes?"
188
  msgstr ""
189
 
190
+ #: admin/admin.php:564
191
  msgid "Are you sure you want to delete this answer?"
192
  msgstr ""
193
 
194
+ #: admin/admin.php:565
195
  msgid "Answer can't be deleted. At least one answer is required!"
196
  msgstr ""
197
 
198
+ #: admin/admin.php:566
199
  msgid "Are you sure you want to delete this custom field?"
200
  msgstr ""
201
 
202
+ #: admin/admin.php:567 admin/views/polls/add/main.php:188
203
  #: admin/views/polls/edit/main.php:213 admin/views/results/votes.php:196
204
  msgid "Cancel"
205
  msgstr ""
206
 
207
+ #: admin/admin.php:568
208
  msgid "Ok"
209
  msgstr ""
210
 
211
+ #: admin/admin.php:569
212
  msgid "Before generating the preview a template is required"
213
  msgstr ""
214
 
215
+ #: admin/admin.php:570
216
  msgid "Before generating the preview a skin is required"
217
  msgstr ""
218
 
219
+ #: admin/admin.php:571
220
  msgid "Number of columns is missing"
221
  msgstr ""
222
 
223
+ #: admin/admin.php:572
224
  msgid "Too many columns. Max 12 allowed"
225
  msgstr ""
226
 
227
+ #: admin/admin.php:573
228
  msgid "Click to select"
229
  msgstr ""
230
 
231
+ #: admin/admin.php:574 admin/views/polls/add/main.php:194
232
  msgid "Publish immediately"
233
  msgstr ""
234
 
235
+ #: admin/admin.php:575
236
  msgid "Schedule for"
237
  msgstr ""
238
 
239
+ #: admin/admin.php:576
240
  msgid "Code Copied To Clipboard"
241
  msgstr ""
242
 
243
+ #: admin/admin.php:578
244
  msgid "Press"
245
  msgstr ""
246
 
247
+ #: admin/admin.php:579
248
  msgid " to copy"
249
  msgstr ""
250
 
251
+ #: admin/admin.php:580
252
  msgid "No Support"
253
  msgstr ""
254
 
255
+ #: admin/admin.php:582
256
  msgid "Element added"
257
  msgstr ""
258
 
259
+ #: admin/admin.php:594
260
  msgid "Poll Preview"
261
  msgstr ""
262
 
263
+ #: admin/admin.php:595
264
  msgid "Show preview for"
265
  msgstr ""
266
 
267
+ #: admin/admin.php:596 admin/views/settings/view.php:366
268
  msgid "Voting"
269
  msgstr ""
270
 
271
+ #: admin/admin.php:597 admin/views/polls/add/main.php:108
272
  #: admin/views/polls/add/options-poll.php:40
273
  #: admin/views/polls/edit/main.php:124 admin/views/polls/view.php:323
274
  #: admin/views/polls/view.php:608 admin/views/results/view.php:24
276
  msgid "Results"
277
  msgstr ""
278
 
279
+ #: admin/admin.php:608
280
  msgid "Template is missing"
281
  msgstr ""
282
 
283
+ #: admin/admin.php:609
284
  msgid "Skin is missing"
285
  msgstr ""
286
 
287
+ #: admin/admin.php:610
288
  msgid " is missing"
289
  msgstr ""
290
 
291
+ #: admin/admin.php:611
292
  msgid "Poll name is missing"
293
  msgstr ""
294
 
295
+ #: admin/admin.php:612
296
  msgid "Question Text is missing"
297
  msgstr ""
298
 
299
+ #: admin/admin.php:613
300
  msgid "Answer Text is missing"
301
  msgstr ""
302
 
303
+ #: admin/admin.php:614
304
  msgid "Answer Link is missing"
305
  msgstr ""
306
 
307
+ #: admin/admin.php:615
308
  msgid "Answer Embed is missing"
309
  msgstr ""
310
 
311
+ #: admin/admin.php:616
312
  msgid "Label for Other is missing"
313
  msgstr ""
314
 
315
+ #: admin/admin.php:617
316
  msgid "Minimum answers is missing"
317
  msgstr ""
318
 
319
+ #: admin/admin.php:618
320
  msgid "Maximum answers is missing"
321
  msgstr ""
322
 
323
+ #: admin/admin.php:619
324
  msgid "Custom Field Name is missing"
325
  msgstr ""
326
 
327
+ #: admin/admin.php:620
328
  msgid "Poll Start Date is missing"
329
  msgstr ""
330
 
331
+ #: admin/admin.php:621
332
  msgid "Poll End Date is missing"
333
  msgstr ""
334
 
335
+ #: admin/admin.php:622
336
  msgid "Custom Date for displaying results is missing"
337
  msgstr ""
338
 
339
+ #: admin/admin.php:623
340
  msgid "Show Results Time is missing"
341
  msgstr ""
342
 
343
+ #: admin/admin.php:624
344
  msgid "Show Results To is missing"
345
  msgstr ""
346
 
347
+ #: admin/admin.php:625
348
  msgid "Vote As WordPress User is missing"
349
  msgstr ""
350
 
351
+ #: admin/admin.php:628
352
  msgid "Ban For is missing"
353
  msgstr ""
354
 
355
+ #: admin/admin.php:629
356
  msgid "Ban Value is missing"
357
  msgstr ""
358
 
359
+ #: admin/admin.php:633 admin/admin.php:1257 admin/admin.php:1496
360
  #: admin/models/votes.php:1562
361
  msgid "Question"
362
  msgstr ""
363
 
364
+ #: admin/admin.php:634 admin/admin.php:1254 admin/admin.php:1259
365
+ #: admin/admin.php:1493 admin/admin.php:1498 admin/models/logs.php:463
366
  #: admin/models/logs.php:467 admin/models/votes.php:1564
367
  #: admin/views/polls/add/elements.php:107
368
  #: admin/views/polls/add/elements.php:181
371
  msgid "Answer"
372
  msgstr ""
373
 
374
+ #: admin/admin.php:635 admin/views/logs/view.php:368
375
  #: admin/views/results/votes.php:404
376
  msgid "View Details"
377
  msgstr ""
378
 
379
+ #: admin/admin.php:636
380
  msgid "Hide Details"
381
  msgstr ""
382
 
383
+ #: admin/admin.php:637
384
  msgid "Number of Votes"
385
  msgstr ""
386
 
387
+ #: admin/admin.php:639
388
  msgid "vote"
389
  msgstr ""
390
 
391
+ #: admin/admin.php:640
392
  msgid "votes"
393
  msgstr ""
394
 
395
+ #: admin/admin.php:643
396
  msgid "Got It. Continue with the migration"
397
  msgstr ""
398
 
399
+ #: admin/admin.php:644
400
  msgid "Hold On. I want to change settings"
401
  msgstr ""
402
 
403
+ #: admin/admin.php:645
404
  msgid "Please review your settings before continue"
405
  msgstr ""
406
 
407
+ #: admin/admin.php:646
408
  msgid "Your selection"
409
  msgstr ""
410
 
411
+ #: admin/admin.php:647
412
  msgid ""
413
  "This setting will migrate all data from previous version without any "
414
  "anonymization"
415
  msgstr ""
416
 
417
+ #: admin/admin.php:648
418
  msgid ""
419
  "This setting will migrate all data from previous version but ips will be "
420
  "anonymized"
421
  msgstr ""
422
 
423
+ #: admin/admin.php:649
424
  msgid "This setting will migrate everything except ip addresses. "
425
  msgstr ""
426
 
427
+ #: admin/admin.php:650
428
  msgid "Response:"
429
  msgstr ""
430
 
431
+ #: admin/admin.php:651
432
  msgid "All done."
433
  msgstr ""
434
 
435
+ #: admin/admin.php:652
436
  msgid "Migration started"
437
  msgstr ""
438
 
439
+ #: admin/admin.php:668 admin/views/polls/edit/main.php:14
440
  msgid "Edit Poll"
441
  msgstr ""
442
 
443
+ #: admin/admin.php:672
444
  msgid "View Poll Results"
445
  msgstr ""
446
 
447
+ #: admin/admin.php:685
448
  msgid "View Logs"
449
  msgstr ""
450
 
451
+ #: admin/admin.php:694 admin/views/bans/add.php:4
452
  msgid "Add Ban"
453
  msgstr ""
454
 
455
+ #: admin/admin.php:698 admin/views/bans/edit.php:4
456
  msgid "Edit Ban"
457
  msgstr ""
458
 
459
+ #: admin/admin.php:702
460
  msgid "All Bans"
461
  msgstr ""
462
 
463
+ #: admin/admin.php:803 admin/admin.php:1354
464
  msgid "You don't have sufficient permissions to access this page"
465
  msgstr ""
466
 
467
+ #: admin/admin.php:823
468
  msgid "Poll successfully added"
469
  msgstr ""
470
 
471
+ #: admin/admin.php:832 admin/admin.php:859 admin/admin.php:862
472
+ #: admin/admin.php:882 admin/admin.php:885 admin/admin.php:888
473
+ #: admin/admin.php:931 admin/admin.php:945 admin/admin.php:948
474
+ #: admin/admin.php:951 admin/admin.php:989 admin/admin.php:1017
475
+ #: admin/admin.php:1212 admin/admin.php:1266 admin/admin.php:1269
476
+ #: admin/admin.php:1272 admin/admin.php:1334 admin/admin.php:1376
477
+ #: admin/admin.php:1379 admin/admin.php:1382 admin/admin.php:1404
478
+ #: admin/admin.php:1407 admin/admin.php:1450 admin/admin.php:1505
479
+ #: admin/admin.php:1508 admin/admin.php:1534 admin/admin.php:1581
480
+ #: admin/admin.php:1601 admin/admin.php:1604 admin/admin.php:1607
481
+ #: admin/admin.php:1650 admin/admin.php:1678 admin/admin.php:1681
482
  #: admin/inc/ClassYopPollImporter4x.php:759
483
  #: admin/inc/ClassYopPollImporter4x.php:813
484
  #: admin/inc/ClassYopPollImporter5x.php:2607
486
  msgid "You are not allowed to perform this action"
487
  msgstr ""
488
 
489
+ #: admin/admin.php:850
490
  msgid "Poll successfully updated"
491
  msgstr ""
492
 
493
+ #: admin/admin.php:877 admin/admin.php:916
494
  msgid "Poll successfully deleted"
495
  msgstr ""
496
 
497
+ #: admin/admin.php:923 admin/models/polls.php:603
498
  msgid "Error deleting poll"
499
  msgid_plural "Error deleting polls"
500
  msgstr[0] ""
501
  msgstr[1] ""
502
 
503
+ #: admin/admin.php:940 admin/admin.php:974
504
  msgid "Poll successfully cloned"
505
  msgstr ""
506
 
507
+ #: admin/admin.php:981 admin/models/polls.php:663
508
  msgid "Error cloning poll"
509
  msgid_plural "Error cloning polls"
510
  msgstr[0] ""
511
  msgstr[1] ""
512
 
513
+ #: admin/admin.php:1012
514
  msgid "Votes successfully reset"
515
  msgstr ""
516
 
517
+ #: admin/admin.php:1014 admin/models/polls.php:682
518
  msgid "Error resetting votes"
519
  msgstr ""
520
 
521
+ #: admin/admin.php:1127 admin/admin.php:1166 admin/models/bans.php:410
522
  msgid "Invalid poll"
523
  msgstr ""
524
 
525
+ #: admin/admin.php:1253 admin/admin.php:1492 admin/models/logs.php:462
526
  #: admin/views/custom-field.php:31 admin/views/polls/add/elements.php:15
527
  #: admin/views/polls/edit/elements.php:15
528
  #: admin/views/polls/edit/elements.php:496
531
  msgid "Custom Field"
532
  msgstr ""
533
 
534
+ #: admin/admin.php:1329
535
  msgid "Ban successfully added"
536
  msgstr ""
537
 
538
+ #: admin/admin.php:1371 admin/admin.php:1435
539
  msgid "Ban successfully deleted"
540
  msgstr ""
541
 
542
+ #: admin/admin.php:1399
543
  msgid "Ban successfully updated"
544
  msgstr ""
545
 
546
+ #: admin/admin.php:1442 admin/models/bans.php:387
547
  msgid "Error deleting ban"
548
  msgid_plural "Error deleting bans"
549
  msgstr[0] ""
550
  msgstr[1] ""
551
 
552
+ #: admin/admin.php:1462
553
  msgid "Vote Recorded"
554
  msgstr ""
555
 
556
+ #: admin/admin.php:1467 admin/admin.php:1699
557
  msgid "Invalid data 1"
558
  msgstr ""
559
 
560
+ #: admin/admin.php:1470 admin/admin.php:1702
561
  msgid "Invalid data 2"
562
  msgstr ""
563
 
564
+ #: admin/admin.php:1525 admin/admin.php:1566
565
  msgid "Vote successfully deleted"
566
  msgstr ""
567
 
568
+ #: admin/admin.php:1527 admin/admin.php:1531 admin/admin.php:1573
569
  msgid "Error deleting vote"
570
  msgstr ""
571
 
572
+ #: admin/admin.php:1596 admin/admin.php:1635
573
  msgid "Log successfully deleted"
574
  msgstr ""
575
 
576
+ #: admin/admin.php:1642 admin/models/logs.php:516
577
  msgid "Error deleting log"
578
  msgid_plural "Error deleting logs"
579
  msgstr[0] ""
580
  msgstr[1] ""
581
 
582
+ #: admin/admin.php:1673
583
  msgid "Settings updated"
584
  msgstr ""
585
 
586
+ #: admin/admin.php:1694
587
  msgid "Votes Succesfully Added"
588
  msgstr ""
589
 
590
+ #: admin/admin.php:1715
591
  msgid "Error generating poll"
592
  msgstr ""
593
 
594
+ #: admin/admin.php:1722
595
  msgid "Setting Updated"
596
  msgstr ""
597
 
598
+ #: admin/admin.php:1741
599
  msgid "Guide Sent"
600
  msgstr ""
601
 
public/assets/css/{yop-poll-public-6.3.5.css → yop-poll-public-6.3.6.css} RENAMED
File without changes
public/assets/js/{yop-poll-public-6.3.5.min.js → yop-poll-public-6.3.6.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.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.htm
10
 
@@ -119,6 +119,11 @@ You can have only one question per poll.
119
 
120
  == Changelog ==
121
 
 
 
 
 
 
122
  = 6.3.5 =
123
  * fixed typo in 4.x importer causing issues on some installs
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.3.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.htm
10
 
119
 
120
  == Changelog ==
121
 
122
+ = 6.3.6 =
123
+ * fixed issue with polls not displaying correctly in widgets
124
+ * fixed archive shortcode to only display published polls
125
+ * added more sanitization for arrays and objects
126
+
127
  = 6.3.5 =
128
  * fixed typo in 4.x importer causing issues on some installs
129
 
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.5
7
  Author: yourownprogrammer
8
  Author URI: https://yop-poll.com
9
  License: GPL2
@@ -11,7 +11,7 @@ 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.5' );
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 );
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.6
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.3.6' );
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 );