[wp-trac] [WordPress Trac] #20867: Notice: Array to string conversion

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 9 01:08:37 UTC 2012


#20867: Notice: Array to string conversion
-----------------------------------------+------------------------------
 Reporter:  arieputranto                 |       Owner:
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Post Types                   |     Version:  3.4
 Severity:  normal                       |  Resolution:
 Keywords:  reporter-feedback has-patch  |
-----------------------------------------+------------------------------
Changes (by arieputranto):

 * keywords:  reporter-feedback => reporter-feedback has-patch


Comment:

 It happened when the post_format archive is being loaded e.g.:
 http://localhost/type/media

 I fixed mine by adding a line on line: 65, since

 $wp_query->query['post_format'] and $wp_query->query_vars['post_format']

 are indeed an array.

 {{{
 $post_type = $post_type[0];
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20867#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list