Skip to content

Commit

Permalink
Merge pull request #58 from x-team/issue-19
Browse files Browse the repository at this point in the history
Disable auto-reset of occurrences, #19
  • Loading branch information
frankiejarrett committed Feb 3, 2014
2 parents 41803d0 + 1310eec commit fb2947e
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 fb2947e

Please sign in to comment.