Skip to content

Commit 9335b5f

Browse files
author
nekorjira
committed
minor edits to changelogs, phpdocs
1 parent 2850ab3 commit 9335b5f

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

ChangeLog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
* Updated readme files.
99

1010
### 1.3.0 (05 feb 2015)
11+
* Fix: IP mask
1112
* Enhancement: added configuration options - props @Polfo
1213
- Register PC class
1314
- Show Call Stack
1415
- Short Path Names
15-
* Fix: IP mask
1616

1717
### 1.2.3 (21 jan 2015)
1818

README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ None yet.
127127
* Updated readme files
128128

129129
= 1.3.0 =
130+
* Fix: IP mask
130131
* Enhancement: added configuration options - props @Polfo
131132
- Register PC class
132133
- Show Call Stack
133134
- Short Path Names
134-
* Fix: IP mask
135135

136136
= 1.2.3 =
137137

lib/class-wp-php-console.php

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,13 @@ public function __construct() {
6262

6363
// Apply 'register' option to PHP Console
6464
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
6668
PhpConsole\Helper::register( );
6769
}
68-
// PC::debug('PC::debug() is available');
70+
// PC::debug( 'PC::debug() is available');
71+
6972
}
7073

7174
// Apply 'stack' option to PHP Console
@@ -75,17 +78,17 @@ public function __construct() {
7578

7679
// Apply 'short' option to PHP Console
7780
if ( ! empty( $this->options['short'] ) ) {
78-
$connector->setSourcesBasePath($_SERVER['DOCUMENT_ROOT']);
81+
$connector->setSourcesBasePath( $_SERVER['DOCUMENT_ROOT'] );
7982
}
8083

8184
// Initialise WordPress actions
8285

8386
// Translation
84-
add_action( 'plugins_loaded', array( $this, 'set_locale' ) );
87+
add_action( 'plugins_loaded', array( $this, 'set_locale' ) );
8588
// Admin menu
86-
add_action( 'admin_menu', array( $this, 'register_settings_page' ) );
89+
add_action( 'admin_menu', array( $this, 'register_settings_page' ) );
8790
// 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' ) );
8992

9093
}
9194

@@ -350,18 +353,16 @@ function settings_page() {
350353
?>
351354
</form>
352355
</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>
361356
<?php
362357

363358
}
364359

360+
/**
361+
* Settings page additional info.
362+
* Prints more details on the plugin settings page.
363+
*
364+
* @since 1.3.0
365+
*/
365366
public function settings_info() {
366367

367368
?>

0 commit comments

Comments
 (0)