I’m just doing some wordpress development and wondered for a brand new install, which code within core is generating the first value that get’s filled into the home
option?
I’m looking for the code in core, e.g. the filename and the line where this happens.
Does someone remembers from mind?
When the installer runs it calls
wp_install()
, that in turn callspopulate_options()
defined inwp-admin/includes/schema.php
, which runs the following..Prior to that
$guessurl
is defined by..The guess URL function is defined in
wp-includes/functions.php
and looks like this.http://core.trac.wordpress.org/browser/tags/3.1/wp-admin/includes/upgrade.php#L22
http://core.trac.wordpress.org/browser/tags/3.1/wp-admin/includes/schema.php#L177
http://core.trac.wordpress.org/browser/tags/3.1/wp-includes/functions.php#L3585
Hope that’s the info you’re looking for… 🙂