WordPress.org

Plugin Directory

Changeset 1731853


Ignore:
Timestamp:
09/18/17 19:16:57 (4 weeks ago)
Author:
travislopes
Message:

Share Drafts Publicly (1.1.5)

  • Fixed reference to incorrect capability.
Location:
share-drafts-publicly
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • share-drafts-publicly/tags/1.1.5/share-drafts-publicly.php

    r1731851 r1731853  
    353353 
    354354        // 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 ) ) { 
    356356            return false; 
    357357        } 
     
    377377 
    378378        // 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 ) ) { 
    380380            return false; 
    381381        } 
  • share-drafts-publicly/trunk/share-drafts-publicly.php

    r1731851 r1731853  
    353353 
    354354        // 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 ) ) { 
    356356            return false; 
    357357        } 
     
    377377 
    378378        // 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 ) ) { 
    380380            return false; 
    381381        } 
Note: See TracChangeset for help on using the changeset viewer.