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.
post-new in WP4.2.2-ja

In English blog, “Add New Post” page is like this.
(Red square is textarea.)
edit-content-field

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:

Ads

Ad

Ad

Share

  • Add this article to hatena bookmark
  • 0

Follow

Ads

Ad

Leave a Comment

Your email address will not be published. Required fields are marked *