Check for is_rtl() existence before checking it in the fallback condition in wp_admin_css(). Prevents fatal errors when plugins call wp_admin_css() on a non-existent (probably removed) stylesheet. props SergeyBiryukov, fixes #19913.
git-svn-id: https://develop.svn.wordpress.org/trunk@20326 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0fe62673e5
commit
1d7714d923
@ -2100,7 +2100,7 @@ function wp_admin_css( $file = 'wp-admin', $force_echo = false ) {
|
||||
}
|
||||
|
||||
echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . esc_url( wp_admin_css_uri( $file ) ) . "' type='text/css' />\n", $file );
|
||||
if ( is_rtl() )
|
||||
if ( function_exists( 'is_rtl' ) && is_rtl() )
|
||||
echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . esc_url( wp_admin_css_uri( "$file-rtl" ) ) . "' type='text/css' />\n", "$file-rtl" );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user