[wp-trac] [WordPress Trac] #47824: get_the_content() still causes a PHP warning outside of the loop
WordPress Trac
noreply at wordpress.org
Sat Dec 14 00:18:08 UTC 2019
#47824: get_the_content() still causes a PHP warning outside of the loop
-------------------------------------------------+-------------------------
Reporter: SergeyBiryukov | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.4
Component: Posts, Post Types | Version: 5.2
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs- | Focuses:
refresh |
-------------------------------------------------+-------------------------
Comment (by squarecandy):
+1 for this.
For now I'm using: {{{ get_the_content( null, false, get_the_ID() ); }}}
Is that a reasonable way to deal with it, or should I just leave my plain
{{{ get_the_content() }}} as it is and ignore the warning until this is
fixed in the core?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47824#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list