Skip to content
This repository was archived by the owner on Dec 11, 2017. It is now read-only.

Prevent saving when lint errors present#69

Merged
westonruter merged 11 commits intomasterfrom
prevent-saving-when-lint-errors-present
Aug 30, 2017
Merged

Prevent saving when lint errors present#69
westonruter merged 11 commits intomasterfrom
prevent-saving-when-lint-errors-present

Conversation

@westonruter
Copy link
Copy Markdown
Member

Fixes #49.

By integrating with the lint addon in CodeMirror, the file editor in WordPress can block saving when an error is detected. When applied to PHP, this can help prevent against whitescreening your site. CodeMirror's syntax highlighting and autocompletion of braces also guards against syntax errors while coding.

Demo video on YouTube:

Play video on YouTube

@westonruter
Copy link
Copy Markdown
Member Author

westonruter commented Aug 30, 2017

  • Update file editor to only show lint errors upon blur, to prevent distraction during typing.

@westonruter
Copy link
Copy Markdown
Member Author

westonruter commented Aug 30, 2017

  • Also show notifications on mouseout.

@westonruter
Copy link
Copy Markdown
Member Author

Custom HTML widget in Admin:

image

@westonruter
Copy link
Copy Markdown
Member Author

Custom HTML widget in the Customizer:

image

@westonruter
Copy link
Copy Markdown
Member Author

Additional CSS in the Customizer:

image

@westonruter
Copy link
Copy Markdown
Member Author

Plugin editor:

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant