Skip to content

Commit

Permalink
minor edits to changelogs, phpdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
nekorjira committed Mar 3, 2015
1 parent 2850ab3 commit 9335b5f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
* Updated readme files.

### 1.3.0 (05 feb 2015)
* Fix: IP mask
* Enhancement: added configuration options - props @Polfo
- Register PC class
- Show Call Stack
- Short Path Names
* Fix: IP mask

### 1.2.3 (21 jan 2015)

Expand Down
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ None yet.
* Updated readme files

= 1.3.0 =
* Fix: IP mask
* Enhancement: added configuration options - props @Polfo
- Register PC class
- Show Call Stack
- Short Path Names
* Fix: IP mask

= 1.2.3 =

Expand Down
29 changes: 15 additions & 14 deletions lib/class-wp-php-console.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,13 @@ public function __construct() {

// Apply 'register' option to PHP Console
if ( ! empty( $this->options['register'] ) ) {
if( ! class_exists( 'PC', false ) ) { // only if PC not registered yet

if ( ! class_exists( 'PC', false ) ) {
// only if PC not registered yet
PhpConsole\Helper::register( );
}
// PC::debug('PC::debug() is available');
// PC::debug( 'PC::debug() is available');

}

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

// Apply 'short' option to PHP Console
if ( ! empty( $this->options['short'] ) ) {
$connector->setSourcesBasePath($_SERVER['DOCUMENT_ROOT']);
$connector->setSourcesBasePath( $_SERVER['DOCUMENT_ROOT'] );
}

// Initialise WordPress actions

// Translation
add_action( 'plugins_loaded', array( $this, 'set_locale' ) );
add_action( 'plugins_loaded', array( $this, 'set_locale' ) );
// Admin menu
add_action( 'admin_menu', array( $this, 'register_settings_page' ) );
add_action( 'admin_menu', array( $this, 'register_settings_page' ) );
// Delay further PHP Console initialisation to have more context during Remote PHP execution
add_action( 'wp_loaded', array( $this, 'init' ) );
add_action( 'wp_loaded', array( $this, 'init' ) );

}

Expand Down Expand Up @@ -350,18 +353,16 @@ function settings_page() {
?>
</form>
</div>
<hr />
<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>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="GSTFUY3LMCA5W">
<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.">
<img alt="" border="0" src="https://www.paypalobjects.com/it_IT/i/scr/pixel.gif" width="1" height="1">
</form>
<?php

}

/**
* Settings page additional info.
* Prints more details on the plugin settings page.
*
* @since 1.3.0
*/
public function settings_info() {

?>
Expand Down

0 comments on commit 9335b5f

Please sign in to comment.