| 1 | diff --git src/wp-admin/post.php src/wp-admin/post.php |
|---|
| 2 | index 805c46e..0609e7a 100644 |
|---|
| 3 | --- src/wp-admin/post.php |
|---|
| 4 | +++ src/wp-admin/post.php |
|---|
| 5 | @@ -162,6 +162,9 @@ case 'edit': |
|---|
| 6 | exit(); |
|---|
| 7 | } |
|---|
| 8 | |
|---|
| 9 | + $wp_query = new WP_Query( array( 'p' => $post_id ) ); |
|---|
| 10 | + if ( $wp_query->have_posts() ) : while ( $wp_query->have_posts() ) : $wp_query->the_post(); |
|---|
| 11 | + |
|---|
| 12 | $post_type = $post->post_type; |
|---|
| 13 | if ( 'post' == $post_type ) { |
|---|
| 14 | $parent_file = "edit.php"; |
|---|
| 15 | @@ -208,6 +211,8 @@ case 'edit': |
|---|
| 16 | |
|---|
| 17 | include( ABSPATH . 'wp-admin/edit-form-advanced.php' ); |
|---|
| 18 | |
|---|
| 19 | + endwhile; endif; |
|---|
| 20 | + |
|---|
| 21 | break; |
|---|
| 22 | |
|---|
| 23 | case 'editattachment': |
|---|