File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ private static function output_admin_notices() {
5050
5151 // display admin notice and abort if no password has been set
5252 add_action ( 'admin_notices ' , static function () {
53+
5354 if ( ! Settings::has_eval_terminal_password () ) :
55+
5456 ?>
5557 <div class="update-nag">
5658 <p><?php printf (
@@ -61,8 +63,10 @@ private static function output_admin_notices() {
6163 '</a> '
6264 ); ?> </p>
6365 </div>
64- <?php
66+ <?php
67+
6568 endif ;
69+
6670 }, -1000 );
6771 }
6872
@@ -75,12 +79,14 @@ private static function output_admin_notices() {
7579 private static function add_plugin_page_row_action_links () {
7680
7781 add_filter ( 'plugin_action_links_wp-php-console/wp-php-console.php ' , static function ( $ actions ) {
82+
7883 return array_merge ( [
7984 '<a href=" ' . esc_url ( admin_url () ) . '"> ' . esc_html__ ( 'Settings ' , 'wp-php-console ' ) . '</a> ' ,
8085 '<a href=" ' . esc_url ( Plugin::get_project_page_url () ) . '"> ' . esc_html__ ( 'GitHub ' , 'wp-php-console ' ) . '</a> ' ,
8186 '<a href=" ' . esc_url ( Plugin::get_support_page_url () ) . '"> ' . esc_html__ ( 'Support ' , 'wp-php-console ' ) . '</a> ' ,
8287 '<a href=" ' . esc_url ( Plugin::get_reviews_page_url () ) . '"> ' . esc_html__ ( 'Review ' , 'wp-php-console ' ) . '</a> ' ,
8388 ], $ actions );
89+
8490 } );
8591 }
8692
Original file line number Diff line number Diff line change 2020defined ( 'ABSPATH ' ) or exit;
2121
2222/**
23- * WP PHP Console settings page.
23+ * WP PHP Console settings page handler .
2424 *
2525 * @since 1.6.0
2626 */
You can’t perform that action at this time.
0 commit comments