Commit 8bdbfef1 authored by Erick Hitter's avatar Erick Hitter
Browse files

Add some docs for 3ed84d22

parent 3ed84d22
......@@ -511,10 +511,12 @@ class Events extends Singleton {
public function update_run_status( $new_status ) {
$new_status = absint( $new_status );
// Don't store a past timestamp
if ( $new_status > 1 && $new_status < time() ) {
return false;
}
// Nothing to do, but `update_option()` will return false
if ( $new_status === $this->run_disabled() ) {
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment