Changeset 2064

Show
Ignore:
Timestamp:
01/07/05 01:21:12 (4 years ago)
Author:
saxmatt
Message:

http://mosquito.wordpress.org/view.php?id=608

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/functions-post.php

    r2062 r2064  
    8888 
    8989    // First get all of the original fields 
    90     extract(wp_get_single_post($postarr['ID'],ARRAY_A));   
     90    extract(wp_get_single_post($postarr['ID'], ARRAY_A));  
    9191 
    9292    // Now overwrite any changed values being passed in 
    9393    extract($postarr); 
    94      
     94 
    9595    // Make sure we set a valid category 
    96     if (0 == count($post_category) || !is_array($post_category)) { 
     96    if ( 0 == count($post_category) || !is_array($post_category) ) 
    9797        $post_category = array($post_default_category); 
    98     } 
    9998 
    10099    // Do some escapes for safety 
    101     $post_title = $wpdb->escape($post_title); 
     100    $post_title   = $wpdb->escape($post_title); 
    102101    $post_excerpt = $wpdb->escape($post_excerpt); 
    103102    $post_content = $wpdb->escape($post_content); 
     
    122121    $result = $wpdb->query($sql); 
    123122 
    124     wp_set_post_cats('',$ID,$post_category); 
    125      
     123    wp_set_post_cats('', $ID, $post_category); 
     124 
     125    do_action('edit_post', $ID); 
     126 
    126127    return $wpdb->rows_affected; 
    127128}