diff --git a/src/Abstracts/Trigger.php b/src/Abstracts/Trigger.php index b697f8b7f..dafeb82f1 100644 --- a/src/Abstracts/Trigger.php +++ b/src/Abstracts/Trigger.php @@ -286,7 +286,7 @@ public function is_stopped() : bool { * @return void */ public function postpone_action( $tag, $priority = 10, $accepted_args = 1 ) { - _deprecated_function ( __METHOD__, '8.0.0' ); + _deprecated_function( __METHOD__, '8.0.0' ); } /** @@ -297,7 +297,7 @@ public function postpone_action( $tag, $priority = 10, $accepted_args = 1 ) { * @return boolean */ public function is_postponed() { - _deprecated_function ( __METHOD__, '8.0.0' ); + _deprecated_function( __METHOD__, '8.0.0' ); return true; } @@ -309,7 +309,7 @@ public function is_postponed() { * @return bool */ public function has_background_processing_enabled() { - _deprecated_function ( __METHOD__, '8.0.0' ); + _deprecated_function( __METHOD__, '8.0.0' ); return apply_filters( 'notification/trigger/process_in_background', @@ -326,7 +326,7 @@ public function has_background_processing_enabled() { * @return array */ public function get_action_args() { - _deprecated_function ( __METHOD__, '8.0.0' ); + _deprecated_function( __METHOD__, '8.0.0' ); return []; } @@ -339,7 +339,7 @@ public function get_action_args() { * @return array */ public function get_cache() { - _deprecated_function ( __METHOD__, '8.0.0' ); + _deprecated_function( __METHOD__, '8.0.0' ); return []; } @@ -353,7 +353,7 @@ public function get_cache() { * @return $this */ public function set_cache( $cache ) { - _deprecated_function ( __METHOD__, '8.0.0' ); + _deprecated_function( __METHOD__, '8.0.0' ); return $this; } @@ -368,7 +368,7 @@ public function set_cache( $cache ) { * @return mixed */ public function cache( $key, $default = '' ) { - _deprecated_function ( __METHOD__, '8.0.0' ); + _deprecated_function( __METHOD__, '8.0.0' ); return $default; } diff --git a/src/Core/Runner.php b/src/Core/Runner.php index 00e7ff564..ce17fe886 100644 --- a/src/Core/Runner.php +++ b/src/Core/Runner.php @@ -72,7 +72,7 @@ public function run( ...$context ) { $result = call_user_func_array( [ $this->trigger, 'action' ], $context ); $class = get_class( $this->trigger ); - _deprecated_function ( + _deprecated_function( sprintf( '%s::action()', esc_html( $class ) ), '8.0.0', sprintf( '%s::context()', esc_html( $class ) )