From e210ea830b0e9ef5477247b333c1fb49e5f836e5 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Wed, 29 Jun 2016 13:22:27 +0000 Subject: [PATCH] Plugins: Return the original value in `apply_filters_deprecated()` if no filter is registered for the tag. Props flixos90. Fixes #10441. Built from https://develop.svn.wordpress.org/trunk@37911 git-svn-id: http://core.svn.wordpress.org/trunk@37852 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/plugin.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/plugin.php b/wp-includes/plugin.php index 44c45a6d7f..e01b0e2fe4 100644 --- a/wp-includes/plugin.php +++ b/wp-includes/plugin.php @@ -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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index ecfaa457d3..69c1435fd1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37910'; +$wp_version = '4.6-alpha-37911'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.