Make WordPress Core

Changeset 8635


Ignore:
Timestamp:
08/13/2008 05:53:48 AM (16 years ago)
Author:
westi
Message:

Give plugins the ability to do extra processing on a post before it is inserted/updated. See #5196.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r8625 r8635  
    148148
    149149<p class="submit">
     150<?php do_action('post_submitbox_start'); ?>
    150151<input type="submit" name="save" id="save-post" value="<?php _e('Save'); ?>" tabindex="4" class="button button-highlighted" />
    151152<?php
  • trunk/wp-admin/edit-page-form.php

    r8625 r8635  
    124124
    125125<p class="submit">
     126<?php do_action('page_submitbox_start'); ?>
    126127<input type="submit" name="save" class="button button-highlighted" value="<?php _e('Save'); ?>" tabindex="4" />
    127128<?php
  • trunk/wp-includes/post.php

    r8600 r8635  
    14291429    // expected_slashed (everything!)
    14301430    $data = compact( array( 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_content_filtered', 'post_title', 'post_excerpt', 'post_status', 'post_type', 'comment_status', 'ping_status', 'post_password', 'post_name', 'to_ping', 'pinged', 'post_modified', 'post_modified_gmt', 'post_parent', 'menu_order', 'guid' ) );
     1431    $data = apply_filters('wp_insert_post', $data, $postarr);
    14311432    $data = stripslashes_deep( $data );
    14321433    $where = array( 'ID' => $post_ID );
Note: See TracChangeset for help on using the changeset viewer.