Skip to content

Commit

Permalink
Merge pull request #11 from afragen/patch-1
Browse files Browse the repository at this point in the history
remove early exit for heartbeat inside of class
  • Loading branch information
afragen committed Nov 4, 2016
2 parents 8aac477 + 8b6bae7 commit fbe30ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Run `composer require collizo4sky/persist-admin-notices-dismissal`
Alternatively, clone or download this repo into the `vendor/` folder in your plugin, and include/require the `persist-admin-notices-dismissal.php` file like so

```php
require __DIR__ . '/vendor/persist-admin-notices-dismissal/persist-admin-notices-dismissal.php'
require __DIR__ . '/vendor/persist-admin-notices-dismissal/persist-admin-notices-dismissal.php';
add_action( 'admin_init', array( 'PAnD', 'init' ) );
```

Expand Down
9 changes: 1 addition & 8 deletions persist-admin-notices-dismissal.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @author Agbonghama Collins
* @author Andy Fragen
* @license http://www.gnu.org/licenses GNU General Public License
* @version 1.2
* @version 1.3
*/

/**
Expand All @@ -32,13 +32,6 @@
die;
}

/**
* Don't run during heartbeat.
*/
if ( isset( $_REQUEST['action'] ) && 'heartbeat' === $_REQUEST['action'] ) {
return;
}

if ( ! class_exists( 'PAnD' ) ) {

/**
Expand Down

0 comments on commit fbe30ec

Please sign in to comment.