Ticket #16673: 16673.2.diff

File 16673.2.diff, 1.6 KB (added by johnjamesjacoby, 2 years ago)

Refresh

Line 
1Index: wp-admin/includes/post.php
2--- wp-admin/includes/post.php Base (BASE)
3+++ wp-admin/includes/post.php Locally Modified (Based On LOCAL)
4@@ -25,9 +25,16 @@
5
6        if ( $update )
7                $post_data['ID'] = (int) $post_data['post_ID'];
8-       $post_data['post_content'] = isset($post_data['content']) ? $post_data['content'] : '';
9-       $post_data['post_excerpt'] = isset($post_data['excerpt']) ? $post_data['excerpt'] : '';
10-       $post_data['post_parent'] = isset($post_data['parent_id'])? $post_data['parent_id'] : '';
11+
12+       if ( isset( $post_data['content'] ) )
13+               $post_data['post_content'] = $post_data['content'];
14+
15+       if ( isset( $post_data['excerpt'] ) )
16+               $post_data['post_excerpt'] = $post_data['excerpt'];
17+
18+       if ( isset( $post_data['parent_id'] ) )
19+               $post_data['post_parent'] = (int) $post_data['parent_id'];
20+
21        if ( isset($post_data['trackback_url']) )
22                $post_data['to_ping'] = $post_data['trackback_url'];
23
24@@ -1721,9 +1728,9 @@
25
26 function wp_quicktags() {
27        global $tinymce_version;
28-
29+
30        wp_preload_dialogs( array( 'plugins' => 'wpdialogs,wplink,wpfullscreen' ) );
31-
32+
33        if ( !user_can_richedit() ) {
34                wp_enqueue_style( 'tinymce-buttons', includes_url('js/tinymce/themes/advanced/skins/wp_theme/ui.css'), array(), $tinymce_version );
35                wp_print_styles('tinymce-buttons');
36@@ -1776,7 +1783,7 @@
37        $buttons = apply_filters( 'wp_fullscreen_buttons', $buttons );
38
39        foreach ( $buttons as $button => $args ) {
40-               if ( 'separator' == $args ) { ?>
41+               if ( 'separator' == $args ) { ?>
42                        <div><span aria-orientation="vertical" role="separator" class="mceSeparator"></span></div>
43 <?php          continue;
44                } ?>