WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #16847, comment 11


Ignore:
Timestamp:
01/26/13 16:59:04 (15 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16847, comment 11

    initial v1  
    33its pointed out above, but worth repeating with current links -- 
    44 
    5 edit.php checks current_user_can( $post_type_object->cap->edit_posts )  - [http://core.trac.wordpress.org/browser/trunk/wp-admin/edit.php#L21 At line 21] 
     5edit.php checks `current_user_can( $post_type_object->cap->edit_posts )`  - [http://core.trac.wordpress.org/browser/tags/3.5.1/wp-admin/edit.php#L21 At line 21] 
    66 
    7 revisions.php checks if ( !current_user_can( 'read_post', $revision->ID ) || !current_user_can( 'read_post', $post->ID ) ) [http://core.trac.wordpress.org/browser/trunk/wp-admin/revision.php#L111 At Line 111] 
     7revisions.php checks `if ( !current_user_can( 'read_post', $revision->ID ) || !current_user_can( 'read_post', $post->ID ) )` [http://core.trac.wordpress.org/browser/tags/3.5.1/wp-admin/revision.php#L111 At Line 111] 
    88 
    99the difference in the check apparently lead to the (difficult to reproduce) bug in this ticket.