Skip to content

Commit 4df7e86

Browse files
committed
WP Helper functions - *_deprecated(): ensure parameter defaults are in line with WP Core
This change has no functional impact as the `$replacement` and `$message` parameters are unused by the BrainMonkey mocks of these functions. Refs: * https://developer.wordpress.org/reference/functions/do_action_deprecated/ * https://developer.wordpress.org/reference/functions/apply_filters_deprecated/
1 parent 75e06f3 commit 4df7e86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inc/wp-hook-functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function do_action_ref_array($hook_name, array $args)
5757
}
5858

5959
if ( ! function_exists('do_action_deprecated')) {
60-
function do_action_deprecated($hook_name, array $args, $version, $replacement, $message = null)
60+
function do_action_deprecated($hook_name, array $args, $version, $replacement = '', $message = '')
6161
{
6262
$container = Monkey\Container::instance();
6363
$container->hookStorage()->pushToDone(Monkey\Hook\HookStorage::ACTIONS, $hook_name, $args);
@@ -86,7 +86,7 @@ function apply_filters_ref_array($hook_name, array $args)
8686
}
8787

8888
if ( ! function_exists('apply_filters_deprecated')) {
89-
function apply_filters_deprecated($hook_name, array $args, $version, $replacement, $message = null)
89+
function apply_filters_deprecated($hook_name, array $args, $version, $replacement = '', $message = '')
9090
{
9191
$container = Monkey\Container::instance();
9292
$container->hookStorage()->pushToDone(Monkey\Hook\HookStorage::FILTERS, $hook_name, $args);

0 commit comments

Comments
 (0)