Skip to content

Commit 7a64121

Browse files
committed
Fix link in password nag
1 parent d2e7b35 commit 7a64121

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/Admin.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)