[wp-trac] [WordPress Trac] #51246: single_post_title() doesn't respect private and protected posts

WordPress Trac noreply at wordpress.org
Fri Sep 4 12:35:59 UTC 2020


#51246: single_post_title() doesn't respect private and protected posts
--------------------------+-----------------------------
 Reporter:  henry.wright  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 `single_post_title()` doesn't respect private and protected content. It
 will either display or return the content regardless.

 In contrast, `get_the_title()` does respect private and protected content.

 Note `single_post_title()` is used when building the document title in
 `wp_get_document_title()`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51246>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list