Skip to content

Commit

Permalink
modified HTTP count setup. fixes #71
Browse files Browse the repository at this point in the history
  • Loading branch information
norcross committed Jan 10, 2016
1 parent 73e04ad commit cd21195
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#### Version 0.1.2 - 2016/01/09
* added back HTTP count when inactive
* removed HTTP count completely when Query Monitor is active

#### Version 0.1.1 - 2016/01/06
* fixed incorrect nonce check that was breaking toggle
* changed CSS and JS checks to include all themes and plugins as well as core
Expand Down
8 changes: 4 additions & 4 deletions airplane-mode.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Control loading of external files when developing locally
* Author: Andrew Norcross
* Author URI: http://reaktivstudios.com/
* Version: 0.1.1
* Version: 0.1.2
* Text Domain: airplane-mode
* Requires WP: 4.0
* Domain Path: languages
Expand Down Expand Up @@ -45,7 +45,7 @@
}

if ( ! defined( 'AIRMDE_VER' ) ) {
define( 'AIRMDE_VER', '0.1.1' );
define( 'AIRMDE_VER', '0.1.2' );
}

if ( ! class_exists( 'Airplane_Mode_Core' ) ) {
Expand Down Expand Up @@ -562,8 +562,8 @@ public function admin_bar_toggle( WP_Admin_Bar $wp_admin_bar ) {
// Set my HTTP bubble display to a blank string for now.
$bubble = '';

// Get and display the HTTP count when active.
if ( $status ) {
// Get and display the HTTP count when Query Monitor isn't active.
if ( ! class_exists( 'QueryMonitor' ) ) {

// Pull my HTTP count.
$count = ! empty( $this->http_count ) ? number_format_i18n( $this->http_count ) : 0;
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Donate link: https://andrewnorcross.com/donate
Tags: external calls, HTTP
Requires at least: 4.0
Tested up to: 4.4
Stable tag: 0.1.1
Stable tag: 0.1.2
License: MIT
License URI: http://opensource.org/licenses/mit-license.php

Expand Down Expand Up @@ -43,6 +43,10 @@ Because you are a jet set developer who needs to work without internet.

== Changelog ==

= 0.1.2 - 2016/01/09
* added back HTTP count when inactive
* removed HTTP count completely when Query Monitor is active

= 0.1.1 - 2016/01/06
* fixed incorrect nonce check that was breaking toggle
* changed CSS and JS checks to include all themes and plugins as well as core
Expand Down

0 comments on commit cd21195

Please sign in to comment.