[wp-trac] [WordPress Trac] #39939: A Contributor cannot preview their own post if it's scheduled

WordPress Trac noreply at wordpress.org
Fri Sep 19 10:39:28 UTC 2025


#39939: A Contributor cannot preview their own post if it's scheduled
-------------------------------------------------+-------------------------
 Reporter:  johnbillion                          |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Role/Capability                      |     Version:
 Severity:  minor                                |  Resolution:
 Keywords:  needs-patch needs-unit-tests close   |     Focuses:
  has-test-info has-screenshots                  |  administration
-------------------------------------------------+-------------------------

Comment (by levinbaria):

 The future post status is marked as protected, which means contributors
 lose their normal edit capabilities once a post is scheduled. As a result,
 original authors currently cannot preview their own scheduled content.

 I’ve implemented an approach that modifies the WP Query used for post
 controls so that the original post author can always preview their own
 content, regardless of post status. This is accomplished via a new filter,
 {{{
 author_can_preview_protected_post
 }}}
 , which provides a clean way for developers to customize or extend this
 behavior.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/39939#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list