Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#45577 closed defect (bug) (duplicate)

Gutenberg RTL styles not loading due to wrong file names in style tag

Reported by: salar6990's profile salar6990 Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.0
Component: Script Loader Keywords:
Focuses: Cc:

Description

When adding the add_theme_support( 'wp-block-styles' ) ,
it adds the tags but in RTL locale mode, the files have wrong src which causes a 404 error and gutenberg element styles not to be loaded.

src that is given by wp:
https://example.com/wp-includes/css/dist/block-library/style.min-rtl.css?ver=ee900cd59a5ed6d877a06ad5cffc6aac

file available in wp-includes:
https://example.com/wp-includes/css/dist/block-library/style-rtl.min.css

Same happens for theme.css

Change History (1)

#1 @ocean90
5 years ago

  • Component changed from Themes to Script Loader
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Severity changed from major to normal
  • Status changed from new to closed

Hello @salar6990, welcome to WordPress Trac!

Thanks for your report, we're already tracking this issue in #45547.

Note: See TracTickets for help on using tickets.