Fine tune checking.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8b44ee9d93
commit
78397fa62c
|
@ -287,13 +287,14 @@ function url_to_postid($url = '') {
|
||||||
|
|
||||||
function get_settings($setting) {
|
function get_settings($setting) {
|
||||||
global $wpdb, $cache_settings;
|
global $wpdb, $cache_settings;
|
||||||
if ( strstr($_SERVER['REQUEST_URI'], 'install.php') || strstr($_SERVER['REQUEST_URI'], 'upgrade.php') )
|
if ( strstr($_SERVER['REQUEST_URI'], 'wp-admin/install.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/upgrade.php') )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if ( empty($cache_settings) )
|
if ( empty($cache_settings) )
|
||||||
$cache_settings = get_alloptions();
|
$cache_settings = get_alloptions();
|
||||||
|
|
||||||
if ('home' == $setting && '' == $cache_settings->home) return $cache_settings->siteurl;
|
if ('home' == $setting && '' == $cache_settings->home)
|
||||||
|
return $cache_settings->siteurl;
|
||||||
|
|
||||||
if ( isset($cache_settings->$setting) )
|
if ( isset($cache_settings->$setting) )
|
||||||
return $cache_settings->$setting;
|
return $cache_settings->$setting;
|
||||||
|
|
Loading…
Reference in New Issue