WordPress.org

Make WordPress Core

Changeset 10400


Ignore:
Timestamp:
01/21/2009 09:19:22 PM (9 years ago)
Author:
ryan
Message:

Move delete_attachment action up. Props filosofo. fixes #8909

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r10363 r10400  
    24942494    $file = get_attached_file( $postid );
    24952495
     2496    do_action('delete_attachment', $postid);
     2497
    24962498    /** @todo Delete for pluggable post taxonomies too */
    24972499    wp_delete_object_term_relationships($postid, array('category', 'post_tag'));
     
    25292531
    25302532    clean_post_cache($postid);
    2531 
    2532     do_action('delete_attachment', $postid);
    25332533
    25342534    return $post;
Note: See TracChangeset for help on using the changeset viewer.