[wp-trac] [WordPress Trac] #17470: Display warning when editing the page_for_posts page

WordPress Trac noreply at wordpress.org
Thu May 28 07:29: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 helen):

 Replying to [comment:22 philiparthurmoore]:
 > There's no way to override this currently, looking at [31550].

 Per my commit message:

 > Developers can elect to turn on the editor should they be using it for
 something. If the content isn't empty, the editor will show so that users
 still have access to their content.

 You can run `add_post_type_support()` again on any hook that precedes the
 `post_type_supports( $post_type, 'editor' )` check. `edit_form_top` seems
 like a decent candidate out of the many that are there. Most, if not all,
 should pass the `$post` context. I would far rather hide an editor that
 typically does nothing for the front and leads users to wondering where
 that content is supposed to show up. Themes that do use it (and I have
 built them, so I am not pretending that nobody does this) typically need
 further explanatory text in the edit screen anyway, given that this
 expectation changes between themes, so a little extra code to be
 purposeful about this use seems perfectly reasonable to me.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/17470#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list