Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#48434 closed defect (bug) (duplicate)

count(): Parameter must be an array ... // get_the_content()

Reported by: sebastienserre's profile sebastienserre Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords:
Focuses: Cc:



I've a Warning count(): Parameter must be an array or an object that implements Countable on my website on

What I don't understand is $content at this moment is an array...

Change History (1)

#1 @SergeyBiryukov
5 years ago

  • Component changed from General to Posts, Post Types
  • Keywords 2nd-opinion removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #47824.

Note: See TracTickets for help on using tickets.