Generally, duplicate terms returned by a term query are eliminated in PHP, after the database query takes place. This technique doesn't work properly when the query parameters specify the `number` of results, since the results of a `SELECT ... LIMIT x...` query may be deduplicated to a count less than `x`. In these cases, we force the original query to be `DISTINCT`. Props elvishp2006. Fixes #41796. Built from https://develop.svn.wordpress.org/trunk@41377 git-svn-id: http://core.svn.wordpress.org/trunk@41210 1a063a9b-81f0-0310-95a4-ce76da25c4cd
33 KiB
33 KiB