WordPress.org

Make WordPress Core

Ticket #40523: 40523.diff

File 40523.diff, 730 bytes (added by spacedmonkey, 3 years ago)
  • src/wp-admin/includes/schema.php

     
    551551                if ( !empty($insert) )
    552552                        $insert .= ', ';
    553553                $insert .= $wpdb->prepare( "(%s, %s, %s)", $option, $value, $autoload );
     554
     555                /** This filter is documented in wp-includes/option.php */
     556                do_action( 'add_option', $option, $value );
     557                /** This filter is documented in wp-includes/option.php */
     558                do_action( "add_option_{$option}", $option, $value );
     559                /** This filter is documented in wp-includes/option.php */
     560                do_action( 'added_option', $option, $value );
    554561        }
    555562
    556563        if ( !empty($insert) )