Skip to content

Commit

Permalink
Merge pull request #2132 from matipojo/release/1.6.2
Browse files Browse the repository at this point in the history
Send MIME Type header like WP admin-header.
  • Loading branch information
KingYes committed Aug 3, 2017
2 parents e2a7fa9 + cc898f4 commit c35f236
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init( $die = true ) {
return;
}

// Send MIME Type header like WP admin-header.
@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));

query_posts( [ 'p' => $this->_post_id, 'post_type' => get_post_type( $this->_post_id ) ] );

Plugin::$instance->db->switch_to_post( $this->_post_id );
Expand Down

0 comments on commit c35f236

Please sign in to comment.