[wp-trac] [WordPress Trac] #32187: List table: Pages displayed in "Excerpt View"
WordPress Trac
noreply at wordpress.org
Wed Apr 29 14:51:23 UTC 2015
#32187: List table: Pages displayed in "Excerpt View"
----------------------------+-----------------------------
Reporter: afercia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 4.2
Severity: normal | Keywords:
Focuses: ui |
----------------------------+-----------------------------
Pages (and all hierarchical posts) listing may end up being displayed in
"Excerpt view". Looks a bit weird to me since, as far as I get, the
"Excerpt View" was conceived for Posts and also can see some code that
tries to don't display Excerpts for hierarchical posts, namely in
`WP_Posts_List_Table->single_row()`:
{{{
if ( ! $this->hierarchical_display && 'excerpt' == $mode &&
current_user_can( 'read_post', $post->ID ) )
the_excerpt();
}}}
To reproduce:
- go in the '''Posts''' listing
- click on the "Excerpt view" icon
- go on the Pages listing
- click on any of the table headers links (Title, Comments, Date) to have
an order different from the default `'menu_order title'`
- now you can see the "excerpts" and also the time below the date
Screenshot:
[[Image(https://cldup.com/8IGG-1Rrhh.png)]]
Worth noting there's no UI control to switch view in the Pages screen.
Looks like `$this->hierarchical_display` is set to true only for the
default order: as soon as you change order, you get the Excerpt View.
See `WP_Posts_List_Table->prepare_items()`
https://core.trac.wordpress.org/browser/tags/4.2/src/wp-admin/includes
/class-wp-posts-list-table.php#L109
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32187>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list