[wp-trac] [WordPress Trac] #40654: Undefined offset: 1 in /wp-admin/includes/dashboard.php on line 1227

WordPress Trac noreply at wordpress.org
Sat May 6 21:31:53 UTC 2017


#40654: Undefined offset: 1 in /wp-admin/includes/dashboard.php on line 1227
----------------------------+------------------------------
 Reporter:  FlyerUA         |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  4.7.4
 Severity:  major           |  Resolution:
 Keywords:                  |     Focuses:  administration
----------------------------+------------------------------

Comment (by wfasa):

 It looks to me like this happens because that row tries to explode a
 string by # but no # exists in the string. Here is line 1227

 {{{
 list($link, $frag) = explode( '#', $item->get_link() );
 }}}

 and here is a var_dump of $item->get_link()


 {{{
 string(42) "https://wordpress.org/plugins/woocommerce/"
 }}}

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


More information about the wp-trac mailing list