Skip to content

Commit

Permalink
Remove the statuses message #1740
Browse files Browse the repository at this point in the history
  • Loading branch information
olatechpro committed Sep 3, 2024
1 parent c1c07d3 commit 274aefb
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions statuses-intro.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,41 +125,6 @@ function() {
}
);
}

add_action(
'all_admin_notices',
function() {
global $current_user;

$statuses_info = publishpress_statuses_info();

$settings_url = (current_user_can('manage_options')) ? admin_url('admin.php?page=pp-modules-settings') : '#';

echo "<div id='message' class='error pp-admin-notice'>";

if (!empty($statuses_info['statuses_installed'])) {
printf(
esc_html__('Custom statuses are disabled until you activate the %1$sPublishPress Statuses%2$s plugin. See %3$sPlanner > Settings%4$s for details.', 'publishpress'),
'<a href="' . esc_url($statuses_info['info_url']) . '">',
'</a>',
'<a href="' . esc_url($settings_url) . '">',
'</a>'
);
} else {
printf(
esc_html__('Custom statuses are disabled until you install the %1$sPublishPress Statuses%2$s plugin. See %3$sPlanner > Settings%4$s for details.', 'publishpress'),
'<a href="' . esc_url($statuses_info['info_url']) . '" class="thickbox">',
'</a>',
'<a href="' . esc_url($settings_url) . '">',
'</a>'
);
}

echo '</div>';

update_user_option($current_user->ID, 'publishpress_planner_statuses_notice_done', true);
}
);
}
}
}
Expand Down

0 comments on commit 274aefb

Please sign in to comment.