This commit is contained in:
Javier Casares 2026-11-04 17:00:47 +00:00
commit 82a55db373

View file

@ -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;
}