[wp-trac] [WordPress Trac] #64810: A password protected post can be sticky but sometimes this behaviour is forbidden.

WordPress Trac noreply at wordpress.org
Thu Mar 5 13:38:07 UTC 2026


#64810: A password protected post can be sticky but sometimes this behaviour is
forbidden.
-------------------------------------------------+-------------------------
 Reporter:  clementpolito                        |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  General                              |     Version:  6.9.1
 Severity:  normal                               |  Resolution:
 Keywords:  needs-patch 2nd-opinion has-         |     Focuses:
  screenshots                                    |
-------------------------------------------------+-------------------------

Comment (by jsmansart):

 In REST API, the code show that it's not possible to have both sticky and
 password proctected posts.

 Code can be reach here : https://github.com/WordPress/wordpress-
 develop/blob/6.9.1/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-
 controller.php#L1407-L1428

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


More information about the wp-trac mailing list