WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/20/2009 08:12:01 PM (12 years ago)
Author:
ryan
Message:

Use correct variable name. Props sirzooro. fixes #11204

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/page.php

    r12182 r12247  
    151151    $post = & get_post($post_id);
    152152
    153     if ( !current_user_can('delete_page', $page_id) )
     153    if ( !current_user_can('delete_page', $post_id) )
    154154        wp_die( __('You are not allowed to move this page to the trash.') );
    155155
     
    173173    $post = & get_post($post_id);
    174174
    175     if ( !current_user_can('delete_page', $page_id) )
     175    if ( !current_user_can('delete_page', $post_id) )
    176176        wp_die( __('You are not allowed to move this page out of the trash.') );
    177177
Note: See TracChangeset for help on using the changeset viewer.