| 1 | Index: wp-admin/includes/post.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/includes/post.php (revision 17488) |
|---|
| 4 | +++ wp-admin/includes/post.php (working copy) |
|---|
| 5 | @@ -25,9 +25,16 @@ |
|---|
| 6 | |
|---|
| 7 | if ( $update ) |
|---|
| 8 | $post_data['ID'] = (int) $post_data['post_ID']; |
|---|
| 9 | - $post_data['post_content'] = isset($post_data['content']) ? $post_data['content'] : ''; |
|---|
| 10 | - $post_data['post_excerpt'] = isset($post_data['excerpt']) ? $post_data['excerpt'] : ''; |
|---|
| 11 | - $post_data['post_parent'] = isset($post_data['parent_id'])? $post_data['parent_id'] : ''; |
|---|
| 12 | + |
|---|
| 13 | + if ( isset( $post_data['content'] ) ) |
|---|
| 14 | + $post_data['post_content'] = $post_data['content']; |
|---|
| 15 | + |
|---|
| 16 | + if ( isset( $post_data['excerpt'] ) ) |
|---|
| 17 | + $post_data['post_excerpt'] = $post_data['excerpt']; |
|---|
| 18 | + |
|---|
| 19 | + if ( isset( $post_data['parent_id'] ) ) |
|---|
| 20 | + $post_data['post_parent'] = $post_data['parent_id']; |
|---|
| 21 | + |
|---|
| 22 | if ( isset($post_data['trackback_url']) ) |
|---|
| 23 | $post_data['to_ping'] = $post_data['trackback_url']; |
|---|
| 24 | |
|---|
| 25 | @@ -1700,4 +1707,4 @@ |
|---|
| 26 | <div id="preloaded-dialogs" style="display:none;"> |
|---|
| 27 | <?php do_action('tiny_mce_preload_dialogs'); ?> |
|---|
| 28 | </div> |
|---|
| 29 | -<?php } |
|---|
| 30 | \ No newline at end of file |
|---|
| 31 | +<?php } |
|---|