Skip to content

Commit af6c1bd

Browse files
author
nekojira
committed
fixed allowed IP option bug
1 parent e85adb3 commit af6c1bd

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 1.2.1 (12 dec 2014)
2+
* Fixed allowed IPs bug.
3+
14
### 1.2.0 (11 dec 2014)
25
* Updated dependencies and got rid of git submodules.
36

README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
44
Tags: development, debug, debugging
55
Requires at least: 3.0.1
66
Tested up to: 4.0
7-
Stable tag: 1.2.0
7+
Stable tag: 1.2.1
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nekojira/wp-php-console",
33
"description": "A WordPress implementation of PHP Console.",
4-
"version": "1.2.0",
4+
"version": "1.2.1",
55
"keywords": [
66
"wordpress",
77
"debug",

lib/class-wp-php-console.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public function init() {
285285
if ( $enableSslOnlyMode == true )
286286
$connector->enableSslOnlyMode();
287287

288-
$allowedIpMasks = isset( $options['ip'] ) ? ( ! empty( $options['ip'] ) ? implode( ',', $options['ip'] ) : '' ) : '';
288+
$allowedIpMasks = isset( $options['ip'] ) ? ( ! empty( $options['ip'] ) ? explode( ',', $options['ip'] ) : '' ) : '';
289289
if ( ! is_array( $allowedIpMasks ) && ! empty( $allowedIpMasks ) )
290290
$connector->setAllowedIpMasks( (array) $allowedIpMasks );
291291

wp-php-console.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Plugin Name: WP PHP Console
1010
* Plugin URI: https://github.com/nekojira/wp-php-console/
1111
* 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.
12-
* Version: 1.2.0
12+
* Version: 1.2.1
1313
* Author: nekojira
1414
* Author URI: https://github.com/nekojira/
1515
* License: GPL-2.0+

0 commit comments

Comments
 (0)