WordPress.org

Make WordPress Core

Ticket #12049: 12049.diff

File 12049.diff, 1.5 KB (added by nacin, 4 years ago)
  • wp-admin/includes/dashboard.php

     
    412412                <p class="submit"> 
    413413                        <input type="hidden" name="action" id="quickpost-action" value="post-quickpress-save" /> 
    414414                        <input type="hidden" name="quickpress_post_ID" value="<?php echo (int) $post->ID; ?>" /> 
     415                        <input type="hidden" name="post_type" value="post" /> 
    415416                        <?php wp_nonce_field('add-post'); ?> 
    416417                        <input type="submit" name="save" id="save-post" class="button" tabindex="4" value="<?php esc_attr_e('Save Draft'); ?>" /> 
    417418                        <input type="reset" value="<?php esc_attr_e( 'Reset' ); ?>" class="button" /> 
  • wp-admin/index-extra.php

     
    77 */ 
    88 
    99/** Load WordPress Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once( 'admin.php' ); 
    1111 
    1212/** Load WordPress Administration Dashboard API */ 
    1313require( 'includes/dashboard.php' ); 
    1414 
    15 /** Load Magpie RSS API or custom RSS API */ 
    16 require_once (ABSPATH . WPINC . '/rss.php'); 
     15@header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); 
    1716 
    18 @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); 
    19  
    2017switch ( $_GET['jax'] ) { 
    2118 
    2219case 'dashboard_incoming_links' :