Version Description
- Fixed bug that was causing poll not to update it's settings
Download this release
Release Info
Developer | yourownprogrammer |
Plugin | YOP Poll |
Version | 1.7 |
Comparing to | |
See all releases |
Code changes from version 1.6 to 1.7
- inc/yop_poll_model.php +4 -4
- readme.txt +3 -0
- yop_poll.php +2 -2
inc/yop_poll_model.php
CHANGED
@@ -583,7 +583,7 @@
|
|
583 |
$poll_options['never_expire'] = 'no';
|
584 |
}
|
585 |
|
586 |
-
if ( count( $poll_options ) > 0 )
|
587 |
update_yop_poll_meta( $this->poll['id'], 'options', $poll_options );
|
588 |
|
589 |
//inserting answers to db
|
@@ -606,7 +606,7 @@
|
|
606 |
$poll_answer_options[ $option_name ] = $option_value;
|
607 |
}
|
608 |
}
|
609 |
-
if ( count( $poll_answer_options ) > 0 )
|
610 |
update_yop_poll_answer_meta( $answer_id, 'options', $poll_answer_options, true );
|
611 |
}
|
612 |
}
|
@@ -663,7 +663,7 @@
|
|
663 |
if( ! isset( $request['yop_poll_options']['never_expire'] ) ) {
|
664 |
$poll_options['never_expire'] = 'no';
|
665 |
}
|
666 |
-
if ( count( $poll_options ) > 0 )
|
667 |
update_yop_poll_meta( $this->poll['id'], 'options', $poll_options );
|
668 |
|
669 |
//add update answers in db
|
@@ -697,7 +697,7 @@
|
|
697 |
$poll_answer_options[ $option_name ] = $option_value;
|
698 |
}
|
699 |
}
|
700 |
-
if ( count( $poll_answer_options ) > 0 )
|
701 |
update_yop_poll_answer_meta( $answer_id, 'options', $poll_answer_options, true );
|
702 |
}
|
703 |
}
|
583 |
$poll_options['never_expire'] = 'no';
|
584 |
}
|
585 |
|
586 |
+
//if ( count( $poll_options ) > 0 )
|
587 |
update_yop_poll_meta( $this->poll['id'], 'options', $poll_options );
|
588 |
|
589 |
//inserting answers to db
|
606 |
$poll_answer_options[ $option_name ] = $option_value;
|
607 |
}
|
608 |
}
|
609 |
+
//if ( count( $poll_answer_options ) > 0 )
|
610 |
update_yop_poll_answer_meta( $answer_id, 'options', $poll_answer_options, true );
|
611 |
}
|
612 |
}
|
663 |
if( ! isset( $request['yop_poll_options']['never_expire'] ) ) {
|
664 |
$poll_options['never_expire'] = 'no';
|
665 |
}
|
666 |
+
//if ( count( $poll_options ) > 0 )
|
667 |
update_yop_poll_meta( $this->poll['id'], 'options', $poll_options );
|
668 |
|
669 |
//add update answers in db
|
697 |
$poll_answer_options[ $option_name ] = $option_value;
|
698 |
}
|
699 |
}
|
700 |
+
//if ( count( $poll_answer_options ) > 0 )
|
701 |
update_yop_poll_answer_meta( $answer_id, 'options', $poll_answer_options, true );
|
702 |
}
|
703 |
}
|
readme.txt
CHANGED
@@ -136,6 +136,9 @@ This plugin was especially designed for flexibility and it is very easy to use.
|
|
136 |
|
137 |
== Changelog ==
|
138 |
|
|
|
|
|
|
|
139 |
= 1.6 =
|
140 |
* Added ability to change the text for Vote button
|
141 |
* Added ability to display the answers for Others field
|
136 |
|
137 |
== Changelog ==
|
138 |
|
139 |
+
= 1.7 =
|
140 |
+
* Fixed bug that was causing poll not to update it's settings
|
141 |
+
|
142 |
= 1.6 =
|
143 |
* Added ability to change the text for Vote button
|
144 |
* Added ability to display the answers for Others field
|
yop_poll.php
CHANGED
@@ -5,10 +5,10 @@
|
|
5 |
Description: Use a full option polling functionality to get the answers you need. YOP Poll is the perfect, easy to use plugin for your WordPress website.
|
6 |
Author: yourownprogrammer
|
7 |
Author URL: http://www.yourownprogrammer.com
|
8 |
-
Version: 1.
|
9 |
*/
|
10 |
define( 'YOP_POLL_WP_VERSION', '3.3.0' );
|
11 |
-
define( 'YOP_POLL_VERSION', '1.
|
12 |
define( 'YOP_POLL_PATH', plugin_dir_path( __FILE__ ) );
|
13 |
define( 'YOP_POLL_URL', plugins_url( '', __FILE__ ) );
|
14 |
define( 'YOP_POLL_PLUGIN_FILE', plugin_basename( __FILE__ ) );
|
5 |
Description: Use a full option polling functionality to get the answers you need. YOP Poll is the perfect, easy to use plugin for your WordPress website.
|
6 |
Author: yourownprogrammer
|
7 |
Author URL: http://www.yourownprogrammer.com
|
8 |
+
Version: 1.7
|
9 |
*/
|
10 |
define( 'YOP_POLL_WP_VERSION', '3.3.0' );
|
11 |
+
define( 'YOP_POLL_VERSION', '1.7' );
|
12 |
define( 'YOP_POLL_PATH', plugin_dir_path( __FILE__ ) );
|
13 |
define( 'YOP_POLL_URL', plugins_url( '', __FILE__ ) );
|
14 |
define( 'YOP_POLL_PLUGIN_FILE', plugin_basename( __FILE__ ) );
|