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
This commit is contained in:
Dominik Schilling 2016-06-29 13:22:27 +00:00
parent 397376d5a1
commit e210ea830b
2 changed files with 2 additions and 2 deletions

View File

@ -674,7 +674,7 @@ function remove_all_actions($tag, $priority = false) {
*/ */
function apply_filters_deprecated( $tag, $args, $version, $replacement = false, $message = null ) { function apply_filters_deprecated( $tag, $args, $version, $replacement = false, $message = null ) {
if ( ! has_filter( $tag ) ) { if ( ! has_filter( $tag ) ) {
return; return $args[0];
} }
_deprecated_hook( $tag, $version, $replacement, $message ); _deprecated_hook( $tag, $version, $replacement, $message );

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.