Make WordPress Core

Changeset 10257


Ignore:
Timestamp:
12/26/2008 10:36:48 PM (16 years ago)
Author:
azaozz
Message:

Fix debug notices for bulk edit, fixes #8707 for 2.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-admin/includes/post.php

    r10214 r10257  
    229229        $post_data = &$_POST;
    230230
    231     if ( 'page' == $post_data['post_type'] ) {
     231    if ( isset($post_data['post_type']) && 'page' == $post_data['post_type'] ) {
    232232        if ( ! current_user_can( 'edit_pages' ) )
    233233            wp_die( __('You are not allowed to edit pages.') );
     
    237237    }
    238238
    239     $post_IDs = array_map( intval, (array) $post_data['post'] );
     239    $post_IDs = array_map( 'intval', (array) $post_data['post'] );
    240240
    241241    $reset = array( 'post_author', 'post_status', 'post_password', 'post_parent', 'page_template', 'comment_status', 'ping_status', 'keep_private', 'tags_input', 'post_category', 'sticky' );
Note: See TracChangeset for help on using the changeset viewer.