WordPress.org

Make WordPress Core

Ticket #5208: 5208.diff

File 5208.diff, 432 bytes (added by johnbillion, 7 years ago)

Introducing pre_update_option_{option_name}

  • wp-includes/functions.php

     
    309309                wp_cache_set( 'notoptions', $notoptions, 'options' ); 
    310310        } 
    311311 
     312        $newvalue = apply_filters( "pre_update_option_{$option_name}", $newvalue ); 
     313 
    312314        $_newvalue = $newvalue; 
    313315        $newvalue = maybe_serialize( $newvalue ); 
    314316