PluginProbe
WANotifier for Forms and Actions / 2.6.3
WANotifier for Forms and Actions v2.6.3
3.1.1 3.1.0 3.0.4 2.7.10 2.7.11 2.7.12 2.7.13 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 3.0.0 3.0.1 3.0.2 3.0.3 trunk 0.1.0 0.1.1 1.0.0 1.0.1 1.0.2 All 67 releases
← All changes | includes/classes/class-notifier-frontend.php +3 -8 trunk2.6.3 View file →
@@ -1,9 +1,5 @@
1 1 <?php
2 -if ( ! defined( 'ABSPATH' ) ) {
3 - exit;
4 -}
5 -
6 2 /**
7 3 *
8 4 * @package Wa_Notifier
9 5 */
@@ -26,12 +22,11 @@
26 22 if(!$btn_style){
27 23 return;
28 24 }
29 25
30 - if ( $enable_click_chat === 'yes' && ! empty( $click_chat_number ) ) {
31 - $valid_styles = array_keys( Notifier_Backend::get_button_styles() );
32 - if ( $btn_style !== 'default' && in_array( $btn_style, $valid_styles, true ) ) {
33 - include_once NOTIFIER_PATH . 'templates/buttons/' . $btn_style . '.php';
26 + if($enable_click_chat === 'yes' && !empty($click_chat_number)){
27 + if($btn_style !== 'default'){
28 + include_once NOTIFIER_PATH . 'templates/buttons/'.$btn_style.'.php';
34 29 }
35 30 }
36 31 }
37 32 }