WordPress.org

Make WordPress Core

Ticket #2806: 2806.diff

File 2806.diff, 461 bytes (added by westi, 9 years ago)

Patch to fix the nonce check for delete-bookmark

  • wp-admin/link-manager.php

     
    157157  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 ?"));