| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for display error wrong name plugin learnpress |
| 4 |
*/ |
| 5 |
|
| 6 |
if ( ! defined( 'ABSPATH' ) ) { |
| 7 |
exit; // Exit if accessed directly |
| 8 |
} |
| 9 |
|
| 10 |
if ( ! isset( $data ) || ! isset( $data['check'] ) ) { |
| 11 |
return; |
| 12 |
} |
| 13 |
|
| 14 |
if ( ! is_wp_error( $data['check'] ) ) { |
| 15 |
return; |
| 16 |
} |
| 17 |
|
| 18 |
$message_error = $data['check'] instanceof WP_Error ? $data['check']->get_error_message() : 'Result do not match!'; |
| 19 |
?> |
| 20 |
|
| 21 |
<div class="lp-admin-notice notice notice-error"> |
| 22 |
<p> |
| 23 |
<?php echo sprintf( '%s %s', '<strong>wp_remote_get</strong>: ', $message_error ); ?> |
| 24 |
</p> |
| 25 |
</div> |
| 26 |
|