diff --git a/class-remote-notification-client.php b/class-remote-notification-client.php index 057382f..89a0bdd 100644 --- a/class-remote-notification-client.php +++ b/class-remote-notification-client.php @@ -472,7 +472,7 @@ protected function get_notice_class( $style ) { */ protected function create_admin_notice( $contents, $class, $dismiss ) {?>
-

+
@@ -683,6 +683,8 @@ protected function remote_get_notification( $notification ) { $body = json_decode( $body ); if ( is_null( $body ) ) { + + return new WP_Error( 'json_decode_error', __( 'Cannot decode the response content', 'remote-notifications' ) ); } diff --git a/js/ran.js b/js/ran.js index be95e5c..af23fbb 100644 --- a/js/ran.js +++ b/js/ran.js @@ -29,7 +29,7 @@ notices: data.rdn_fetch, nonce: wpi_ran.ajax_nonce }, function (data) { - console.log(data); // Enable it for Debug + // console.log(data); // Enable it for Debug }); diff --git a/ran-client.php b/ran-client.php index 8b70f75..15a4b3d 100644 --- a/ran-client.php +++ b/ran-client.php @@ -8,5 +8,5 @@ require_once 'class-remote-notification-client.php'; if ( function_exists( 'wpi_rdnc_add_notification' ) ) { - wpi_rdnc_add_notification( 72, '30e3b659ed1aba30', 'https://wpinteractive.com' ); + wpi_rdnc_add_notification( 72, 'a9873a6e608e946e', 'https://www.codeixer.com' ); } \ No newline at end of file