Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#48168 closed defect (bug) (duplicate)

/wp-includes/post-template.php

Reported by: chymmi's profile 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
5 years 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
5 years 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.