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

Add simple support for new block editor#113

Open
grappler wants to merge 1 commit intowecobble:masterfrom
wearerequired:temp-gutenberg-support
Open

Add simple support for new block editor#113
grappler wants to merge 1 commit intowecobble:masterfrom
wearerequired:temp-gutenberg-support

Conversation

@grappler
Copy link
Copy Markdown

Description

This is a temporary solution so that the Subtitles can still be edited in the new block editor(Gutenberg).

Don’t load styles & scripts on post types that do not support subtitles.

Related to #104

How Has This Been Tested?

I have tested this on WP 5.1.1 with Gutenberg enabled for posts, a CPT with Subtitles support but in the classic editor and a CPT without Subtitles support.

Screenshots (if applicable):

image

Types of changes

New feature (non-breaking change which adds functionality)

Checklist:

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

This is a temporary solution so that the Subtitles can still be edited in the new block editor(Gutenberg).

Don’t load styles & scripts on post types that do not support subtitles.

Related to wecobble#104
@grappler grappler mentioned this pull request Apr 28, 2019
@lapineige
Copy link
Copy Markdown

Hello,

Is it possible to use that branch in a production environment ? How ?

Thank you

@grappler
Copy link
Copy Markdown
Author

grappler commented Jun 6, 2020

Yes, you can download that version from here: https://github.com/wearerequired/Subtitles/tree/temp-gutenberg-support

@lapineige
Copy link
Copy Markdown

Great, thanks for the tip :) (and the PR !)

@lapineige
Copy link
Copy Markdown

It works perfectly fine :)

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.

2 participants