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/tests/phpunit/tests/filters.php

    r37909 r37911  
    360360        return $p1;
    361361    }
     362
     363    /**
     364     * @ticket 10441
     365     */
     366    public function test_apply_filters_deprecated_without_filter() {
     367        $val = 'Foobar';
     368
     369        $this->assertSame( $val, apply_filters_deprecated( 'tests_apply_filters_deprecated', array( $val ), '4.6' ) );
     370    }
    362371}
Note: See TracChangeset for help on using the changeset viewer.