Changeset 3787

Show
Ignore:
Timestamp:
05/19/06 17:22:19 (3 years ago)
Author:
ryan
Message:

Add publish_page hook

Files:

Legend:

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

    r3770 r3787  
    209209            if ( ! update_post_meta($post_ID, '_wp_page_template',  $page_template)) 
    210210                add_post_meta($post_ID, '_wp_page_template',  $page_template, true); 
     211                 
     212        if ( $post_status == 'publish' ) 
     213            do_action('publish_page', $post_ID); 
    211214    } 
    212215