PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
← All changes | inc/admin/views/admin-notices/wp-remote.php +37 -37 4.3.8 → 4.4.8 View file →
@@ -1,37 +1,37 @@
1 -<?php
2 -/**
3 - * Template for display error wp_remote.
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 -/**
19 - * @var WP_Error $wp_error
20 - */
21 -$wp_error = $data['check'];
22 -$message_error = $wp_error->get_error_message();
23 -?>
24 -
25 -<div class="lp-admin-notice notice notice-error">
26 - <p>
27 - <?php
28 - echo sprintf(
29 - '%s %s. <a href="%s">%s</a>',
30 - '<strong>wp_remote_get</strong>: ',
31 - $message_error,
32 - admin_url( 'site-health.php' ),
33 - __( 'Check Site Health', 'learnpress' )
34 - );
35 - ?>
36 - </p>
37 -</div>
1 +<?php
2 +/**
3 + * Template for display error wp_remote.
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 +/**
19 + * @var WP_Error $wp_error
20 + */
21 +$wp_error = $data['check'];
22 +$message_error = $wp_error->get_error_message();
23 +?>
24 +
25 +<div class="lp-admin-notice notice notice-error">
26 + <p>
27 + <?php
28 + echo sprintf(
29 + '%s %s. <a href="%s">%s</a>',
30 + '<strong>wp_remote_get</strong>: ',
31 + $message_error,
32 + admin_url( 'site-health.php' ),
33 + __( 'Check Site Health', 'learnpress' )
34 + );
35 + ?>
36 + </p>
37 +</div>