Skip to content

Commit 5e96d1f

Browse files
committed
wrong helper function calls
1 parent 75bc1a0 commit 5e96d1f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

class-setup.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
use Udb\Vars;
1313
use Udb\Helpers\Content_Helper;
14+
use Udb\Helpers\Screen_Helper;
1415

1516
/**
1617
* Class to setup Ultimate Dashboard plugin.
@@ -358,7 +359,7 @@ public function dismiss_review_notice() {
358359
/**
359360
* Show BFCM notice.
360361
*/
361-
public function bfcm_notice( $module ) {
362+
public function bfcm_notice() {
362363

363364
// Stop if PRO version is active.
364365
if ( udb_is_pro_active() ) {
@@ -372,11 +373,13 @@ public function bfcm_notice( $module ) {
372373

373374
global $pagenow;
374375

376+
$screen_helper = new Screen_Helper();
377+
375378
// Stop if we are not on the dashboard page.
376379
if ( $pagenow !== 'index.php' &&
377-
! $module->screen()->is_new_widget() &&
378-
! $module->screen()->is_edit_widget() &&
379-
! $module->screen()->is_widget_list() ) {
380+
! $screen_helper->is_new_widget() &&
381+
! $screen_helper->is_edit_widget() &&
382+
! $screen_helper->is_widget_list() ) {
380383
return;
381384
}
382385

0 commit comments

Comments
 (0)