Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#9528 closed defect (bug) (fixed)

Run RTL CSS urls through the style_loader_src filter

Reported by: nbachiyski Owned by:
Milestone: 2.8 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: Cc:


Currently, if the rtl extra data for a stylesheet is set to true, its URL isn't generated by _css_href(), which applies the style_loader_src filter. Instead, the RTL URL is generated by the URL of the main stylesheet with .css replaced with -rtl.css.

Here is a patch, which properly gets the RTL URL using _css_href().

Attachments (1)

filter-rtl-css-url.diff (873 bytes) - added by nbachiyski 7 years ago.

Download all attachments as: .zip

Change History (2)

#1 @ryan
7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10918]) Run RTL CSS urls through the style_loader_src filter. Props nbachiyski. fixes #9528

Note: See TracTickets for help on using tickets.