Skip to content

Commit

Permalink
WordCamp Misc: Update filter for disabling Gutenberg on CPTs.
Browse files Browse the repository at this point in the history
The previous filter was removed in 1.5, and the new one was added in 1.5.2.

See WordPress/gutenberg#3158

git-svn-id: https://meta.svn.wordpress.org/sites/trunk/wordcamp.org@6056 74240141-8908-4e6f-9713-ba540dce6ec7
  • Loading branch information
iandunn committed Oct 26, 2017
1 parent dfa1133 commit 2aae758
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions public_html/wp-content/mu-plugins/wcorg-misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function wcorg_enforce_public_blog_option( $value ) {
* We want to let organizers use shortcodes inside Text widgets
*/
add_filter( 'widget_text', 'do_shortcode' );
// todo can remove this after ugprade to 4.9

/**
* Output a menu via a shortcode
Expand Down Expand Up @@ -282,9 +283,9 @@ function wcorg_flush_rewrite_rules() {
* Many of WordCamp.org's CPTs make extensive use of meta boxes. Since these are not currently supported in the
* Gutenberg editor, this limits the Gutenberg content editing links to posts and pages.
*
* TODO: revisit this when Gutenberg supports meta boxes.
* TODO: revisit this when Gutenberg supports "advanced" meta boxes.
*/
add_filter( 'gutenberg_add_edit_link_for_post_type', function( $bool, $post_type ) {
add_filter( 'gutenberg_can_edit_post_type', function( $bool, $post_type ) {
$allowed_post_types = array(
'post',
'page',
Expand Down

0 comments on commit 2aae758

Please sign in to comment.