[wp-trac] [WordPress Trac] #33404: Customizer Menus: Search results can have duplicate items
WordPress Trac
noreply at wordpress.org
Mon Nov 16 20:12:51 UTC 2015
#33404: Customizer Menus: Search results can have duplicate items
--------------------------+-----------------------------
Reporter: valendesigns | Owner:
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Future Release
Component: Customize | Version: 4.3
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: administration
--------------------------+-----------------------------
Comment (by boonebgorges):
Replying to [comment:18 westonruter]:
> @boonebgorges do you consider this to be a bug in `get_terms()`?
If the issue is as you've described it, then yes. But I can't seem to
reproduce. Queries containing a `number` and an `offset` will create a SQL
clause like `LIMIT x,y`. If the `offset` is higher than the number of
terms, then `SELECT * FROM wp_terms ... LIMIT x,y` will return an empty
array. https://core.trac.wordpress.org/browser/tags/4.3.1/src/wp-
includes/taxonomy.php?marks=1921-1930#L1917
Maybe I'm testing incorrectly?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33404#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list