Deprecated old archive filters and add new ones

Using new filters is needed as the parameters passed to the filters
changed. If we continued using the same filters, users might run into
fatal errors.

[MAILPOET-3629]
This commit is contained in:
Rodrigo Primo
2021-09-15 10:50:25 -03:00
committed by Veljko V
parent 0c44e4dbd2
commit 2e354173db
2 changed files with 29 additions and 4 deletions

View File

@@ -724,4 +724,8 @@ class Functions {
public function wpKses(string $string, $allowedHtml, $allowedProtocols = []) {
return wp_kses($string, $allowedHtml, $allowedProtocols);
}
public function deprecatedHook(string $hook_name, string $version, string $replacement, string $message) {
_deprecated_hook($hook_name, $version, $replacement, $message);
}
}