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

Add simple support for new block editor #113

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

grappler
Copy link

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

Hello,

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

Thank you

@grappler
Copy link
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

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

@lapineige
Copy link

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