[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:32:00 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 dd32):

 Replying to [comment:5 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.

 Yes, But I want to know *why* they're a null value, as they should always
 be an array unless I've missed something. That's why I want to know the
 steps to reproduce it.

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


More information about the wp-trac mailing list