Changeset 1857 for trunk/wp-admin/post.php
- Timestamp:
- 11/16/2004 07:29:51 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/post.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r1839 r1857 2 2 require_once('admin.php'); 3 3 4 $wpvarstoreset = array('action', 'safe_mode', 'withcomments', 'posts', 'poststart', 'postend', 'content', 'edited_post_title', 'comment_error', 'profile', 'trackback_url', 'excerpt', 'showcomments', 'commentstart', 'commentend', 'commentorder' , 'enclosure_url');4 $wpvarstoreset = array('action', 'safe_mode', 'withcomments', 'posts', 'poststart', 'postend', 'content', 'edited_post_title', 'comment_error', 'profile', 'trackback_url', 'excerpt', 'showcomments', 'commentstart', 'commentend', 'commentorder' ); 5 5 6 6 for ($i=0; $i<count($wpvarstoreset); $i += 1) { … … 22 22 case 'post': 23 23 24 if ( !user_can_create_draft($user_ID)) {24 if ( !user_can_create_draft($user_ID) ) 25 25 die('You are not allowed to create posts or drafts on this blog.'); 26 }27 26 28 27 $post_pingback = intval($_POST['post_pingback']); … … 115 114 } 116 115 116 if ( 'static' == $_POST['post_status'] ) 117 $location = "page-new.php?saved=true"; 118 117 119 if ( '' != $_POST['advanced'] || isset($_POST['save']) ) 118 120 $location = "post.php?action=edit&post=$post_ID"; 119 120 if ( '' != $_POST['savepage'] )121 $location = "post.php?action=createpage";122 121 123 122 header("Location: $location"); // Send user on their way while we keep working
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)