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:
parent
397376d5a1
commit
e210ea830b
|
@ -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 );
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue