WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/03/2009 01:43:49 AM (12 years ago)
Author:
azaozz
Message:

Fix errors when bulk actions executed on empty list, props nacin, see #11184

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/link-manager.php

    r11554 r12317  
    1919
    2020    if ( 'delete' == $doaction ) {
    21         foreach ( (array) $_GET['linkcheck'] as $link_id ) {
     21        $bulklinks = (array) $_GET['linkcheck'];
     22        foreach ( $bulklinks as $link_id ) {
    2223            $link_id = (int) $link_id;
    2324
     
    2526        }
    2627
    27         wp_redirect( wp_get_referer() );
     28        wp_safe_redirect( wp_get_referer() );
    2829        exit;
    2930    }
Note: See TracChangeset for help on using the changeset viewer.