Changeset 2317
- Timestamp:
- 02/14/2005 04:05:19 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r2290 r2317 29 29 die('You are not allowed to create posts or drafts on this blog.'); 30 30 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']); 38 38 $post_parent = 0; 39 39 $menu_order = 0; … … 41 41 42 42 if ( isset($_POST['parent_id']) ) 43 $post_parent = $_POST['parent_id'];43 $post_parent = (int) $_POST['parent_id']; 44 44 45 45 if ( isset($_POST['menu_order']) ) 46 $menu_order = $_POST['menu_order'];46 $menu_order = (int) $_POST['menu_order']; 47 47 48 48 if (! empty($_POST['post_author_override'])) {
Note: See TracChangeset
for help on using the changeset viewer.