Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#31854 closed defect (bug) (wontfix)

add_editor_style() doesn't work with stylesheets with commas in URL

Reported by: danielbachhuber's profile danielbachhuber Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:

Description

add_editor_style( 'https://fonts.googleapis.com/css?family=Roboto+Condensed:700,400,300|Roboto:300,400,700|Roboto+Slab:300,700' );

Because mce_css comma-separates the stylesheets. It looks like this came up in #24653, but not clear how it was addressed.

Change History (1)

#1 @danielbachhuber
9 years ago

  • Keywords dev-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Encoding the commas works :)

add_editor_style( 'https://fonts.googleapis.com/css?family=Roboto+Condensed:700%2C400%2C300|Roboto:300%2C400%2C700|Roboto+Slab:300%2C700' );
Note: See TracTickets for help on using tickets.