Skip to content

Commit

Permalink
Disable auto-reset of occurrences, #19
Browse files Browse the repository at this point in the history
Resolves #19, in light of #52
  • Loading branch information
shadyvb committed Feb 3, 2014
1 parent 41803d0 commit 1310eec
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions classes/wp-stream-notification-rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ function save() {

if ( $this->exists() ) {
$result = $wpdb->update( $wpdb->stream, $record, array( 'ID' => $this->ID ) ); // cache ok, db call ok
// Reset occurrences
update_stream_meta( $record['ID'], 'occurrences', 0 );
$success = ( $result !== false );
} else {
if ( ! $record['created'] ) {
Expand Down

0 comments on commit 1310eec

Please sign in to comment.