@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | |
15 | 15 | namespace WP_PHP_Console; |
16 | 16 | |
17 | -defined( 'ABSPATH' ) or exit; |
|
17 | +defined('ABSPATH') or exit; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * WP PHP Console admin handler. |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | self::output_admin_notices(); |
36 | 36 | |
37 | 37 | // init settings page |
38 | - if ( ! defined( 'DOING_AJAX' ) ) { |
|
38 | + if ( ! defined('DOING_AJAX')) { |
|
39 | 39 | new Admin\SettingsPage(); |
40 | 40 | } |
41 | 41 | } |
@@ -49,18 +49,18 @@ discard block |
||
49 | 49 | private static function output_admin_notices() { |
50 | 50 | |
51 | 51 | // display admin notice and abort if no password has been set |
52 | - add_action( 'all_admin_notices', static function() { |
|
52 | + add_action('all_admin_notices', static function() { |
|
53 | 53 | |
54 | - if ( ! Settings::has_eval_terminal_password() ) : |
|
54 | + if ( ! Settings::has_eval_terminal_password()) : |
|
55 | 55 | |
56 | 56 | ?> |
57 | 57 | <div class="notice notice-warning"> |
58 | 58 | <p> |
59 | 59 | <?php printf( |
60 | 60 | /* translators: Placeholders: %1$s - WP PHP Console name, %2$s - opening HTML <a> link tag; %3$s closing HTML </a> link tag */ |
61 | - __( '%1$s: Please remember to %2$sset a password%3$s if you want to enable the terminal.', 'wp-php-console' ), |
|
62 | - '<strong>' . Plugin::NAME . '</strong>', |
|
63 | - '<a href="' . esc_url( admin_url( 'options-general.php?page=wp_php_console' ) ) .'">', |
|
61 | + __('%1$s: Please remember to %2$sset a password%3$s if you want to enable the terminal.', 'wp-php-console'), |
|
62 | + '<strong>'.Plugin::NAME.'</strong>', |
|
63 | + '<a href="'.esc_url(admin_url('options-general.php?page=wp_php_console')).'">', |
|
64 | 64 | '</a>' |
65 | 65 | ); ?> |
66 | 66 | </p> |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | |
70 | 70 | endif; |
71 | 71 | |
72 | - }, -1000 ); |
|
72 | + }, -1000); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | |
@@ -80,14 +80,14 @@ discard block |
||
80 | 80 | */ |
81 | 81 | private static function add_plugin_page_row_action_links() { |
82 | 82 | |
83 | - add_filter( 'plugin_action_links_wp-php-console/wp-php-console.php', static function( $actions ) { |
|
83 | + add_filter('plugin_action_links_wp-php-console/wp-php-console.php', static function($actions) { |
|
84 | 84 | |
85 | - return array_merge( [ |
|
86 | - '<a href="' . esc_url( admin_url() ) . '">' . esc_html__( 'Settings', 'wp-php-console' ) . '</a>', |
|
87 | - '<a href="' . esc_url( Plugin::get_project_page_url() ) . '">' . esc_html__( 'GitHub', 'wp-php-console' ) . '</a>', |
|
88 | - '<a href="' . esc_url( Plugin::get_support_page_url() ) . '">' . esc_html__( 'Support', 'wp-php-console' ) . '</a>', |
|
89 | - '<a href="' . esc_url( Plugin::get_reviews_page_url() ) . '">' . esc_html__( 'Review', 'wp-php-console' ) . '</a>', |
|
90 | - ], $actions ); |
|
85 | + return array_merge([ |
|
86 | + '<a href="'.esc_url(admin_url()).'">'.esc_html__('Settings', 'wp-php-console').'</a>', |
|
87 | + '<a href="'.esc_url(Plugin::get_project_page_url()).'">'.esc_html__('GitHub', 'wp-php-console').'</a>', |
|
88 | + '<a href="'.esc_url(Plugin::get_support_page_url()).'">'.esc_html__('Support', 'wp-php-console').'</a>', |
|
89 | + '<a href="'.esc_url(Plugin::get_reviews_page_url()).'">'.esc_html__('Review', 'wp-php-console').'</a>', |
|
90 | + ], $actions); |
|
91 | 91 | |
92 | 92 | } ); |
93 | 93 | } |