@@ -62,10 +62,13 @@ public function __construct() {
62
62
63
63
// Apply 'register' option to PHP Console
64
64
if ( ! empty ( $ this ->options ['register ' ] ) ) {
65
- if ( ! class_exists ( 'PC ' , false ) ) { // only if PC not registered yet
65
+
66
+ if ( ! class_exists ( 'PC ' , false ) ) {
67
+ // only if PC not registered yet
66
68
PhpConsole \Helper::register ( );
67
69
}
68
- // PC::debug('PC::debug() is available');
70
+ // PC::debug( 'PC::debug() is available');
71
+
69
72
}
70
73
71
74
// Apply 'stack' option to PHP Console
@@ -75,17 +78,17 @@ public function __construct() {
75
78
76
79
// Apply 'short' option to PHP Console
77
80
if ( ! empty ( $ this ->options ['short ' ] ) ) {
78
- $ connector ->setSourcesBasePath ($ _SERVER ['DOCUMENT_ROOT ' ]);
81
+ $ connector ->setSourcesBasePath ( $ _SERVER ['DOCUMENT_ROOT ' ] );
79
82
}
80
83
81
84
// Initialise WordPress actions
82
85
83
86
// Translation
84
- add_action ( 'plugins_loaded ' , array ( $ this , 'set_locale ' ) );
87
+ add_action ( 'plugins_loaded ' , array ( $ this , 'set_locale ' ) );
85
88
// Admin menu
86
- add_action ( 'admin_menu ' , array ( $ this , 'register_settings_page ' ) );
89
+ add_action ( 'admin_menu ' , array ( $ this , 'register_settings_page ' ) );
87
90
// Delay further PHP Console initialisation to have more context during Remote PHP execution
88
- add_action ( 'wp_loaded ' , array ( $ this , 'init ' ) );
91
+ add_action ( 'wp_loaded ' , array ( $ this , 'init ' ) );
89
92
90
93
}
91
94
@@ -350,18 +353,16 @@ function settings_page() {
350
353
?>
351
354
</form>
352
355
</div>
353
- <hr />
354
- <p><?php _e ( 'Like this plugin? Was it useful to you? Please consider a donation to support open source software development. ' , $ this ->plugin_name ); ?> </p>
355
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
356
- <input type="hidden" name="cmd" value="_s-xclick">
357
- <input type="hidden" name="hosted_button_id" value="GSTFUY3LMCA5W">
358
- <input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
359
- <img alt="" border="0" src="https://www.paypalobjects.com/it_IT/i/scr/pixel.gif" width="1" height="1">
360
- </form>
361
356
<?php
362
357
363
358
}
364
359
360
+ /**
361
+ * Settings page additional info.
362
+ * Prints more details on the plugin settings page.
363
+ *
364
+ * @since 1.3.0
365
+ */
365
366
public function settings_info () {
366
367
367
368
?>
0 commit comments