mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Don't hard code post type in edit forms. Props filosofo and DD32. fixes #4991
git-svn-id: https://develop.svn.wordpress.org/trunk@6712 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -18,8 +18,7 @@ require_once('admin-header.php');
|
||||
<?php
|
||||
if ( current_user_can('edit_pages') ) {
|
||||
$action = 'post';
|
||||
$post = get_default_post_to_edit();
|
||||
$post->post_type = 'page';
|
||||
$post = get_default_page_to_edit();
|
||||
|
||||
include('edit-page-form.php');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user