[wp-trac] [WordPress Trac] #35308: get_the_excerpt: For protected posts the output should be able to be filtered

WordPress Trac noreply at wordpress.org
Mon Jan 4 22:51:06 UTC 2016


#35308: get_the_excerpt: For protected posts the output should be able to be
filtered
-------------------------------+------------------------------
 Reporter:  emanaku            |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------
Changes (by swissspidy):

 * version:  4.3.1 =>


Comment:

 Adding the same filter sounds like a bad idea. Depending on what plugins
 do, readers could suddenly see the excerpt of posts they do not have
 access too.

 So this would need to be a new filter. However, you can already modify the
 `There is no excerpt because this is a protected post.` message using the
 `gettext` filter.

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


More information about the wp-trac mailing list