mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Allow draft pages. Use post_type for object types. Reserve post_status strictly for status. fixes #1820
git-svn-id: https://develop.svn.wordpress.org/trunk@3510 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -16,7 +16,7 @@ if ( current_user_can('edit_pages') ) {
|
||||
get_currentuserinfo();
|
||||
|
||||
$post = get_default_post_to_edit();
|
||||
$post->post_status = 'static';
|
||||
$post->post_type = 'page';
|
||||
|
||||
include('edit-page-form.php');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user