-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #326 from Prospress/revert-297-fix/296
Fix marking actions with invalid schedules as failed
- Loading branch information
Showing
3 changed files
with
50 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
|
||
/** | ||
* Class ActionScheduler_Store_Deprecated | ||
* @codeCoverageIgnore | ||
*/ | ||
abstract class ActionScheduler_Store_Deprecated { | ||
|
||
/** | ||
* Mark an action that failed to fetch correctly as failed. | ||
* | ||
* @since 2.2.6 | ||
* | ||
* @param int $action_id The ID of the action. | ||
*/ | ||
public function mark_failed_fetch_action( $action_id ) { | ||
_deprecated_function( __METHOD__, '3.0.0', 'ActionScheduler_Store::mark_failure()' ); | ||
self::$store->mark_failure( $action_id ); | ||
} | ||
|
||
/** | ||
* Add base hooks | ||
* | ||
* @since 2.2.6 | ||
*/ | ||
protected static function hook() { | ||
_deprecated_function( __METHOD__, '3.0.0' ); | ||
} | ||
|
||
/** | ||
* Remove base hooks | ||
* | ||
* @since 2.2.6 | ||
*/ | ||
protected static function unhook() { | ||
_deprecated_function( __METHOD__, '3.0.0' ); | ||
} | ||
|
||
/** | ||
* Get the site's local time. | ||
* | ||
* @deprecated 2.1.0 | ||
* @return DateTimeZone | ||
*/ | ||
protected function get_local_timezone() { | ||
_deprecated_function( __FUNCTION__, '2.1.0', 'ActionScheduler_TimezoneHelper::set_local_timezone()' ); | ||
return ActionScheduler_TimezoneHelper::get_local_timezone(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters