Make WordPress Core

Changeset 11872


Ignore:
Timestamp:
08/24/2009 07:40:56 PM (15 years ago)
Author:
azaozz
Message:

Fix notice in wp-admin/includes/post.php, props harrym, fixes #10678 for 2.8

File:
1 edited

Legend:

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

    r11534 r11872  
    247247    if ( isset($post_data['post_category']) ) {
    248248        if ( is_array($post_data['post_category']) && ! empty($post_data['post_category']) )
    249             $new_cats = array_map( absint, $post_data['post_category'] );
     249            $new_cats = array_map( 'absint', $post_data['post_category'] );
    250250        else
    251251            unset($post_data['post_category']);
Note: See TracChangeset for help on using the changeset viewer.