[wp-trac] [WordPress Trac] #17470: Display warning when editing the page_for_posts page
WordPress Trac
noreply at wordpress.org
Tue Aug 11 17:41:33 UTC 2015
#17470: Display warning when editing the page_for_posts page
-------------------------------+---------------------------------
Reporter: alexkingorg | Owner: helen
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.2
Component: Posts, Post Types | Version: 3.2
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: ui, administration
-------------------------------+---------------------------------
Comment (by greenshady):
Replying to [comment:28 philiparthurmoore]:
> If there's a simpler way about this, let me know. Always open to
suggestions.
Here's a slightly simpler version.
{{{
add_action( 'edit_form_after_title', 'my_enable_posts_page_editor', 0 );
function my_enable_posts_page_editor( $post ) {
if ( get_option( 'page_for_posts' ) != $post->ID )
return;
remove_action( 'edit_form_after_title', '_wp_posts_page_notice' );
add_post_type_support( $post->post_type, 'editor' );
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17470#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list