Skip to content

Commit

Permalink
Merge pull request #353 from newfold-labs/hotfix/fix-issue
Browse files Browse the repository at this point in the history
Fix WP_Admin Issue
  • Loading branch information
officiallygod authored Nov 3, 2023
2 parents 23e9f69 + 2a662ca commit 594f721
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/Services/PluginService.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace NewfoldLabs\WP\Module\Onboarding\Services;

use NewfoldLabs\WP\Module\Onboarding\WP_ADMIN;
use NewfoldLabs\WP\Module\Onboarding\WP_Admin;
use NewfoldLabs\WP\Module\Onboarding\Data\Options;
use function NewfoldLabs\WP\ModuleLoader\container;
use NewfoldLabs\WP\Module\Installer\Services\PluginInstaller;
Expand Down Expand Up @@ -128,7 +128,7 @@ public static function configure_activation_transient() {
switch ( $pagenow ) {
case 'index.php':
// If the page is nfd-onboarding
if ( isset( $_GET['page'] ) && WP_ADMIN::$slug === \sanitize_text_field( $_GET['page'] ) ) {
if ( isset( $_GET['page'] ) && WP_Admin::$slug === \sanitize_text_field( $_GET['page'] ) ) {
if ( '1' !== get_transient( Options::get_option_name( 'filter_active_plugins' ) ) ) {
set_transient( Options::get_option_name( 'filter_active_plugins' ), '1', 20 * MINUTE_IN_SECONDS );
}
Expand Down

0 comments on commit 594f721

Please sign in to comment.