@@ -141,7 +141,7 @@ |
||
141 | 141 | global $wpdb; |
142 | 142 | |
143 | 143 | if ( version_compare( GravityView_GFFormsModel::get_database_version(), '2.3-dev-1', '>=' ) |
144 | - && method_exists( 'GFFormsModel', 'get_entry_notes_table_name' ) ) { |
|
144 | + && method_exists( 'GFFormsModel', 'get_entry_notes_table_name' ) ) { |
|
145 | 145 | $notes_table = GFFormsModel::get_entry_notes_table_name(); |
146 | 146 | } else { |
147 | 147 | $notes_table = GFFormsModel::get_lead_notes_table_name(); |
@@ -62,7 +62,6 @@ |
||
62 | 62 | * |
63 | 63 | * Internal static cache for gets, and whatnot. |
64 | 64 | * This is not persistent, resets across requests. |
65 | - |
|
66 | 65 | * @internal |
67 | 66 | */ |
68 | 67 | private static $cache = array(); |
@@ -163,14 +163,14 @@ |
||
163 | 163 | return $settings; |
164 | 164 | } |
165 | 165 | |
166 | - /** |
|
166 | + /** |
|
167 | 167 | * Get the Widget ID. |
168 | 168 | * |
169 | - * @return string The Widget ID. |
|
170 | - */ |
|
171 | - public function get_widget_id() { |
|
172 | - return $this->widget_id; |
|
173 | - } |
|
169 | + * @return string The Widget ID. |
|
170 | + */ |
|
171 | + public function get_widget_id() { |
|
172 | + return $this->widget_id; |
|
173 | + } |
|
174 | 174 | |
175 | 175 | /** |
176 | 176 | * Get the widget settings |
@@ -138,20 +138,20 @@ discard block |
||
138 | 138 | } |
139 | 139 | |
140 | 140 | /** |
141 | - * Uninstall all traces of GravityView |
|
142 | - * |
|
143 | - * Note: method is public because parent method is public |
|
144 | - * |
|
141 | + * Uninstall all traces of GravityView |
|
142 | + * |
|
143 | + * Note: method is public because parent method is public |
|
144 | + * |
|
145 | 145 | * @return bool |
146 | 146 | */ |
147 | 147 | public function uninstall() { |
148 | 148 | gravityview()->plugin->uninstall(); |
149 | 149 | |
150 | 150 | /** |
151 | - * Set the path so that Gravity Forms can de-activate GravityView |
|
152 | - * @see GFAddOn::uninstall_addon |
|
153 | - * @uses deactivate_plugins() |
|
154 | - */ |
|
151 | + * Set the path so that Gravity Forms can de-activate GravityView |
|
152 | + * @see GFAddOn::uninstall_addon |
|
153 | + * @uses deactivate_plugins() |
|
154 | + */ |
|
155 | 155 | $this->_path = GRAVITYVIEW_FILE; |
156 | 156 | |
157 | 157 | return true; |
@@ -181,42 +181,42 @@ discard block |
||
181 | 181 | } |
182 | 182 | |
183 | 183 | /** |
184 | - * Get an array of reasons why the plugin might be uninstalled |
|
185 | - * |
|
186 | - * @since 1.17.5 |
|
187 | - * |
|
184 | + * Get an array of reasons why the plugin might be uninstalled |
|
185 | + * |
|
186 | + * @since 1.17.5 |
|
187 | + * |
|
188 | 188 | * @return array Array of reasons with the label and followup questions for each uninstall reason |
189 | 189 | */ |
190 | 190 | private function get_uninstall_reasons() { |
191 | 191 | $reasons = array( |
192 | 192 | 'will-continue' => array( |
193 | - 'label' => esc_html__( 'I am going to continue using GravityView', 'gravityview' ), |
|
194 | - ), |
|
193 | + 'label' => esc_html__( 'I am going to continue using GravityView', 'gravityview' ), |
|
194 | + ), |
|
195 | 195 | 'no-longer-need' => array( |
196 | - 'label' => esc_html__( 'I no longer need GravityView', 'gravityview' ), |
|
197 | - ), |
|
196 | + 'label' => esc_html__( 'I no longer need GravityView', 'gravityview' ), |
|
197 | + ), |
|
198 | 198 | 'doesnt-work' => array( |
199 | - 'label' => esc_html__( 'The plugin doesn\'t work', 'gravityview' ), |
|
200 | - ), |
|
199 | + 'label' => esc_html__( 'The plugin doesn\'t work', 'gravityview' ), |
|
200 | + ), |
|
201 | 201 | 'found-other' => array( |
202 | - 'label' => esc_html__( 'I found a better plugin', 'gravityview' ), |
|
203 | - 'followup' => esc_attr__( 'What plugin you are using, and why?', 'gravityview' ), |
|
204 | - ), |
|
202 | + 'label' => esc_html__( 'I found a better plugin', 'gravityview' ), |
|
203 | + 'followup' => esc_attr__( 'What plugin you are using, and why?', 'gravityview' ), |
|
204 | + ), |
|
205 | 205 | 'other' => array( |
206 | - 'label' => esc_html__( 'Other', 'gravityview' ), |
|
207 | - ), |
|
206 | + 'label' => esc_html__( 'Other', 'gravityview' ), |
|
207 | + ), |
|
208 | 208 | ); |
209 | 209 | |
210 | 210 | shuffle( $reasons ); |
211 | 211 | |
212 | 212 | return $reasons; |
213 | - } |
|
213 | + } |
|
214 | 214 | |
215 | 215 | /** |
216 | - * Display a feedback form when the plugin is uninstalled |
|
217 | - * |
|
218 | - * @since 1.17.5 |
|
219 | - * |
|
216 | + * Display a feedback form when the plugin is uninstalled |
|
217 | + * |
|
218 | + * @since 1.17.5 |
|
219 | + * |
|
220 | 220 | * @return string HTML of the uninstallation form |
221 | 221 | */ |
222 | 222 | public function uninstall_form() { |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | <h2><?php esc_html_e( 'Why did you uninstall GravityView?', 'gravityview' ); ?></h2> |
297 | 297 | <ul> |
298 | 298 | <?php |
299 | - $reasons = $this->get_uninstall_reasons(); |
|
299 | + $reasons = $this->get_uninstall_reasons(); |
|
300 | 300 | foreach ( $reasons as $reason ) { |
301 | 301 | printf( '<li><label><input name="reason" type="radio" value="other" data-followup="%s"> %s</label></li>', Utils::get( $reason, 'followup' ), Utils::get( $reason, 'label' ) ); |
302 | 302 | } |
@@ -390,12 +390,12 @@ discard block |
||
390 | 390 | } |
391 | 391 | |
392 | 392 | public function app_settings_tab() { |
393 | - parent::app_settings_tab(); |
|
393 | + parent::app_settings_tab(); |
|
394 | 394 | |
395 | 395 | if ( $this->maybe_uninstall() ) { |
396 | - echo $this->uninstall_form(); |
|
396 | + echo $this->uninstall_form(); |
|
397 | 397 | } |
398 | - } |
|
398 | + } |
|
399 | 399 | |
400 | 400 | /** |
401 | 401 | * The Settings title |
@@ -480,7 +480,7 @@ discard block |
||
480 | 480 | * @return array The settings. |
481 | 481 | */ |
482 | 482 | public function all() { |
483 | - return wp_parse_args( get_option( 'gravityformsaddon_' . $this->_slug . '_app_settings', array() ), $this->defaults() ); |
|
483 | + return wp_parse_args( get_option( 'gravityformsaddon_' . $this->_slug . '_app_settings', array() ), $this->defaults() ); |
|
484 | 484 | } |
485 | 485 | |
486 | 486 | /** |
@@ -549,8 +549,8 @@ discard block |
||
549 | 549 | type="' . $field['type'] . '" |
550 | 550 | name="' . esc_attr( $name ) . '" |
551 | 551 | value="' . $value . '" ' . |
552 | - implode( ' ', $attributes ) . |
|
553 | - ' />'; |
|
552 | + implode( ' ', $attributes ) . |
|
553 | + ' />'; |
|
554 | 554 | |
555 | 555 | if ( $echo ) { |
556 | 556 | echo $html; |
@@ -577,7 +577,7 @@ discard block |
||
577 | 577 | $license_key = $this->get( 'license_key' ); |
578 | 578 | if( '' === $license_key ) { |
579 | 579 | $license_status = 'inactive'; |
580 | - } |
|
580 | + } |
|
581 | 581 | $license_id = empty( $license_key ) ? 'license' : $license_key; |
582 | 582 | |
583 | 583 | $message = esc_html__( 'Your GravityView license %s. This means you’re missing out on updates and support! %sActivate your license%s or %sget a license here%s.', 'gravityview' ); |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | $update_below = false; |
593 | 593 | $primary_button_link = admin_url( 'edit.php?post_type=gravityview&page=gravityview_settings' ); |
594 | 594 | |
595 | - switch ( $license_status ) { |
|
595 | + switch ( $license_status ) { |
|
596 | 596 | /** @since 1.17 */ |
597 | 597 | case 'expired': |
598 | 598 | $title = __( 'Expired License', 'gravityview' ); |
@@ -648,12 +648,12 @@ discard block |
||
648 | 648 | } |
649 | 649 | |
650 | 650 | /** |
651 | - * Add tooltip script to app settings page. Not enqueued by Gravity Forms for some reason. |
|
652 | - * |
|
653 | - * @since 1.21.5 |
|
654 | - * |
|
655 | - * @see GFAddOn::scripts() |
|
656 | - * |
|
651 | + * Add tooltip script to app settings page. Not enqueued by Gravity Forms for some reason. |
|
652 | + * |
|
653 | + * @since 1.21.5 |
|
654 | + * |
|
655 | + * @see GFAddOn::scripts() |
|
656 | + * |
|
657 | 657 | * @return array Array of scripts |
658 | 658 | */ |
659 | 659 | public function scripts() { |
@@ -662,10 +662,10 @@ discard block |
||
662 | 662 | $scripts[] = array( |
663 | 663 | 'handle' => 'gform_tooltip_init', |
664 | 664 | 'enqueue' => array( |
665 | - array( |
|
666 | - 'admin_page' => array( 'app_settings' ) |
|
667 | - ) |
|
668 | - ) |
|
665 | + array( |
|
666 | + 'admin_page' => array( 'app_settings' ) |
|
667 | + ) |
|
668 | + ) |
|
669 | 669 | ); |
670 | 670 | |
671 | 671 | return $scripts; |
@@ -683,10 +683,10 @@ discard block |
||
683 | 683 | 'src' => plugins_url( 'assets/css/admin-settings.css', GRAVITYVIEW_FILE ), |
684 | 684 | 'version' => Plugin::$version, |
685 | 685 | 'deps' => array( |
686 | - 'gform_admin', |
|
686 | + 'gform_admin', |
|
687 | 687 | 'gaddon_form_settings_css', |
688 | - 'gform_tooltip', |
|
689 | - 'gform_font_awesome', |
|
688 | + 'gform_tooltip', |
|
689 | + 'gform_font_awesome', |
|
690 | 690 | ), |
691 | 691 | 'enqueue' => array( |
692 | 692 | array( 'admin_page' => array( |
@@ -849,7 +849,7 @@ discard block |
||
849 | 849 | array( |
850 | 850 | 'label' => _x( 'Show me beta versions if they are available.', 'gravityview' ), |
851 | 851 | 'value' => '1', |
852 | - 'name' => 'beta', |
|
852 | + 'name' => 'beta', |
|
853 | 853 | ), |
854 | 854 | ), |
855 | 855 | 'description' => __( 'You will have early access to the latest GravityView features and improvements. There may be bugs! If you encounter an issue, help make GravityView better by reporting it!', 'gravityview' ), |
@@ -887,38 +887,38 @@ discard block |
||
887 | 887 | |
888 | 888 | if ( empty( $field['disabled'] ) ) { |
889 | 889 | unset( $field['disabled'] ); |
890 | - } |
|
890 | + } |
|
891 | 891 | } |
892 | 892 | |
893 | - $sections = array( |
|
894 | - array( |
|
895 | - 'description' => sprintf( '<span class="version-info description">%s</span>', sprintf( __( 'You are running GravityView version %s', 'gravityview' ), Plugin::$version ) ), |
|
896 | - 'fields' => $fields, |
|
897 | - ) |
|
898 | - ); |
|
893 | + $sections = array( |
|
894 | + array( |
|
895 | + 'description' => sprintf( '<span class="version-info description">%s</span>', sprintf( __( 'You are running GravityView version %s', 'gravityview' ), Plugin::$version ) ), |
|
896 | + 'fields' => $fields, |
|
897 | + ) |
|
898 | + ); |
|
899 | 899 | |
900 | - // custom 'update settings' button |
|
901 | - $button = array( |
|
902 | - 'class' => 'button button-primary button-hero', |
|
903 | - 'type' => 'save', |
|
904 | - ); |
|
900 | + // custom 'update settings' button |
|
901 | + $button = array( |
|
902 | + 'class' => 'button button-primary button-hero', |
|
903 | + 'type' => 'save', |
|
904 | + ); |
|
905 | 905 | |
906 | 906 | if ( $disabled_attribute ) { |
907 | 907 | $button['disabled'] = $disabled_attribute; |
908 | 908 | } |
909 | 909 | |
910 | - /** |
|
911 | - * @filter `gravityview/settings/extension/sections` Modify the GravityView settings page |
|
912 | - * Extensions can tap in here to insert their own section and settings. |
|
913 | - * <code> |
|
914 | - * $sections[] = array( |
|
915 | - * 'title' => __( 'GravityView My Extension Settings', 'gravityview' ), |
|
916 | - * 'fields' => $settings, |
|
917 | - * ); |
|
918 | - * </code> |
|
919 | - * @param array $extension_settings Empty array, ready for extension settings! |
|
920 | - */ |
|
921 | - $extension_sections = apply_filters( 'gravityview/settings/extension/sections', array() ); |
|
910 | + /** |
|
911 | + * @filter `gravityview/settings/extension/sections` Modify the GravityView settings page |
|
912 | + * Extensions can tap in here to insert their own section and settings. |
|
913 | + * <code> |
|
914 | + * $sections[] = array( |
|
915 | + * 'title' => __( 'GravityView My Extension Settings', 'gravityview' ), |
|
916 | + * 'fields' => $settings, |
|
917 | + * ); |
|
918 | + * </code> |
|
919 | + * @param array $extension_settings Empty array, ready for extension settings! |
|
920 | + */ |
|
921 | + $extension_sections = apply_filters( 'gravityview/settings/extension/sections', array() ); |
|
922 | 922 | |
923 | 923 | // If there are extensions, add a section for them |
924 | 924 | if ( ! empty( $extension_sections ) ) { |
@@ -931,13 +931,13 @@ discard block |
||
931 | 931 | } |
932 | 932 | } |
933 | 933 | |
934 | - $k = count( $extension_sections ) - 1 ; |
|
935 | - $extension_sections[ $k ]['fields'][] = $button; |
|
934 | + $k = count( $extension_sections ) - 1 ; |
|
935 | + $extension_sections[ $k ]['fields'][] = $button; |
|
936 | 936 | $sections = array_merge( $sections, $extension_sections ); |
937 | 937 | } else { |
938 | - // add the 'update settings' button to the general section |
|
939 | - $sections[0]['fields'][] = $button; |
|
940 | - } |
|
938 | + // add the 'update settings' button to the general section |
|
939 | + $sections[0]['fields'][] = $button; |
|
940 | + } |
|
941 | 941 | |
942 | 942 | return $sections; |
943 | 943 | } |
@@ -991,9 +991,9 @@ discard block |
||
991 | 991 | */ |
992 | 992 | protected function settings_edd_license( $field, $echo = true ) { |
993 | 993 | |
994 | - if ( defined( 'GRAVITYVIEW_LICENSE_KEY' ) && GRAVITYVIEW_LICENSE_KEY ) { |
|
995 | - $field['input_type'] = 'password'; |
|
996 | - } |
|
994 | + if ( defined( 'GRAVITYVIEW_LICENSE_KEY' ) && GRAVITYVIEW_LICENSE_KEY ) { |
|
995 | + $field['input_type'] = 'password'; |
|
996 | + } |
|
997 | 997 | |
998 | 998 | $text = $this->settings_text( $field, false ); |
999 | 999 | |
@@ -1036,19 +1036,19 @@ discard block |
||
1036 | 1036 | } |
1037 | 1037 | |
1038 | 1038 | /** |
1039 | - * Keep GravityView styling for `$field['description']`, even though Gravity Forms added support for it |
|
1040 | - * |
|
1041 | - * Converts `$field['description']` to `$field['gv_description']` |
|
1042 | - * Converts `$field['subtitle']` to `$field['description']` |
|
1043 | - * |
|
1044 | - * @see \GV\Addon_Settings::single_setting_label Converts `gv_description` back to `description` |
|
1045 | - * @see http://share.gravityview.co/P28uGp/2OIRKxog for image that shows subtitle vs description |
|
1046 | - * |
|
1047 | - * @since 1.21.5.2 |
|
1048 | - * |
|
1039 | + * Keep GravityView styling for `$field['description']`, even though Gravity Forms added support for it |
|
1040 | + * |
|
1041 | + * Converts `$field['description']` to `$field['gv_description']` |
|
1042 | + * Converts `$field['subtitle']` to `$field['description']` |
|
1043 | + * |
|
1044 | + * @see \GV\Addon_Settings::single_setting_label Converts `gv_description` back to `description` |
|
1045 | + * @see http://share.gravityview.co/P28uGp/2OIRKxog for image that shows subtitle vs description |
|
1046 | + * |
|
1047 | + * @since 1.21.5.2 |
|
1048 | + * |
|
1049 | 1049 | * @param array $field |
1050 | - * |
|
1051 | - * @return void |
|
1050 | + * |
|
1051 | + * @return void |
|
1052 | 1052 | */ |
1053 | 1053 | public function single_setting_row( $field ) { |
1054 | 1054 | $field['gv_description'] = Utils::get( $field, 'description' ); |
@@ -244,13 +244,13 @@ |
||
244 | 244 | $this->_remote_update_url, |
245 | 245 | $this->_path, |
246 | 246 | array( |
247 | - 'version' => $this->_version, // current version number |
|
248 | - 'license' => $license['license'], |
|
249 | - 'item_id' => $this->_item_id, // The ID of the download on _remote_update_url |
|
250 | - 'item_name' => $this->_title, // name of this plugin |
|
251 | - 'author' => strip_tags( $this->_author ) // author of this plugin |
|
252 | - ) |
|
253 | - ); |
|
247 | + 'version' => $this->_version, // current version number |
|
248 | + 'license' => $license['license'], |
|
249 | + 'item_id' => $this->_item_id, // The ID of the download on _remote_update_url |
|
250 | + 'item_name' => $this->_title, // name of this plugin |
|
251 | + 'author' => strip_tags( $this->_author ) // author of this plugin |
|
252 | + ) |
|
253 | + ); |
|
254 | 254 | } |
255 | 255 | |
256 | 256 | /** |
@@ -144,11 +144,11 @@ discard block |
||
144 | 144 | do_action( 'gravityview/template/list/body/before', $context ); |
145 | 145 | |
146 | 146 | /** |
147 | - * @action `gravityview_list_body_before` Inside the `tbody`, before any rows are rendered. Can be used to insert additional rows. |
|
148 | - * @deprecated Use `gravityview/template/list/body/before` |
|
149 | - * @since 1.0.7 |
|
150 | - * @param GravityView_View $gravityview_view Current GravityView_View object. |
|
151 | - */ |
|
147 | + * @action `gravityview_list_body_before` Inside the `tbody`, before any rows are rendered. Can be used to insert additional rows. |
|
148 | + * @deprecated Use `gravityview/template/list/body/before` |
|
149 | + * @since 1.0.7 |
|
150 | + * @param GravityView_View $gravityview_view Current GravityView_View object. |
|
151 | + */ |
|
152 | 152 | do_action( 'gravityview_list_body_before', \GravityView_View::getInstance() /** ugh! */ ); |
153 | 153 | } |
154 | 154 | |
@@ -170,11 +170,11 @@ discard block |
||
170 | 170 | do_action( 'gravityview/template/list/body/after', $context ); |
171 | 171 | |
172 | 172 | /** |
173 | - * @action `gravityview_list_body_after` Inside the `tbody`, after any rows are rendered. Can be used to insert additional rows. |
|
174 | - * @deprecated Use `gravityview/template/list/body/after` |
|
175 | - * @since 1.0.7 |
|
176 | - * @param GravityView_View $gravityview_view Current GravityView_View object. |
|
177 | - */ |
|
173 | + * @action `gravityview_list_body_after` Inside the `tbody`, after any rows are rendered. Can be used to insert additional rows. |
|
174 | + * @deprecated Use `gravityview/template/list/body/after` |
|
175 | + * @since 1.0.7 |
|
176 | + * @param GravityView_View $gravityview_view Current GravityView_View object. |
|
177 | + */ |
|
178 | 178 | do_action( 'gravityview_list_body_after', \GravityView_View::getInstance() /** ugh! */ ); |
179 | 179 | } |
180 | 180 | |
@@ -205,11 +205,11 @@ discard block |
||
205 | 205 | $zone = str_replace( '/', '_', $zone ); |
206 | 206 | |
207 | 207 | /** |
208 | - * @action `gravityview_list_entry_$zone_before` Inside the `entry`, before any rows are rendered. Can be used to insert additional rows. |
|
209 | - * @deprecated Use `gravityview/template/list/entry/$zone/before` |
|
210 | - * @since 1.0.7 |
|
211 | - * @param GravityView_View $gravityview_view Current GravityView_View object. |
|
212 | - */ |
|
208 | + * @action `gravityview_list_entry_$zone_before` Inside the `entry`, before any rows are rendered. Can be used to insert additional rows. |
|
209 | + * @deprecated Use `gravityview/template/list/entry/$zone/before` |
|
210 | + * @since 1.0.7 |
|
211 | + * @param GravityView_View $gravityview_view Current GravityView_View object. |
|
212 | + */ |
|
213 | 213 | do_action( sprintf( 'gravityview_list_entry%sbefore', $zone ), $entry->as_entry(), \GravityView_View::getInstance() /** ugh! */ ); |
214 | 214 | } |
215 | 215 | |
@@ -240,11 +240,11 @@ discard block |
||
240 | 240 | $zone = str_replace( '/', '_', $zone ); |
241 | 241 | |
242 | 242 | /** |
243 | - * @action `gravityview_list_entry_$zone_after` Inside the `entry`, after any rows are rendered. Can be used to insert additional rows. |
|
244 | - * @deprecated Use `gravityview/template/list/entry/after` |
|
245 | - * @since 1.0.7 |
|
246 | - * @param GravityView_View $gravityview_view Current GravityView_View object. |
|
247 | - */ |
|
243 | + * @action `gravityview_list_entry_$zone_after` Inside the `entry`, after any rows are rendered. Can be used to insert additional rows. |
|
244 | + * @deprecated Use `gravityview/template/list/entry/after` |
|
245 | + * @since 1.0.7 |
|
246 | + * @param GravityView_View $gravityview_view Current GravityView_View object. |
|
247 | + */ |
|
248 | 248 | do_action( sprintf( 'gravityview_list_entry%safter', $zone ), $entry->as_entry(), \GravityView_View::getInstance() /** ugh! */ ); |
249 | 249 | } |
250 | 250 | } |
@@ -112,10 +112,10 @@ |
||
112 | 112 | */ |
113 | 113 | public function is_edit_entry() { |
114 | 114 | /** |
115 | - * @filter `gravityview_is_edit_entry` Whether we're currently on the Edit Entry screen \n |
|
116 | - * The Edit Entry functionality overrides this value. |
|
117 | - * @param boolean $is_edit_entry |
|
118 | - */ |
|
115 | + * @filter `gravityview_is_edit_entry` Whether we're currently on the Edit Entry screen \n |
|
116 | + * The Edit Entry functionality overrides this value. |
|
117 | + * @param boolean $is_edit_entry |
|
118 | + */ |
|
119 | 119 | if ( ( $entry = $this->is_entry() ) && apply_filters( 'gravityview_is_edit_entry', false ) ) { |
120 | 120 | return $entry; |
121 | 121 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | 'author' => self::author, |
97 | 97 | 'language' => get_locale(), |
98 | 98 | 'url' => home_url(), |
99 | - 'beta' => $this->settings->get( 'beta' ), |
|
99 | + 'beta' => $this->settings->get( 'beta' ), |
|
100 | 100 | ); |
101 | 101 | |
102 | 102 | if ( ! empty( $action ) ) { |
@@ -463,7 +463,7 @@ discard block |
||
463 | 463 | private function license_call_update_settings( $license_data, $data ) { |
464 | 464 | $settings = array(); |
465 | 465 | |
466 | - $settings['license_key'] = $license_data->license_key = trim( $data['license'] ); |
|
466 | + $settings['license_key'] = $license_data->license_key = trim( $data['license'] ); |
|
467 | 467 | $settings['license_key_status'] = $license_data->license; |
468 | 468 | $settings['license_key_response'] = (array)$license_data; |
469 | 469 | |
@@ -597,14 +597,14 @@ discard block |
||
597 | 597 | // Call the custom API. |
598 | 598 | $response = wp_remote_post( self::url, array( |
599 | 599 | 'timeout' => 15, |
600 | - 'sslverify' => false, |
|
601 | - 'body' => array( |
|
602 | - 'edd_action' => 'check_license', |
|
603 | - 'license' => trim( $this->settings->get( 'license_key' ) ), |
|
604 | - 'item_name' => self::name, |
|
605 | - 'url' => home_url(), |
|
606 | - 'site_data' => $this->get_site_data(), |
|
607 | - ), |
|
600 | + 'sslverify' => false, |
|
601 | + 'body' => array( |
|
602 | + 'edd_action' => 'check_license', |
|
603 | + 'license' => trim( $this->settings->get( 'license_key' ) ), |
|
604 | + 'item_name' => self::name, |
|
605 | + 'url' => home_url(), |
|
606 | + 'site_data' => $this->get_site_data(), |
|
607 | + ), |
|
608 | 608 | )); |
609 | 609 | |
610 | 610 | // make sure the response came back okay |
@@ -237,26 +237,26 @@ |
||
237 | 237 | |
238 | 238 | /** DEBUG */ |
239 | 239 | |
240 | - /** |
|
241 | - * Logs messages using Gravity Forms logging add-on |
|
242 | - * @param string $message log message |
|
243 | - * @param mixed $data Additional data to display |
|
240 | + /** |
|
241 | + * Logs messages using Gravity Forms logging add-on |
|
242 | + * @param string $message log message |
|
243 | + * @param mixed $data Additional data to display |
|
244 | 244 | * @deprecated use gravityview()->log |
245 | - * @return void |
|
246 | - */ |
|
247 | - public static function log_debug( $message, $data = null ){ |
|
245 | + * @return void |
|
246 | + */ |
|
247 | + public static function log_debug( $message, $data = null ){ |
|
248 | 248 | gravityview()->log->notice( '\GravityView_Plugin is deprecated. Use \GV\Plugin instead.' ); |
249 | 249 | gravityview()->log->debug( $message, $data ); |
250 | - } |
|
250 | + } |
|
251 | 251 | |
252 | - /** |
|
253 | - * Logs messages using Gravity Forms logging add-on |
|
254 | - * @param string $message log message |
|
252 | + /** |
|
253 | + * Logs messages using Gravity Forms logging add-on |
|
254 | + * @param string $message log message |
|
255 | 255 | * @deprecated use gravityview()->log |
256 | - * @return void |
|
257 | - */ |
|
258 | - public static function log_error( $message, $data = null ){ |
|
256 | + * @return void |
|
257 | + */ |
|
258 | + public static function log_error( $message, $data = null ){ |
|
259 | 259 | gravityview()->log->notice( '\GravityView_Plugin is deprecated. Use \GV\Plugin instead.' ); |
260 | 260 | gravityview()->log->error( $message, $data ); |
261 | - } |
|
261 | + } |
|
262 | 262 | } // end class GravityView_Plugin |