v1.2.7
This commit is contained in:
parent
6385b02633
commit
82a55db373
1 changed files with 48 additions and 14 deletions
|
|
@ -6,6 +6,10 @@
|
|||
* @package Robotstxt_Hello
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'Robotstxt_Hello_Plugin' ) ) {
|
||||
/**
|
||||
* Handles registration of the Hello menu, page and notices.
|
||||
|
|
@ -176,6 +180,8 @@ if ( ! class_exists( 'Robotstxt_Hello_Plugin' ) ) {
|
|||
* for users who have not dismissed it yet.
|
||||
*
|
||||
* @since 1.2.4
|
||||
* @since 1.2.7 Checks the dismissal flag first, so users who dismissed
|
||||
* the notice never trigger the plugin-list scan.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
|
@ -190,7 +196,7 @@ if ( ! class_exists( 'Robotstxt_Hello_Plugin' ) ) {
|
|||
return;
|
||||
}
|
||||
|
||||
if ( $this->is_manager_active() || $this->is_notice_dismissed() ) {
|
||||
if ( $this->is_notice_dismissed() || $this->is_manager_active() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -225,6 +231,8 @@ if ( ! class_exists( 'Robotstxt_Hello_Plugin' ) ) {
|
|||
* Enqueues the dismissal script on the plugins list page.
|
||||
*
|
||||
* @since 1.2.4
|
||||
* @since 1.2.7 Checks the dismissal flag first, so users who dismissed
|
||||
* the notice never trigger the plugin-list scan.
|
||||
*
|
||||
* @param string $hook_suffix Current admin page hook suffix.
|
||||
* @return void
|
||||
|
|
@ -234,7 +242,7 @@ if ( ! class_exists( 'Robotstxt_Hello_Plugin' ) ) {
|
|||
return;
|
||||
}
|
||||
|
||||
if ( $this->is_manager_active() || $this->is_notice_dismissed() ) {
|
||||
if ( $this->is_notice_dismissed() || $this->is_manager_active() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue