Plugin Directory

Changeset 2580505


Ignore:
Timestamp:
08/09/2021 07:09:21 PM (5 years ago)
Author:
mattwiebe
Message:

Update Editing Toolkit Plugin to 3.12771

Location:
full-site-editing/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • full-site-editing/trunk/full-site-editing-plugin.php

    r2580048 r2580505  
    33 * Plugin Name: WordPress.com Editing Toolkit
    44 * Description: Enhances your page creation workflow within the Block Editor.
    5  * Version: 3.12738
     5 * Version: 3.12771
    66 * Author: Automattic
    77 * Author URI: https://automattic.com/wordpress-plugins/
     
    4343 * @var string
    4444 */
    45 define( 'A8C_ETK_PLUGIN_VERSION', '3.12738' );
     45define( 'A8C_ETK_PLUGIN_VERSION', '3.12771' );
    4646
    4747// Always include these helper files for dotcom FSE.
  • full-site-editing/trunk/readme.txt

    r2580048 r2580505  
    44Requires at least: 5.5
    55Tested up to: 5.6
    6 Stable tag: 3.12738
     6Stable tag: 3.12771
    77Requires PHP: 5.6.20
    88License: GPLv2 or later
  • full-site-editing/trunk/wpcom-universal-themes/index.php

    r2578887 r2580505  
    8888    remove_action( 'admin_bar_menu', 'gutenberg_adminbar_items', 50 );
    8989    remove_filter( 'menu_order', 'gutenberg_menu_order' );
    90     add_action( 'init', __NAMESPACE__ . '\hide_template_cpts', 11 );
    91     add_action( 'restapi_theme_init', __NAMESPACE__ . '\hide_template_cpts', 11 );
     90    if ( defined( 'REST_API_REQUEST' ) && true === REST_API_REQUEST ) {
     91        // Do not hook to init during the REST API requests, as it causes PHP warnings
     92        // while loading the alloptions (unable to access wp_0_ prefixed tables).
     93        // Use the restapi_theme_init hook instead.
     94        add_action( 'restapi_theme_init', __NAMESPACE__ . '\hide_template_cpts', 11 );
     95    } else {
     96        add_action( 'init', __NAMESPACE__ . '\hide_template_cpts', 11 );
     97    }
    9298    add_filter( 'block_editor_settings_all', __NAMESPACE__ . '\hide_fse_blocks' );
    9399}
Note: See TracChangeset for help on using the changeset viewer.