File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -49,19 +49,21 @@ public function __construct() {
4949 private static function output_admin_notices () {
5050
5151 // display admin notice and abort if no password has been set
52- add_action ( 'admin_notices ' , static function () {
52+ add_action ( 'all_admin_notices ' , static function () {
5353
5454 if ( ! Settings::has_eval_terminal_password () ) :
5555
5656 ?>
57- <div class="update-nag">
58- <p><?php printf (
59- /* translators: Placeholders: %1$s - WP PHP Console name, %2$s - opening HTML <a> link tag; %3$s closing HTML </a> link tag */
57+ <div class="notice notice-warning">
58+ <p>
59+ <?php printf (
60+ /* translators: Placeholders: %1$s - WP PHP Console name, %2$s - opening HTML <a> link tag; %3$s closing HTML </a> link tag */
6061 __ ( '%1$s: Please remember to %2$sset a password%3$s if you want to enable the terminal. ' , 'wp-php-console ' ),
6162 '<strong> ' . Plugin::NAME . '</strong> ' ,
62- '<a href=" ' . esc_url ( admin_url ( 'options-general.php?page=wp-php-console ' ) ) .'"> ' ,
63+ '<a href=" ' . esc_url ( admin_url ( 'options-general.php?page=wp_php_console ' ) ) .'"> ' ,
6364 '</a> '
64- ); ?> </p>
65+ ); ?>
66+ </p>
6567 </div>
6668 <?php
6769
You can’t perform that action at this time.
0 commit comments