Hi,
Sorry to hear that. But the message should disappear as soon as you click the button.
I think your site cannot send AJAX request for some reason, most probably due to a JS error/conflict. Did you check your browser console? Does it show any error?
Hi Nazmul
This is nothing to do with my browser bacause it happens on Firefox, Chrome and my iPad.
How can I suppress this message?
Please advise.
Hi,
I didn’t mean it’s your browser. What I meant is to check if there is any error shown in browser console. As I think there is definitely an error in your current setup.
I just tested with a fresh installation of WordPress, and it works fine.
Thank.
I don’t know what you mean by browser console or how to check it?
Please advise.
I created a ticket but have received no reply. The following code in the image-sizes.php file probably causes this message:
/**
* Show admin notices
*
* @since 1.1
*/
public function admin_notices() {
if( get_option( 'imgsz_survey' ) != 1 ) :
?>
<div class="notice notice-success is-dismissible imgsz-survey-notice survey-notice">
<p>
<p><strong><?php _e( 'Help us improve your experience', 'image-sizes' ); ?></strong></p>
<span><?php _e( 'We want to know what types of sites use our plugin. So that we can improve <strong>Image Sizes</strong> accordingly. Help us with your site URL and a few basic information. It doesn\'t include your password or any kind of sercret data. Would you like to help us?', 'image-sizes' ); ?></span>
</p>
<p>
<button class="button button-primary imgsz-survey" data-participate="1"><?php _e( 'Okay! Don\'t bother me again.', 'image-sizes' ); ?></button>
</p>
</div>
<?php
endif;
}
/**
How should I change this code to prevent the message?
Thanks
The fact that your plugin triggers a message in the admin, which cannot be suppressed, is not in compliance with WordPress rules.
Unless I receive a satisfactory response from you within 48 hours, I will report your non-compliance to WordPress.