From 4eea46e3a2a256ddfa8a14304f6e463cdb2bb075 Mon Sep 17 00:00:00 2001 From: Brent Shepherd Date: Thu, 11 Jul 2019 20:58:54 +1000 Subject: [PATCH] Deprecate actions reverted in c26a8dcd39 --- .../ActionScheduler_Store_Deprecated.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/deprecated/ActionScheduler_Store_Deprecated.php b/deprecated/ActionScheduler_Store_Deprecated.php index 599e25376..1898f2a24 100644 --- a/deprecated/ActionScheduler_Store_Deprecated.php +++ b/deprecated/ActionScheduler_Store_Deprecated.php @@ -6,6 +6,36 @@ */ 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', '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' ); + } + + /** + * Remove base hooks + * + * @since 2.2.6 + */ + protected static function unhook() { + _deprecated_function( __METHOD__, '3.0' ); + } + /** * Get the site's local time. *