[wp-trac] [WordPress Trac] #61796: Blank Page When $_GET['postId'] Does Not Exist in /wp-admin/site-editor.php
WordPress Trac
noreply at wordpress.org
Wed Jul 31 12:12:09 UTC 2024
#61796: Blank Page When $_GET['postId'] Does Not Exist in /wp-admin/site-editor.php
--------------------------+-----------------------------
Reporter: benniledl | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 6.6
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Hello,
In WordPress 6.6, there has been a change in behavior when the passed
postId does not exist in /wp-admin/site-editor.php. Previously, the editor
sidebar would appear as usual, while the page preview on the right would
be blank. Users could simply click back in the editor sidebar and navigate
to the desired content.
However, starting with version 6.6, the entire page becomes blank, which
can be confusing for users. This issue might occur due to several reasons:
The content intended for editing has just been deleted.
The postId for the blog homepage, such as twentytwentyfour//home, gets
modified for example by the waf due to concerns like path traversal,
removing the double slash.
The editor should appear as usual even when the postId is invalid and just
display an error message in the content preview.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61796>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list