[wp-trac] [WordPress Trac] #3096: Page caps using incorrect author id
WordPress Trac
noreply at wordpress.org
Sun Feb 11 06:25:27 UTC 2024
#3096: Page caps using incorrect author id
------------------------------+---------------------
Reporter: activeingredient | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Administration | Version: 2.1
Severity: normal | Resolution: fixed
Keywords: Page Caps | Focuses:
------------------------------+---------------------
Changes (by garciatqg94za):
* keywords: Page, Caps => Page Caps
Comment:
Are you encountering an issue in WordPress where the capabilities for
editing and deleting pages (`edit_page` and `delete_page`) are using the
incorrect author ID? It appears that the code is currently fetching the
author ID from the wrong variable (`$post` instead of `$page`) in the
`capabilities.php` file. Would you like assistance in implementing the
suggested fix to ensure the correct author ID is used for page
capabilities?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/3096#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list