[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
Tue Jun 23 00:57:05 UTC 2015


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

Comment (by norcross):

 saw there's also an array to string conversion error in the same file on
 lines 237 and 319

 '''line 237:''' `add_screen_option( 'per_page', array( 'default' => 20,
 'option' => 'edit_' . $post_type . '_per_page' ) );`

 '''line 319:''' `<input type="hidden" name="post_type"
 class="post_type_page" value="<?php echo $post_type; ?>" />`

 not sure if this should be in the same patch or not

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


More information about the wp-trac mailing list