[wp-trac] [WordPress Trac] #37974: Add multi-panel feature to pages through add_theme_support

WordPress Trac noreply at wordpress.org
Thu Oct 13 04:32:00 UTC 2016


#37974: Add multi-panel feature to pages through add_theme_support
-----------------------------------------+------------------
 Reporter:  karmatosed                   |       Owner:
     Type:  task (blessed)               |      Status:  new
 Priority:  normal                       |   Milestone:  4.7
Component:  Themes                       |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  has-ux-feedback needs-patch  |     Focuses:  ui
-----------------------------------------+------------------

Comment (by pento):

 In [attachment:37974.10.diff]

 * Remove the requirement for themes to `add_theme_support( 'front-page-
 sections' )`. This now works with any theme that uses a
 [https://developer.wordpress.org/themes/basics/the-loop/#the-loop-in-
 detail standard loop].
 * Move the `front_page_sections` setting storage from a theme mod to an
 option.
 * Add a `front_page_sections_post_types` filter, as the theme support
 parameter can't be used for customising the post types list.
 * When in `the_loop()` for a static front page with sections, `the_post()`
 will now output `<a id="about.foo"/>`. This is obviously a big change, it
 will also be hidden behind the `WP_Query` arg I mentioned in
 [comment:117].
 * `get_front_page_section_url()` now returns `/#about.foo` as a redirect
 for `/about/foo/`.
 * Added a "Front Page Section" post state to the post list table.

 Side note: I didn't add support for redirecting old post slugs, because we
 don't do that for hierarchical post types. If we do decide to go ahead
 with the redirect, we'll need to add that for non-hierarchical post types.

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


More information about the wp-trac mailing list