[wp-trac] [WordPress Trac] #24649: WP_Terms_List_Table displays empty pages with large hierarchical taxonomy
WordPress Trac
noreply at wordpress.org
Wed Jun 26 20:04:57 UTC 2013
#24649: WP_Terms_List_Table displays empty pages with large hierarchical taxonomy
--------------------------+-----------------------------
Reporter: csixty4 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.5.2
Severity: major | Keywords: dev-feedback
--------------------------+-----------------------------
I have a hierarchical taxonomy with 1,222 terms (oy!). In the admin (wp-
admin/edit-tags.php?taxonomy=business_areas), the first five pages of
terms display correctly (at 20 terms per page). But the sixth page on just
show an empty table -- no terms.
Commenting out these lines in class-wp-terms-list-table.php prevents the
empty display, but breaks the hierarchy:
{{{
if ( $term->parent != $parent && empty( $_REQUEST['s'] ) ) {
continue;
}
}}}
Then I get a list like:
{{{
Musical Instruments and Repairs
— Brass Instruments and Repairs
— Bricklaying Services
}}}
…which tells me the terms are getting sorted by name, irrespective of the
hierarchy. That might ultimately be the source of the problem.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24649>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list