WordPress.org

Making WordPress.org

Changeset 6056


Ignore:
Timestamp:
10/26/2017 05:14:09 PM (2 years ago)
Author:
iandunn
Message:

WordCamp Misc: Update filter for disabling Gutenberg on CPTs.

The previous filter was removed in 1.5, and the new one was added in 1.5.2.

See https://github.com/WordPress/gutenberg/issues/3158

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-misc.php

    r5944 r6056  
    5252 */
    5353add_filter( 'widget_text', 'do_shortcode' );
     54// todo can remove this after ugprade to 4.9
    5455
    5556/**
     
    283284 * Gutenberg editor, this limits the Gutenberg content editing links to posts and pages.
    284285 *
    285  * TODO: revisit this when Gutenberg supports meta boxes.
    286  */
    287 add_filter( 'gutenberg_add_edit_link_for_post_type', function( $bool, $post_type ) {
     286 * TODO: revisit this when Gutenberg supports "advanced" meta boxes.
     287 */
     288add_filter( 'gutenberg_can_edit_post_type', function( $bool, $post_type ) {
    288289    $allowed_post_types = array(
    289290        'post',
Note: See TracChangeset for help on using the changeset viewer.