Make WordPress Core

Changeset 2317


Ignore:
Timestamp:
02/14/2005 04:05:19 AM (21 years ago)
Author:
saxmatt
Message:

More presave filters.

File:
1 edited

Legend:

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

    r2290 r2317  
    2929        die('You are not allowed to create posts or drafts on this blog.');
    3030
    31     $post_pingback = intval($_POST['post_pingback']);
    32     $content = apply_filters('content_save_pre', $_POST['content']);
    33     $excerpt = apply_filters('excerpt_save_pre',$_POST['excerpt']);
    34     $post_title = $_POST['post_title'];
    35     $post_categories = $_POST['post_category'];
    36     $post_status = $_POST['post_status'];
    37     $post_name = $_POST['post_name'];
     31    $post_pingback = (int) $_POST['post_pingback'];
     32    $content         = apply_filters('content_save_pre', $_POST['content']);
     33    $excerpt         = apply_filters('excerpt_save_pre',  $_POST['excerpt']);
     34    $post_title      = apply_filters('title_save_pre',    $_POST['post_title']);
     35    $post_categories = apply_filters('category_save_pre', $_POST['post_category']);
     36    $post_status     = apply_filters('status_save_pre',   $_POST['post_status']);
     37    $post_name       = apply_filters('name_save_pre',     $_POST['post_name']);
    3838    $post_parent = 0;
    3939    $menu_order  = 0;
     
    4141
    4242    if ( isset($_POST['parent_id']) )
    43         $post_parent = $_POST['parent_id'];
     43        $post_parent = (int) $_POST['parent_id'];
    4444
    4545    if ( isset($_POST['menu_order']) )
    46         $menu_order = $_POST['menu_order'];
     46        $menu_order = (int) $_POST['menu_order'];
    4747
    4848    if (! empty($_POST['post_author_override'])) {
Note: See TracChangeset for help on using the changeset viewer.