WordPress.org

Make WordPress Core

Ticket #16673: 16673.2.diff

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

Refresh

  • wp-admin/includes/post.php

     
    2525 
    2626        if ( $update ) 
    2727                $post_data['ID'] = (int) $post_data['post_ID']; 
    28         $post_data['post_content'] = isset($post_data['content']) ? $post_data['content'] : ''; 
    29         $post_data['post_excerpt'] = isset($post_data['excerpt']) ? $post_data['excerpt'] : ''; 
    30         $post_data['post_parent'] = isset($post_data['parent_id'])? $post_data['parent_id'] : ''; 
     28 
     29        if ( isset( $post_data['content'] ) ) 
     30                $post_data['post_content'] = $post_data['content']; 
     31 
     32        if ( isset( $post_data['excerpt'] ) ) 
     33                $post_data['post_excerpt'] = $post_data['excerpt']; 
     34 
     35        if ( isset( $post_data['parent_id'] ) ) 
     36                $post_data['post_parent'] = (int) $post_data['parent_id']; 
     37 
    3138        if ( isset($post_data['trackback_url']) ) 
    3239                $post_data['to_ping'] = $post_data['trackback_url']; 
    3340 
     
    17211728 
    17221729function wp_quicktags() { 
    17231730        global $tinymce_version; 
    1724  
     1731 
    17251732        wp_preload_dialogs( array( 'plugins' => 'wpdialogs,wplink,wpfullscreen' ) ); 
    1726  
     1733 
    17271734        if ( !user_can_richedit() ) { 
    17281735                wp_enqueue_style( 'tinymce-buttons', includes_url('js/tinymce/themes/advanced/skins/wp_theme/ui.css'), array(), $tinymce_version ); 
    17291736                wp_print_styles('tinymce-buttons'); 
     
    17761783        $buttons = apply_filters( 'wp_fullscreen_buttons', $buttons ); 
    17771784 
    17781785        foreach ( $buttons as $button => $args ) { 
    1779                 if ( 'separator' == $args ) { ?> 
     1786                if ( 'separator' == $args ) { ?> 
    17801787                        <div><span aria-orientation="vertical" role="separator" class="mceSeparator"></span></div> 
    17811788<?php           continue; 
    17821789                } ?>