Editor: Warn in Classic Editor when serialized block comments are present#11969
Editor: Warn in Classic Editor when serialized block comments are present#11969wprashed wants to merge 17 commits into
Conversation
Introduce a native Performance settings screen with controls for page caching, asset minification, critical CSS, lazy loading, image optimization, and database cleanup. Add core performance helpers for: - registering and sanitizing optimization settings - anonymous front-end page caching with cache invalidation hooks - front-end HTML and inline CSS/JS minification - critical CSS generation from inline styles - lazy-loading controls through existing media filters - AVIF/WebP output format preference when supported - cache clearing and database cleanup actions Wire the new screen into Settings, load the performance runtime during bootstrap, and add focused PHPUnit coverage for the new helpers.
…sent Add a Classic Editor warning for posts/pages whose content contains WordPress block comment syntax (<!-- wp:... -->). This helps prevent accidental overwrites when the Visual tab appears empty but block markup still exists in the Code tab. The notice is: Scoped to the Classic Editor content field (#content). Shown only when block comment markup is detected. Inserted inline above the editor (#wp-content-wrap). Guarded against duplicate rendering.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @1178653+wordpress-develop-pr-bot[bot]@users.noreply.github.com. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
…s input Prevent an undefined index notice by checking isset( $_POST['sidebars'] ) before is_array(), and add an AJAX unit test covering the missing sidebars request case.
…ps://github.com/wprashed/wordpress-develop into codex-ticket-65335-classic-editor-block-warning
Trac Ticket MissingThis pull request is missing a link to a Trac ticket. For a contribution to be considered, there must be a corresponding ticket in Trac. To attach a pull request to a Trac ticket, please include the ticket's full URL in your pull request description. More information about contributing to WordPress on GitHub can be found in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
Adds a Classic Editor warning when post content contains WordPress block comment syntax (e.g. ), which may not be visible in the Visual tab. This helps prevent accidental overwrites when content appears empty visually but block markup still exists in Code view.