[wp-trac] [WordPress Trac] #46445: Parameter must be an array or an object that implements Countable
WordPress Trac
noreply at wordpress.org
Fri Mar 8 15:59:22 UTC 2019
#46445: Parameter must be an array or an object that implements Countable
--------------------------+----------------------
Reporter: sanjeevsetu | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version: 5.1
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by jorbin):
* status: assigned => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
I can't reproduce this with a default theme and no plugins enabled using
the following test code on php 7.3.2
{{{#!php
<?php
add_action( 'wp_head', function(){
get_the_excerpt();
});
}}}
It sounds like a plugin or theme is overriding the $pages global and
setting it to the wrong object type.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46445#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list