Skip to content

Commit

Permalink
update content
Browse files Browse the repository at this point in the history
  • Loading branch information
Niloys7 committed Dec 5, 2022
1 parent 570b795 commit d6c92a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion class-remote-notification-client.php
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ protected function get_notice_class( $style ) {
*/
protected function create_admin_notice( $contents, $class, $dismiss ) {?>
<div class="<?php echo esc_attr( $class ); ?>">
<p><?php echo html_entity_decode( $contents ); ?></p>
<?php echo html_entity_decode( $contents ); ?>
<button type="button" data-notice_id="<?php echo esc_attr( $dismiss ); ?>" class="rn-dismiss-btn notice-dismiss" title="<?php _e( 'Dismiss notification', 'remote-notifications' );?>"><span class="screen-reader-text">Dismiss this notice.</span></button>

</div>
Expand Down Expand Up @@ -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' ) );
}

Expand Down
2 changes: 1 addition & 1 deletion js/ran.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});


Expand Down
2 changes: 1 addition & 1 deletion ran-client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
}

0 comments on commit d6c92a8

Please sign in to comment.