[wp-trac] [WordPress Trac] #27246: Add function to get the excerpt outside the loop

WordPress Trac noreply at wordpress.org
Wed Oct 1 12:22:40 UTC 2014


#27246: Add function to get the excerpt outside the loop
-------------------------------+-----------------------------
 Reporter:  Atoon              |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Future Release
Component:  Posts, Post Types  |     Version:  3.8.1
 Severity:  normal             |  Resolution:
 Keywords:  needs-patch        |     Focuses:  template
-------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 `$fakeit` was originally introduced in [87], unused since [2341].

 I think it's safe to undeprecate it and treat it as a post ID if a numeric
 value or a post object is passed.

 That still doesn't make it consistent with `get_the_content()` though...

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


More information about the wp-trac mailing list