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

WordPress Trac noreply at wordpress.org
Fri Dec 8 07:17:03 UTC 2017


#42814: PHP 7.2 Warning: ...wp-includes/post-template.php on line 284
---------------------------------------------+-----------------------------
 Reporter:  internetwerk                     |       Owner:
     Type:  defect (bug)                     |      Status:  reopened
 Priority:  normal                           |   Milestone:  Awaiting
Component:  General                          |  Review
 Severity:  normal                           |     Version:  4.9.1
 Keywords:  needs-testing reporter-feedback  |  Resolution:
                                             |     Focuses:
---------------------------------------------+-----------------------------

Comment (by Shital Patel):

 Hello @dd32 ,

 The problem is that $pages,$content,$custom[$key] could be null in some
 cases, and PHP 7.2 doesn't allow count(null);

 So, We can set zero value.

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


More information about the wp-trac mailing list