[wp-trac] [WordPress Trac] #27351: Warning: Cannot use a scalar value as an array in wp-admin/includes/media.php on line 2262

WordPress Trac noreply at wordpress.org
Tue Mar 11 13:19:07 UTC 2014


#27351: Warning: Cannot use a scalar value as an array in wp-
admin/includes/media.php on line 2262
--------------------------+-----------------------------
 Reporter:  nendeb55      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 So, in wp-admin/includes/media, on line 2262, 2264, 2266  These line is
 throwing a warning:

 Cause This line 2260:
 {{{
         $q = isset( $q['paged'] ) ? intval( $q['paged'] ) : 0;
 }}}
 So I propose to change it to:
 {{{
         $q['paged'] = isset( $q['paged'] ) ? intval( $q['paged'] ) : 0;
 }}}

 Thanks

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27351>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list