Make WordPress Core


Ignore:
Timestamp:
06/29/2016 01:21:24 PM (8 years ago)
Author:
ocean90
Message:

Plugins: Return the original value in apply_filters_deprecated() if no filter is registered for the tag.

Props flixos90.
Fixes #10441.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/plugin.php

    r37861 r37911  
    675675function apply_filters_deprecated( $tag, $args, $version, $replacement = false, $message = null ) {
    676676    if ( ! has_filter( $tag ) ) {
    677         return;
     677        return $args[0];
    678678    }
    679679
Note: See TracChangeset for help on using the changeset viewer.