Changeset 12332
- Timestamp:
- 12/07/2009 06:01:02 PM (16 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
-
capabilities.php (modified) (1 diff)
-
post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r12160 r12332 819 819 //echo "current user id : $user_id, page author id: " . $page_author_data->ID . "<br />"; 820 820 // If the user is the author... 821 822 if ('' != $page->post_author) { 823 $page_author_data = get_userdata( $page->post_author ); 824 } else { 825 //No author set yet so default to current user for cap checks 826 $page_author_data = $author_data; 827 } 828 821 829 if ( $user_id == $page_author_data->ID ) { 822 830 // If the page is published... -
trunk/wp-includes/post.php
r12307 r12332 2280 2280 function &get_page(&$page, $output = OBJECT, $filter = 'raw') { 2281 2281 if ( empty($page) ) { 2282 if ( isset( $GLOBALS['p age'] ) && isset( $GLOBALS['page']->ID ) ) {2283 return get_post($GLOBALS['p age'], $output, $filter);2282 if ( isset( $GLOBALS['post'] ) && isset( $GLOBALS['post']->ID ) ) { 2283 return get_post($GLOBALS['post'], $output, $filter); 2284 2284 } else { 2285 2285 $page = null;
Note: See TracChangeset
for help on using the changeset viewer.