Make WordPress Core

Changeset 10858


Ignore:
Timestamp:
04/01/2009 04:10:14 PM (15 years ago)
Author:
ryan
Message:

Move deleted_post back. Props Denis-de-Bernardy . see #9422

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/schema.php

    r10852 r10858  
    6969  comment_agent varchar(255) NOT NULL default '',
    7070  comment_type varchar(20) NOT NULL default '',
    71   comment_parent bigint(20) NOT NULL default '0',
     71  comment_parent bigint(20) unsigned NOT NULL default '0',
    7272  user_id bigint(20) unsigned NOT NULL default '0',
    7373  PRIMARY KEY  (comment_ID),
     
    8686  link_description varchar(255) NOT NULL default '',
    8787  link_visible varchar(20) NOT NULL default 'Y',
    88   link_owner bigint(20) NOT NULL default '1',
     88  link_owner bigint(20) unsigned NOT NULL default '1',
    8989  link_rating int(11) NOT NULL default '0',
    9090  link_updated datetime NOT NULL default '0000-00-00 00:00:00',
  • trunk/wp-includes/post.php

    r10851 r10858  
    11601160        wp_delete_post_revision( $revision_id );
    11611161
    1162     do_action('deleted_post', $postid);
    1163 
    11641162    // Point all attachments to this post up one level
    11651163    $wpdb->update( $wpdb->posts, $parent_data, $parent_where + array( 'post_type' => 'attachment' ) );
     
    11811179        clean_post_cache($postid);
    11821180    }
     1181
     1182    do_action('deleted_post', $postid);
    11831183
    11841184    return $post;
Note: See TracChangeset for help on using the changeset viewer.