[wp-trac] [WordPress Trac] #42814: PHP 7.2 Warning: ...wp-includes/post-template.php on line 284

WordPress Trac noreply at wordpress.org
Wed Feb 13 14:07:56 UTC 2019


#42814: PHP 7.2 Warning: ...wp-includes/post-template.php on line 284
-------------------------------------------------+-------------------------
 Reporter:  internetwerk                         |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  5.2
Component:  Posts, Post Types                    |     Version:  4.5
 Severity:  normal                               |  Resolution:
 Keywords:  dev-feedback has-patch 2nd-opinion   |     Focuses:
  php73 needs-refresh needs-unit-tests           |
-------------------------------------------------+-------------------------

Comment (by 1naveengiri):

 @internetwerk Good catch,

 It is just to notify.
 I have noticed this warning when I use `get_the_excerpt($post_id)` outside
 the loop on `Init` or `wp` action hook.
 the function seems not throwing warning when I am using it on` wp_head`.

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


More information about the wp-trac mailing list