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:
parent
8c8c1cb4f7
commit
d38d018ce9
|
@ -1067,7 +1067,12 @@ function paginate_links( $args = '' ) {
|
|||
}
|
||||
|
||||
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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue