← All changes
|
includes/classes/integrations/class-notifier-cf7.php
+1
-5
3.1.1
→
2.6.3
View file →
| @@ -1,9 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 3 | - exit; | |
| 4 | -} | |
| 5 | - | |
| 6 | 2 | /** |
| 7 | 3 | * Contact Form 7 notifications |
| 8 | 4 | * |
| 9 | 5 | * @package Wa_Notifier |
| @@ -110,9 +106,9 @@ | ||
| 110 | 106 | |
| 111 | 107 | $recipient_fields = array(); |
| 112 | 108 | foreach($form_fields as $field){ |
| 113 | 109 | |
| 114 | - if(!in_array($field->basetype, array('tel', 'phonefield'))){ | |
| 110 | + if('tel' != $field->basetype){ | |
| 115 | 111 | continue; |
| 116 | 112 | } |
| 117 | 113 | |
| 118 | 114 | $field_name = $field->name; |