Fix admin css link when installing in a directory. Fixes #4877
git-svn-id: https://develop.svn.wordpress.org/trunk@6024 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d25a0027ab
commit
9b621d42c6
@ -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
Block a user