WordPress.org

Make WordPress Core

Ticket #2806: delete_bookmark_no_js_fix.diff

File delete_bookmark_no_js_fix.diff, 512 bytes (added by markjaquith, 8 years ago)

Fix for deleting bookmarks with JS off

  • wp-admin/link-manager.php

     
    154154    break; 
    155155  } // end Save 
    156156 
    157   case 'Delete': 
     157  case 'delete': 
    158158  { 
    159159        $link_id = (int) $_GET['link_id']; 
    160         check_admin_referer('delete-bookmark' . $link_id); 
     160        check_admin_referer('delete-bookmark_' . $link_id); 
    161161 
    162162    if ( !current_user_can('manage_links') ) 
    163163      die (__("Cheatin' uh ?"));