Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gutenberg 19.8.0 hotfix: don't show the template-locked rendering mode for pages #40664

Merged
merged 3 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Gutenberg 19.8.0 hotfix: don't show the template-locked rendering mode for pages
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public static function load_features() {
require_once __DIR__ . '/features/wpcom-admin-dashboard/wpcom-admin-dashboard.php';
require_once __DIR__ . '/features/wpcom-block-editor/class-jetpack-wpcom-block-editor.php';
require_once __DIR__ . '/features/wpcom-block-editor/functions.editor-type.php';
require_once __DIR__ . '/features/wpcom-hotfixes/wpcom-hotfixes.php';
require_once __DIR__ . '/features/wpcom-logout/wpcom-logout.php';
require_once __DIR__ . '/features/wpcom-themes/wpcom-theme-fixes.php';

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
/**
* Various hotfixes to WordPress.com
*
* @package automattic/jetpack-mu-wpcom
*/

/**
* Hotfix for a Gutenberg 19.8.0 bug preventing lower-capability users from editing pages.
* See: p1734525664059729-slack-C02FMH4G8
* See: https://github.com/WordPress/gutenberg/issues/68053#issuecomment-2550730705
*/
add_filter(
'register_post_type_args',
function ( $args ) {
unset( $args['default_rendering_mode'] );
return $args;
},
20
);
Loading