Add populate_options action. Props RanYanivHartstein. fixes #6854

git-svn-id: https://develop.svn.wordpress.org/trunk@7848 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-04-28 19:55:00 +00:00
parent 872183bfcf
commit d94ce464a3
1 changed files with 3 additions and 0 deletions

View File

@ -156,6 +156,9 @@ function populate_options() {
$schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';
$guessurl = preg_replace('|/wp-admin/.*|i', '', $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
do_action('populate_options');
add_option('siteurl', $guessurl);
add_option('blogname', __('My Blog'));
add_option('blogdescription', __('Just another WordPress weblog'));