Make WordPress Core

Ticket #6854: schema.php.diff

File schema.php.diff, 578 bytes (added by RanYanivHartstein, 17 years ago)

Patch to add plugin hook in populate_options()

  • schema.php

     
    156156
    157157        $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';
    158158        $guessurl = preg_replace('|/wp-admin/.*|i', '', $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
     159       
     160        do_action('populate_options');
     161       
    159162        add_option('siteurl', $guessurl);
    160163        add_option('blogname', __('My Blog'));
    161164        add_option('blogdescription', __('Just another WordPress weblog'));