Skip to content

Conversation

@mkaz
Copy link
Member

@mkaz mkaz commented Nov 25, 2018

Matches existing core trac ticket: https://core.trac.wordpress.org/ticket/45288

Fixes #12196

Description

Adds a check to see if the css file exists before trying to read it.

How has this been tested?

  • Confirm everything still works
  • Confirm no error if style file does not exist

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.

@youknowriad
Copy link
Contributor

Should we apply the second patch instead https://core.trac.wordpress.org/attachment/ticket/45288/themes.patch

@mkaz
Copy link
Member Author

mkaz commented Nov 25, 2018

@youknowriad oops, I didn't see the other one. Updated, agreed it's simpler.

@youknowriad youknowriad merged commit 1ee2013 into master Nov 26, 2018
@youknowriad youknowriad deleted the fix/12196/css-file-check branch November 26, 2018 09:33
@youknowriad youknowriad added this to the 4.6 milestone Nov 29, 2018
youknowriad pushed a commit that referenced this pull request Nov 29, 2018
* Add check for css file before trying to read

Mirrors existing trac ticket https://core.trac.wordpress.org/ticket/45288

Fixes #12196

* Use other patch :-)
@mtias mtias added Internationalization (i18n) Issues or PRs related to internationalization efforts [Feature] Custom Editor Styles Functionality for adding custom editor styles labels Nov 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Custom Editor Styles Functionality for adding custom editor styles Internationalization (i18n) Issues or PRs related to internationalization efforts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants