Skip to content

Commit

Permalink
Fix PHP Notice on PublishPress statuses admin notices display, settin…
Browse files Browse the repository at this point in the history
…gs caption
  • Loading branch information
agapetry committed Jan 4, 2024
1 parent 8f09399 commit aed0a31
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions statuses-intro.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ function publishpress_statuses_info() {
$statuses_info = publishpress_statuses_info();

if (empty($statuses_info['statuses_installed'])) {
add_thickbox();
add_action(
'wp_enqueue_scripts',
function() {
add_thickbox();
}
);
}
}
}
Expand All @@ -86,7 +91,12 @@ function publishpress_statuses_info() {
$statuses_info = publishpress_statuses_info();

if (empty($statuses_info['statuses_installed'])) {
add_thickbox();
add_action(
'wp_enqueue_scripts',
function() {
add_thickbox();
}
);
}

add_action(
Expand Down

0 comments on commit aed0a31

Please sign in to comment.