[wp-trac] [WordPress Trac] #3096: Page caps using incorrect author
id
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 2 01:18:49 GMT 2006
#3096: Page caps using incorrect author id
------------------------------+---------------------------------------------
Reporter: activeingredient | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: Administration | Version: 2.1
Severity: normal | Keywords: Page, Caps
------------------------------+---------------------------------------------
When determining caps 'edit_page' & 'delete_page' in wp-
includes/capabilities.php (introduced in Changeset 3513) the incorrect
author id is determined.
Currently -
{{{
326: $page = get_page($args[0]);
327: $page_author_data = get_userdata($post->post_author);
...
380: $page = get_page($args[0]);
381: $page_author_data = get_userdata($post->post_author);
}}}
Should be -
{{{
326: $page = get_page($args[0]);
327: $page_author_data = get_userdata($page->post_author);
...
380: $page = get_page($args[0]);
381: $page_author_data = get_userdata($page->post_author);
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/3096>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list