Fix admin css link when installing in a directory. Fixes #4877

git-svn-id: http://svn.automattic.com/wordpress/trunk@6024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2007-09-03 20:20:18 +00:00
parent 8c8c1cb4f7
commit d38d018ce9
1 changed files with 6 additions and 1 deletions

View File

@ -1067,7 +1067,12 @@ function paginate_links( $args = '' ) {
} }
function wp_admin_css_uri( $file = 'wp-admin' ) { function wp_admin_css_uri( $file = 'wp-admin' ) {
$_file = add_query_arg( 'version', get_bloginfo( 'version' ), get_option( 'siteurl' ) . "/wp-admin/$file.css" ); if ( defined('WP_INSTALLING') )
{
$_file = add_query_arg( 'version', get_bloginfo( 'version' ), "./$file.css" );
} else {
$_file = add_query_arg( 'version', get_bloginfo( 'version' ), get_option( 'siteurl' ) . "/wp-admin/$file.css" );
}
return apply_filters( 'wp_admin_css_uri', $_file, $file ); return apply_filters( 'wp_admin_css_uri', $_file, $file );
} }