[wp-trac] [WordPress Trac] #45638: Comparison of post_type of post.php

WordPress Trac noreply at wordpress.org
Fri Dec 14 11:00:21 UTC 2018


#45638: Comparison of post_type of post.php
-------------------------------+-----------------------------
 Reporter:  tmatsuur           |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  5.0.1
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 I can not publish with version 5.0.1 using the classic editor.
 This malfunction does not occur in English environment, it seems to be a
 malfunction occurring in other language environment.

 The cause of this problem is in post.php.

 /wp-admin/post.php : l43
 {{{
 if ( isset( $_POST['post_type'] ) && $post && $post_type !==
 $_POST['post_type'] ) {
 }}}

 In the Japanese environment, `$post_type` is 'post', but `$_
 POST['post_type']` is '投稿'.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45638>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list