I can not add new post in WordPress 4.2
I updated my blog (in Japanese) to WordPress 4.2.
And I tried to add a new post.
However, I could not find a textarea to edit content in “Add New Post” page.
This is screen shot of page.
In English blog, “Add New Post” page is like this.
(Red square is textarea.)
I can not find textarea “wp-editor-area” yet.
I read source code of WordPress to get cause of this bug.
And I found a ticket and changeset that caused this bug.
But I can not understand why this change caused this bug.
In this change, value of $post_ID is 0 at WP4.2.2-ja. But, Value of $post_ID is correct at WP4.2.2-en.
(for example, this post’s $post_ID is 107).
48 49 50 51 | if ( $post_ID == get_option( 'page_for_posts' ) && empty( $post->post_content ) ) { add_action( 'edit_form_after_title', '_wp_posts_page_notice' ); remove_post_type_support( $post_type, 'editor' ); } |
Links:
- Discussion about this bug (Japanese).
- Bug: Can not update tables in non-wordpress-installation databases when the query contains non ASCII characters
Ads
Ad
Ad
Ads