WordPress.org

Make WordPress Core

Opened 6 months ago

Closed 6 months ago

#48168 closed defect (bug) (duplicate)

/wp-includes/post-template.php

Reported by: Chymmi Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

Hello,

I was dealing with this apache error for some time and I always tried to avoid to edit the core. So I made my first commit on github and I hope it will help.

https://github.com/WordPress/WordPress/pull/430/commits/33ae7f009b3a5176f941e116d6691a447362b471

Apache error:

PHP Warning: count(): Parameter must be an array or an object that implements Countable in /wp-includes/post-template.php on line 310

Change History (2)

#1 @sebastienserre
6 months ago

Hello @Chymmi and welcome on tracks.
Could you please upload you patch here on Trac (make a diff file and upload it) ?

Thanks for your contribution

#2 @SergeyBiryukov
6 months ago

  • Component changed from General to Posts, Post Types
  • 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.