ActionScheduler_Abstract_QueueRunner_Deprecated.php
1 year ago
ActionScheduler_AdminView_Deprecated.php
1 year ago
ActionScheduler_Schedule_Deprecated.php
1 year ago
ActionScheduler_Store_Deprecated.php
1 year ago
functions.php
1 year ago
ActionScheduler_Store_Deprecated.php
51 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Class ActionScheduler_Store_Deprecated |
| 5 | * |
| 6 | * @codeCoverageIgnore |
| 7 | */ |
| 8 | abstract class ActionScheduler_Store_Deprecated { |
| 9 | |
| 10 | /** |
| 11 | * Mark an action that failed to fetch correctly as failed. |
| 12 | * |
| 13 | * @since 2.2.6 |
| 14 | * |
| 15 | * @param int $action_id The ID of the action. |
| 16 | */ |
| 17 | public function mark_failed_fetch_action( $action_id ) { |
| 18 | _deprecated_function( __METHOD__, '3.0.0', 'ActionScheduler_Store::mark_failure()' ); |
| 19 | self::$store->mark_failure( $action_id ); |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * Add base hooks |
| 24 | * |
| 25 | * @since 2.2.6 |
| 26 | */ |
| 27 | protected static function hook() { |
| 28 | _deprecated_function( __METHOD__, '3.0.0' ); |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * Remove base hooks |
| 33 | * |
| 34 | * @since 2.2.6 |
| 35 | */ |
| 36 | protected static function unhook() { |
| 37 | _deprecated_function( __METHOD__, '3.0.0' ); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Get the site's local time. |
| 42 | * |
| 43 | * @deprecated 2.1.0 |
| 44 | * @return DateTimeZone |
| 45 | */ |
| 46 | protected function get_local_timezone() { |
| 47 | _deprecated_function( __FUNCTION__, '2.1.0', 'ActionScheduler_TimezoneHelper::set_local_timezone()' ); |
| 48 | return ActionScheduler_TimezoneHelper::get_local_timezone(); |
| 49 | } |
| 50 | } |
| 51 |