[wp-trac] [WordPress Trac] #34480: get_the_content inconsistent with get_the_title

WordPress Trac noreply at wordpress.org
Thu Oct 29 11:18:20 UTC 2015


#34480: get_the_content inconsistent with get_the_title
-------------------------+-----------------------------
 Reporter:  atomicjack   |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 get_the_title accepts a post id parameter, to target a specific post
 outside of the loop; one would assume that get_the_content would work the
 same way.

 That is not the case.

 get_the_content does not currently accept a post id as the first parameter
 - which goes against what would be assumed after having used
 get_the_title.

 TLDR: add post id parameter to get_the_content.

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


More information about the wp-trac mailing list