Make WordPress Core


Ignore:
Timestamp:
11/30/2016 09:21:21 PM (8 years ago)
Author:
ocean90
Message:

Options: Pass the $passed_default parameter to the 'default_option_{$option} filter in add_option().

This was missed in [38910].

Props joehoyle, lucasstark.
See #38176.
Fixes #38930.

File:
1 edited

Legend:

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

    r39335 r39382  
    422422    if ( !is_array( $notoptions ) || !isset( $notoptions[$option] ) )
    423423        /** This filter is documented in wp-includes/option.php */
    424         if ( apply_filters( 'default_option_' . $option, false, $option ) !== get_option( $option ) )
     424        if ( apply_filters( 'default_option_' . $option, false, $option, false ) !== get_option( $option ) )
    425425            return false;
    426426
Note: See TracChangeset for help on using the changeset viewer.