Make WordPress Core

Changeset 44387 for branches/5.0


Ignore:
Timestamp:
01/03/2019 06:55:00 PM (8 years ago)
Author:
desrosj
Message:

Customize: Pass missing parameter to dynamic option_{$option} filter in WP_Customize_Widgets::capture_filter_pre_get_option().

This prevents a potential fatal error from an ArgumentCountError exception in PHP 7.1 or greater

Props dlh.

Merges [43561] to the 5.0 branch.
Fixes #44770.

Location:
branches/5.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0

  • branches/5.0/src/wp-includes/class-wp-customize-widgets.php

    r41868 r44387  
    19541954
    19551955                        /** This filter is documented in wp-includes/option.php */
    1956                         $value = apply_filters( 'option_' . $option_name, $value );
     1956                        $value = apply_filters( 'option_' . $option_name, $value, $option_name );
    19571957                }
    19581958
Note: See TracChangeset for help on using the changeset viewer.