Skip to content

Commit

Permalink
modified CSS rules to fix media bulk actions bar from disappearing. f…
Browse files Browse the repository at this point in the history
…ixes #73
  • Loading branch information
norcross committed Feb 22, 2016
1 parent c781033 commit 72712dc
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

#### Version 0.1.3 - 2016/02/22
* modified CSS rules to fix media bulk actions bar from disappearing
* moved `airplane_mode_status_change` action to run before redirect, and now includes the status being run.

#### Version 0.1.2 - 2016/01/09
* added back HTTP count when inactive
* removed HTTP count completely when Query Monitor is active
Expand Down
10 changes: 5 additions & 5 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.2
* Version: 0.1.3
* 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.2' );
define( 'AIRMDE_VER', '0.1.3' );
}

if ( ! class_exists( 'Airplane_Mode_Core' ) ) {
Expand Down Expand Up @@ -482,6 +482,9 @@ public function toggle_check() {
// Update the setting.
update_site_option( 'airplane-mode', sanitize_key( $_REQUEST['airplane-mode'] ) );

// Fire action to allow for functions to run on status change.
do_action( 'airplane_mode_status_change', $switch );

// And go about our business.
wp_redirect( self::get_redirect() );
exit;
Expand All @@ -494,9 +497,6 @@ public function toggle_check() {
*/
protected static function get_redirect() {

// Fire action to allow for functions to run on status change.
do_action( 'airplane_mode_status_change' );

// Return the args for the actual redirect.
$redirect = remove_query_arg( array(
'airplane-mode',
Expand Down
7 changes: 4 additions & 3 deletions lib/css/airplane-mode.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUg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FBMDkyQ0ZCNUNEIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+VVKSowAAAPVJREFUeNrMluERgjAMhYsTMAIjMAIjMIIbuAIb4Aa4gW4gG9ANZAPdIKZnfsRcW1Na7nx373oHTb5LSK9UAGD21MHsrBTAgAZa1aoSWsQ3VlsraNF3dF2sR64C5hk+WtC1eMdltJYPXFIbgBQBxCCXUgANJBvwC3JFN7kA54G1RUKe6NNWQEsJpXztWmi/eopGiCv04UfPaH8BOvTDk/AlEsUgLr4PAbhW9Fls1lYCIYClpKF+cvmmq6V4mzJFIUDsxJsSAKOF5ABUEE1iFzQJwMSSSUgywEbOg6zkKOM1N9qKvqFnWnt0R2tT8sr8z7+KtwADADqdBvUNABi9AAAAAElFTkSuQmCC');
}

.airplane-mode-enabled .plugin-install-php a.upload.add-new-h2,
.airplane-mode-enabled .wp-filter,
.airplane-mode-enabled.plugin-install-php h1 a.upload,
.airplane-mode-enabled.plugin-install-php .wp-filter,
.airplane-mode-enabled.theme-install-php .wp-filter,
.airplane-mode-enabled .theme-browser.content-filterable.rendered,
.airplane-mode-enabled a.browse-themes.add-new-h2 {
.airplane-mode-enabled.theme-install-php a.browse-themes {
display: none !important;
}
2 changes: 1 addition & 1 deletion lib/css/airplane-mode.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.2
Stable tag: 0.1.3
License: MIT
License URI: http://norcross.mit-license.org/

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

== Changelog ==

= 0.1.3 - 2016/02/22
* modified CSS rules to fix media bulk actions bar from disappearing
* moved `airplane_mode_status_change` action to run before redirect, and now includes the status being run.

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

0 comments on commit 72712dc

Please sign in to comment.