[wp-trac] [WordPress Trac] #29732: post_template.php get_the_content() incorrect work when run without get_header?
WordPress Trac
noreply at wordpress.org
Tue Sep 23 11:56:36 UTC 2014
#29732: post_template.php get_the_content() incorrect work when run without
get_header?
-------------------------------+----------------------
Reporter: Skynin | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution: invalid
Keywords: | Focuses:
-------------------------------+----------------------
Comment (by SergeyBiryukov):
Replying to [comment:4 Skynin]:
> Global variable $post is initialized in this case, therefore i assumed
that everything will work.
[http://codex.wordpress.org/Function_Reference/setup_postdata
setup_postdata()] would probably help.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29732#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list