You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo'<small class="description">' . __( 'You may specify an IP address (e.g. 192.169.1.50), a range of addresses (192.168.*.*) or multiple addresses, comma separated (192.168.10.25,192.168.10.28) to grant access to eval terminal.', $this->plugin_name ) . '</small>';
243
+
240
244
}
241
245
242
246
/**
@@ -255,6 +259,7 @@ public function register_field() {
echo'<small class="description">' . __( 'Choose to register PC in the global namespace. Allows to write PC::debug($var, $tag) or PC::magic_tag($var) instructions in PHP to inspect $var in the JavaScript-console.', $this->plugin_name ) . '</small>';
262
+
258
263
}
259
264
260
265
/**
@@ -273,6 +278,7 @@ public function stack_field() {
echo'<small class="description">' . __( 'Choose to also see the call stack when PHP Console writes to the browser\'s JavaScript-console.', $this->plugin_name ) . '</small>';
281
+
276
282
}
277
283
278
284
/**
@@ -291,6 +297,7 @@ public function short_field() {
echo'<small class="description">' . __( 'Choose to shorten PHP Console error sources and traces paths in browser\'s JavaScript-console. Paths like /server/path/to/document/root/WP/wp-admin/admin.php:31 will be displayed as /W/wp-admin/admin.php:31', $this->plugin_name ) . '</small>';
300
+
294
301
}
295
302
296
303
/**
@@ -386,20 +393,13 @@ public function init() {
386
393
387
394
// Display admin notice and abort if no password
388
395
if ( ! $password ) {
389
-
add_action('admin_notices', function() {
390
-
?>
391
-
<div class="update-nag">
392
-
<?php_e( 'WP PHP Console plugin: Please enter a password in Settings / WP PHP Console for it to work.', $this->plugin_name ); ?>
<?phpprintf( __( 'WP PHP Console: remember to %1$s set a password %2$s if you want to enable terminal.', $this->plugin_name ), '<a href="' . $link .'">', '</a>' ); ?>
* Description: An implementation of PHP Console for WordPress. Easily debug and trace PHP errors and warnings from your Chrome dev tools console using a Google Chrome extension.
0 commit comments