PluginProbe
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls / 6.5.1
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls v6.5.1
6.5.1 6.5.0 6.4.9 6.4.8 6.4.7 6.4.6 6.4.5 6.4.4 6.4.3 6.4.2 6.4.1 6.4.0 6.3.9 6.3.8 6.3.7 6.3.6 6.3.5 6.3.4 6.3.3 5.6.0 5.6.1 5.6.2 5.6.3 5.6.4 5.6.5 All 154 releases
← All changes | admin/partials/settings/poll-maker-settings-actions.php +13 -5 5.6.2 → 6.5.1 View file →
@@ -33,8 +33,11 @@
33 33 );
34 34
35 35 $disable_ip_storing = (isset($data['ays_disable_ip_storing']) && $data['ays_disable_ip_storing'] == 'on') ? "on" : 'off';
36 36
37 + $show_cat_title = isset($data['ays_poll_show_cat_title']) && $data['ays_poll_show_cat_title'] == 'on' ? $data['ays_poll_show_cat_title'] : 'off';
38 +
39 +
37 40 $answer_default_count = isset($data['ays_answer_default_count']) && !empty($data['ays_answer_default_count']) ? absint( sanitize_text_field($data['ays_answer_default_count']) ) : 2;
38 41
39 42 $answers_sound = isset($data['ays_poll_answers_sound']) ? sanitize_text_field($data['ays_poll_answers_sound']) : '';
40 43
@@ -65,14 +68,18 @@
65 68
66 69 // General CSS File
67 70 $poll_exclude_general_css = (isset( $data['ays_poll_exclude_general_css'] ) && sanitize_text_field( $data['ays_poll_exclude_general_css'] ) == 'on') ? 'on' : 'off';
68 71
72 + // Menu notifications
73 + $poll_disable_poll_menu_notification = (isset( $data['ays_poll_disable_poll_menu_notification'] ) && sanitize_text_field( $data['ays_poll_disable_poll_menu_notification'] ) == 'on') ? 'on' : 'off';
74 +
69 75 // WP Editor height
70 - $poll_wp_editor_height = (isset($data['ays_poll_wp_editor_height']) && $data['ays_poll_wp_editor_height'] != '' && $data['ays_poll_wp_editor_height'] != 0) ? absint( sanitize_text_field($data['ays_poll_wp_editor_height']) ) : 100 ;
76 + $poll_wp_editor_height = (isset($data['ays_poll_wp_editor_height']) && $data['ays_poll_wp_editor_height'] != '' && $data['ays_poll_wp_editor_height'] != 0) ? absint( sanitize_text_field($data['ays_poll_wp_editor_height']) ) : 50;
71 77
72 78 $options = array(
73 79 "disable_ip_storing" => $disable_ip_storing,
74 80 "answer_default_count" => $answer_default_count,
81 + "show_cat_title" => $show_cat_title,
75 82 "answers_sound" => $answers_sound,
76 83 "poll_title_length" => $poll_title_length,
77 84 "poll_category_title_length"=> $poll_category_title_length,
78 85 "poll_results_title_length" => $poll_results_title_length,
@@ -82,8 +89,9 @@
82 89 "show_result_view" => $poll_show_result_view,
83 90 "poll_animation_top" => $poll_animation_top,
84 91 "poll_enable_animation_top" => $poll_enable_animation_top,
85 92 "poll_exclude_general_css" => $poll_exclude_general_css,
93 + "poll_disable_poll_menu_notification" => $poll_disable_poll_menu_notification,
86 94 "poll_wp_editor_height" => $poll_wp_editor_height,
87 95 );
88 96
89 97 $poll_fields_placeholder_name = (isset($data['ays_poll_fields_placeholder_name']) && $data['ays_poll_fields_placeholder_name'] != '') ? stripslashes(sanitize_text_field( $data['ays_poll_fields_placeholder_name'] )) : 'Name' ;
@@ -270,19 +278,19 @@
270 278 if ( empty( $status ) )
271 279 return;
272 280
273 281 if ( 'saved' == $status )
274 - $updated_message = esc_html( __( 'Changes saved.', "poll-maker" ) );
282 + $updated_message = esc_html(esc_html__( 'Changes saved.', "poll-maker" ) );
275 283 elseif ( 'updated' == $status )
276 - $updated_message = esc_html( __( 'Poll attribute .', "poll-maker" ) );
284 + $updated_message = esc_html(esc_html__( 'Poll attribute .', "poll-maker" ) );
277 285 elseif ( 'deleted' == $status )
278 - $updated_message = esc_html( __( 'Poll attribute deleted.', "poll-maker" ) );
286 + $updated_message = esc_html(esc_html__( 'Poll attribute deleted.', "poll-maker" ) );
279 287
280 288 if ( empty( $updated_message ) )
281 289 return;
282 290
283 291 ?>
284 - <div class="notice notice-success is-dismissible">
292 + <div class="ays-poll-admin-notice notice notice-success is-dismissible">
285 293 <p> <?php echo $updated_message; ?> </p>
286 294 </div>
287 295 <?php
288 296 }