[wp-trac] [WordPress Trac] #57274: As of 6.1 custom meta boxes are not saving information.
WordPress Trac
noreply at wordpress.org
Mon Dec 5 06:34:51 UTC 2022
#57274: As of 6.1 custom meta boxes are not saving information.
--------------------------+------------------------------
Reporter: nbmp1980 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.1
Severity: major | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Comment (by nbmp1980):
I have found out why it does not work, the original code was:
current_user_can( 'edit_post', $post_id )
WordPress have now changed edit_post to edit_posts:
current_user_can( 'edit_posts', $post_id )
With this updated code it now saves correctly.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57274#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list