WordPress.org

Make WordPress Core

Changeset 20326


Ignore:
Timestamp:
03/30/12 13:10:52 (3 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r19936 r20326  
    21012101 
    21022102    echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . esc_url( wp_admin_css_uri( $file ) ) . "' type='text/css' />\n", $file ); 
    2103     if ( is_rtl() ) 
     2103    if ( function_exists( 'is_rtl' ) && is_rtl() ) 
    21042104        echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . esc_url( wp_admin_css_uri( "$file-rtl" ) ) . "' type='text/css' />\n", "$file-rtl" ); 
    21052105} 
Note: See TracChangeset for help on using the changeset viewer.