Changeset 1731853
- Timestamp:
- 09/18/2017 07:16:57 PM (8 years ago)
- Location:
- share-drafts-publicly
- Files:
-
- 2 edited
-
tags/1.1.5/share-drafts-publicly.php (modified) (2 diffs)
-
trunk/share-drafts-publicly.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
share-drafts-publicly/tags/1.1.5/share-drafts-publicly.php
r1731851 r1731853 353 353 354 354 // If user does not have capability to edit posts, return. 355 if ( ! current_user_can( 'edit_post ', $post_id ) ) {355 if ( ! current_user_can( 'edit_posts', $post_id ) ) { 356 356 return false; 357 357 } … … 377 377 378 378 // If user does not have capability to edit posts, return. 379 if ( ! current_user_can( 'edit_post ', $post_id ) ) {379 if ( ! current_user_can( 'edit_posts', $post_id ) ) { 380 380 return false; 381 381 } -
share-drafts-publicly/trunk/share-drafts-publicly.php
r1731851 r1731853 353 353 354 354 // If user does not have capability to edit posts, return. 355 if ( ! current_user_can( 'edit_post ', $post_id ) ) {355 if ( ! current_user_can( 'edit_posts', $post_id ) ) { 356 356 return false; 357 357 } … … 377 377 378 378 // If user does not have capability to edit posts, return. 379 if ( ! current_user_can( 'edit_post ', $post_id ) ) {379 if ( ! current_user_can( 'edit_posts', $post_id ) ) { 380 380 return false; 381 381 }
Note: See TracChangeset
for help on using the changeset viewer.