WordPress.org

WordPress build repository browser

Changeset 42484


Ignore:
Timestamp:
02/06/18 14:49:32 (2 weeks ago)
Author:
flixos90
Message:

Options: Unhook default option filter when setting is unregistered.

Fixes #43207.

Built from https://develop.svn.wordpress.org/trunk@42655

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r42188 r42484  
    21832183        } 
    21842184 
     2185        // Remove the default filter if a default was provided during registration. 
     2186        if ( array_key_exists( 'default', $wp_registered_settings[ $option_name ] ) ) { 
     2187            remove_filter( "default_option_{$option_name}", 'filter_default_option', 10 ); 
     2188        } 
     2189 
    21852190        unset( $wp_registered_settings[ $option_name ] ); 
    21862191    } 
  • trunk/wp-includes/version.php

    r42482 r42484  
    55 * @global string $wp_version 
    66 */ 
    7 $wp_version = '5.0-alpha-42653'; 
     7$wp_version = '5.0-alpha-42655'; 
    88 
    99/** 
Note: See TracChangeset for help on using the changeset viewer.