[wp-trac] [WordPress Trac] #50775: Correctly back up the global $post in edit-form-blocks.php
WordPress Trac
noreply at wordpress.org
Fri Jul 31 13:58:35 UTC 2020
#50775: Correctly back up the global $post in edit-form-blocks.php
--------------------------------------+-----------------------------
Reporter: SergeyBiryukov | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.6
Component: Editor | Version:
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch | Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"48700" 48700]:
{{{
#!CommitTicketReference repository="" revision="48700"
Editor: Correctly back up the global `$post` in `wp-admin/edit-form-
blocks.php`.
To create a copy of the object, instead of a reference to the same object,
the `clone` keyword should be used.
Props scarolan.
Fixes #50775.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50775#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list