[wp-trac] [WordPress Trac] #30013: Array to string conversion notice when multiple post types are queried in edit.php

WordPress Trac noreply at wordpress.org
Mon Sep 14 00:02:07 UTC 2015


#30013: Array to string conversion notice when multiple post types are queried in
edit.php
--------------------------------------+-----------------------------
 Reporter:  jeremyfelt                |       Owner:  wonderboymusic
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.4
Component:  Posts, Post Types         |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:  administration
--------------------------------------+-----------------------------
Changes (by wonderboymusic):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34100"]:
 {{{
 #!CommitTicketReference repository="" revision="34100"
 Check if the `$post_type` passed to `get_post_type_object()` is a `scalar`
 value. Non-scalars were producing PHP warnings.

 Adds unit tests.

 Props Kloon.
 Fixes #30013.
 }}}

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


More information about the wp-trac mailing list