Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #17388, comment 1


Ignore:
Timestamp:
08/17/2013 07:19:21 AM (11 years ago)
Author:
c3mdigital
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17388, comment 1

    initial v1  
    1 This approach gets the post_type_object and checks current_user_can->cap->publish_posts.  If so then either a Schedule or Publish button.  If no publish caps then Submit for Review button.  Fallback to Update if post_status is not publish, future or private.
     1This approach gets the `post_type_object` and checks `current_user_can->cap->publish_posts`.  If so then either a '''Schedule''' or '''Publish''' button.  If no publish caps then '''Submit for Review''' button.  Fallback to '''Update''' if `post_status` is not publish, future or private.