@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | // If doing ajax, get outta here. |
| 129 | - if ( ! is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX && 'update-plugin' !== Utils::_POST('action') ) ) { |
|
| 129 | + if ( ! is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX && 'update-plugin' !== Utils::_POST('action') ) ) { |
|
| 130 | 130 | return; |
| 131 | 131 | } |
| 132 | 132 | |
@@ -191,7 +191,8 @@ discard block |
||
| 191 | 191 | if ( empty( $license_data ) ) { |
| 192 | 192 | if ( $is_ajax ) { |
| 193 | 193 | exit( json_encode( array() ) ); |
| 194 | - } else { // Non-ajax call |
|
| 194 | + } else { |
|
| 195 | +// Non-ajax call |
|
| 195 | 196 | return json_encode( array() ); |
| 196 | 197 | } |
| 197 | 198 | } |
@@ -226,7 +227,8 @@ discard block |
||
| 226 | 227 | |
| 227 | 228 | if ( $is_ajax ) { |
| 228 | 229 | exit( $json ); |
| 229 | - } else { // Non-ajax call |
|
| 230 | + } else { |
|
| 231 | +// Non-ajax call |
|
| 230 | 232 | return ( Utils::_GET( 'format', Utils::get( $data, 'format' ) ) === 'object' ) ? $license_data : $json; |
| 231 | 233 | } |
| 232 | 234 | } |
@@ -291,7 +291,7 @@ |
||
| 291 | 291 | public function settings() { |
| 292 | 292 | |
| 293 | 293 | // If doing ajax, get outta here. |
| 294 | - if ( ! is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX && 'update-plugin' !== Utils::_POST('action') ) ) { |
|
| 294 | + if ( ! is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX && 'update-plugin' !== Utils::_POST('action') ) ) { |
|
| 295 | 295 | return; |
| 296 | 296 | } |
| 297 | 297 | |