[wp-trac] [WordPress Trac] #63100: Clicking The Edit Site Link Loads The Page Editor Instead of The Site Editor
WordPress Trac
noreply at wordpress.org
Fri Mar 28 10:21:38 UTC 2025
#63100: Clicking The Edit Site Link Loads The Page Editor Instead of The Site
Editor
--------------------------+------------------------
Reporter: jeffr0 | Owner: joemcgill
Type: defect (bug) | Status: reviewing
Priority: high | Milestone: 6.8
Component: Editor | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------
Comment (by Mamaduka):
I think it's better to punt this to the next major release. As far as I
can tell from code history, the current behavior is intentional. When a
site doesn't have a `front-page` template, the static homepage is treated
as just another page.
The behavior difference became more noticeable after we had to revert the
new default rendering mode - https://github.com/WordPress/wordpress-
develop/pull/8557. As I noted in that PR, we don't want to reintroduce a
special case for the rendering mode in the site editor because the whole
point of the default rendering mode setting is consistency.
Consumers/developers can opt in to the previous behavior by changing the
default rendering mode for Pages:
{{{#!php
<?php
// Set default mode to template-locked. Use this for testing.
add_action( 'init', function() {
add_post_type_support( 'page', 'editor', array(
'default-mode' => 'post-only',
) );
} );
}}}
The bigger question here is whether the Site Editor should treat a static
Homepage differently. We can continue that discussion in this GitHub
issue: https://github.com/WordPress/gutenberg/issues/63783.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63100#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list