mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 11:44:33 +00:00
Plugins: Return the original value in apply_filters_deprecated() if no filter is registered for the tag.
Props flixos90. Fixes #10441. git-svn-id: https://develop.svn.wordpress.org/trunk@37911 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -674,7 +674,7 @@ function remove_all_actions($tag, $priority = false) {
|
||||
*/
|
||||
function apply_filters_deprecated( $tag, $args, $version, $replacement = false, $message = null ) {
|
||||
if ( ! has_filter( $tag ) ) {
|
||||
return;
|
||||
return $args[0];
|
||||
}
|
||||
|
||||
_deprecated_hook( $tag, $version, $replacement, $message );
|
||||
|
||||
Reference in New Issue
Block a user