WordPress.org

Make WordPress Core

Ticket #40654: 40654_1.patch

File 40654_1.patch, 487 bytes (added by FlyerUA, 5 years ago)

Patch for #40654. Removes seemingly pointless list

  • wp-admin/includes/dashboard.php

     
    12241224                        $item_key = array_rand($items);
    12251225                        $item = $items[$item_key];
    12261226
    1227                         list($link, $frag) = explode( '#', $item->get_link() );
     1227                        $link = $item->get_link();
    12281228
    12291229                        $link = esc_url($link);
    12301230                        if ( preg_match( '|/([^/]+?)/?$|', $link, $matches ) )