In `get_adjacent_post()`, `$excluded_terms` should check term_id rather than term_taxonom_id.

See #29663, #22112.

git-svn-id: https://develop.svn.wordpress.org/trunk@30263 602fd350-edb4-49c9-b593-d223f7449a82
Add tests for `get_adjacent_post_link()` wrappers.

Props MikeHansenMe.
See #29663.

git-svn-id: https://develop.svn.wordpress.org/trunk@30264 602fd350-edb4-49c9-b593-d223f7449a82
Don't force child_of=0 for non-hierarchical taxonomies in `get_terms()`.

This forcing appears to have been introduced to save unnecessary queries, but
(a) in some cases it appeared to be causing *more* queries, and (b) it caused
incorrect results when the 'exclude_tree' param of `get_terms()` called
`get_terms()` on each item in the tree using the 'child_of' param.

Fixes #30275.

git-svn-id: https://develop.svn.wordpress.org/trunk@30265 602fd350-edb4-49c9-b593-d223f7449a82
Use `assertEqualSets()` for some `WP_Comment_Query` tests.

git-svn-id: https://develop.svn.wordpress.org/trunk@30266 602fd350-edb4-49c9-b593-d223f7449a82
Unset the default permalink structure after installing Multisite for automated tests.

Most of our unit tests that involve permalinks expect non-pretty permalinks;
this is the default setting for WP. However, when the test suite installs
multisite, `populate_network()` is run before WP recogizes itself as multisite,
which leads to pretty permalinks being set. This breaks a number of unit
tests in ways that are difficult to trace.

git-svn-id: https://develop.svn.wordpress.org/trunk@30267 602fd350-edb4-49c9-b593-d223f7449a82
Correct variable name in `WP_UnitTestCase::temp_filename()`.

git-svn-id: https://develop.svn.wordpress.org/trunk@30268 602fd350-edb4-49c9-b593-d223f7449a82
Twenty Fifteen: update earlier patch to borders on linked images so we're not affecting the display of linked icons in widgets.

Props iamtakashi, fixes #29963.



git-svn-id: https://develop.svn.wordpress.org/trunk@30269 602fd350-edb4-49c9-b593-d223f7449a82
Twenty Fifteen: use antispambot to obfuscate email adresses in the social links menu.

Props tywayne, fixes #30214.



git-svn-id: https://develop.svn.wordpress.org/trunk@30270 602fd350-edb4-49c9-b593-d223f7449a82
Twenty Fifteen: improve naming and documentation of customizer js files to match core filenaming conventions.

Props celloexpressions, fixes #30160.



git-svn-id: https://develop.svn.wordpress.org/trunk@30271 602fd350-edb4-49c9-b593-d223f7449a82
Twenty Fifteen: adding help text to explain how color changes to header and sidebar are affected by responsive design.

Props iamtakashi, iandstewart, fixes #30165.



git-svn-id: https://develop.svn.wordpress.org/trunk@30272 602fd350-edb4-49c9-b593-d223f7449a82
Twenty Fifteen: Removing email obfuscation from social links menu.

We really should be doing this in all menus, at which point this becomes core or plugin functionality, not a theme feature.

Closes #30214.



git-svn-id: https://develop.svn.wordpress.org/trunk@30273 602fd350-edb4-49c9-b593-d223f7449a82
Twenty Fifteen: add instant updating of color schemes to the customizer with postMessage.

Props celloexpressions, bradyvercher, westonruter, fixes #29988.




git-svn-id: https://develop.svn.wordpress.org/trunk@30274 602fd350-edb4-49c9-b593-d223f7449a82
Twenty Fifteen: updates to customize-preview.js missed in r30274.

Props celloexpressions, See #29988.



git-svn-id: https://develop.svn.wordpress.org/trunk@30275 602fd350-edb4-49c9-b593-d223f7449a82
Share fixtures across a number of query-related test classes.

This shaves 10-20 seconds off the running time for the suite.

See #30017.

git-svn-id: https://develop.svn.wordpress.org/trunk@30276 602fd350-edb4-49c9-b593-d223f7449a82
Share fixtures across 'canonical' automated tests.

Sharing these fixtures results in a speed improvement of almost one minute per
run of the test suite.

My hope is that future WordPress developers will spend this extra minute with
their loved ones, for life on this earth is short, my friends, and the moments
you spend watching WP generate test data can never again be reclaimed from the
grizzled clutches of Time, and none of us are really getting younger, I mean,
geez, have you looked in the mirror lately, Gandalf?

See #30017.

git-svn-id: https://develop.svn.wordpress.org/trunk@30277 602fd350-edb4-49c9-b593-d223f7449a82
In unit tests, use `wpmu_delete_user()` to delete users when `is_multisite()`.

`wp_delete_user()` doesn't remove the user from the database, which causes all
sorts of problems in certain cases.

Props jeremyfelt.
See [30277], #30017.

git-svn-id: https://develop.svn.wordpress.org/trunk@30278 602fd350-edb4-49c9-b593-d223f7449a82
Use `remove_added_uploads()` in `tearDown()` for XMLRPC tests

This cleanup avoids false test failures due to incrementing filenames in the uploads directory.

Fixes #30290


git-svn-id: https://develop.svn.wordpress.org/trunk@30279 602fd350-edb4-49c9-b593-d223f7449a82
Document default arguments for `WP_Comment_Query` class as a hash notation.

Props boonebgorges, DrewAPicture.
See #30111.


git-svn-id: https://develop.svn.wordpress.org/trunk@30280 602fd350-edb4-49c9-b593-d223f7449a82
Cross-reference `WP_Comment_Query::query()` as the location for finding information on default arguments for `WP_Comment_Query`.

Also updates the return types on `get_comments()` and `get_approved_comments()`, as an integer can also be returned if the `$count` argument is true.

Fixes #30111.


git-svn-id: https://develop.svn.wordpress.org/trunk@30281 602fd350-edb4-49c9-b593-d223f7449a82
Remove failing unit tests from 'canonical' group.

Each removed test has been turned into a patch and posted to the open ticket
that it belongs to.

See #30284.

git-svn-id: https://develop.svn.wordpress.org/trunk@30282 602fd350-edb4-49c9-b593-d223f7449a82