Improve tests for domain_exists()

* Split existing tests for `domain_exists()` into many smaller tests.
* Make slightly fewer, more accurate assertions.
* Remove unnecessary site creation via factory.

See #30080


git-svn-id: https://develop.svn.wordpress.org/trunk@30114 602fd350-edb4-49c9-b593-d223f7449a82
Unserialize `get_metadata()` results when 'key' is omitted.

Props mattkeys, nacin.
Fixes #15030.

git-svn-id: https://develop.svn.wordpress.org/trunk@30115 602fd350-edb4-49c9-b593-d223f7449a82
Twenty Fifteen: Change version compare string to '4.1-alpha' to avoid an error for alpha and beta testers during development.

fixes #30137.

git-svn-id: https://develop.svn.wordpress.org/trunk@30116 602fd350-edb4-49c9-b593-d223f7449a82
Use correct file name in a hook comment.

props wedi.
fixes #30200.

git-svn-id: https://develop.svn.wordpress.org/trunk@30117 602fd350-edb4-49c9-b593-d223f7449a82
Move `term_exists()` tests to their own file.

git-svn-id: https://develop.svn.wordpress.org/trunk@30118 602fd350-edb4-49c9-b593-d223f7449a82
Correct two parameter types in the `wp_save_post_revision_check_for_changes` hook documentation.

Props johnbillion.
Fixes #30185.


git-svn-id: https://develop.svn.wordpress.org/trunk@30119 602fd350-edb4-49c9-b593-d223f7449a82
Add verbose docs to `media-views.js`.

Props ericlewis.
See #30193.


git-svn-id: https://develop.svn.wordpress.org/trunk@30120 602fd350-edb4-49c9-b593-d223f7449a82
Bump db_version and add upgrade routine for schema change in [30056].

Fixes #22023.

git-svn-id: https://develop.svn.wordpress.org/trunk@30121 602fd350-edb4-49c9-b593-d223f7449a82
Correct references of `@uses $wpdb` in core documentation to use `@global`.

See #30191, [30105].
Fixes #30217.


git-svn-id: https://develop.svn.wordpress.org/trunk@30122 602fd350-edb4-49c9-b593-d223f7449a82
Fix JSHint errors introduced in [30120].

see #30193.

git-svn-id: https://develop.svn.wordpress.org/trunk@30123 602fd350-edb4-49c9-b593-d223f7449a82
JSHint after [30120].



git-svn-id: https://develop.svn.wordpress.org/trunk@30124 602fd350-edb4-49c9-b593-d223f7449a82
JSHint after [30124].


git-svn-id: https://develop.svn.wordpress.org/trunk@30125 602fd350-edb4-49c9-b593-d223f7449a82
Customizer: Improve `ColorControl`'s `wpColorPicker` to update UI based on setting changes.

Update Twenty Fifteen's `colorScheme` control to properly interact with the API, using `wp.customize.control()` instead of traversing DOM for other controls' container elements and stop manually updating color control UIs.

props westonruter.
fixes #30031.

git-svn-id: https://develop.svn.wordpress.org/trunk@30126 602fd350-edb4-49c9-b593-d223f7449a82
Add some JSDoc blocks to `revisions.js`.

Props ericlewis.
See #30222.



git-svn-id: https://develop.svn.wordpress.org/trunk@30127 602fd350-edb4-49c9-b593-d223f7449a82
Allow revision Backbone classes to be used on pages other than `revision.php`.

Props ericlewis.
Fixes #30221.


git-svn-id: https://develop.svn.wordpress.org/trunk@30128 602fd350-edb4-49c9-b593-d223f7449a82
Add a single responsibility function for outputting Revisions JS templates: `wp_print_revision_templates()`.

Use it in `wp-admin/revision.php`.

Props ericlewis.
Fixes #30220.


git-svn-id: https://develop.svn.wordpress.org/trunk@30129 602fd350-edb4-49c9-b593-d223f7449a82
Set `revision.settings` via short-circuit check for `window` property: `window._wpRevisionsSettings || {}`

Props ericlewis.
Fixes #30218.


git-svn-id: https://develop.svn.wordpress.org/trunk@30130 602fd350-edb4-49c9-b593-d223f7449a82
Revisions modules should not rely on global settings:

* Only pass in global settings on `init`, this allows the classes to be used agnostically elsewhere
* Clean up some erroneous/weird Backbone syntax

Props ericlewis, wonderboymusic.
Fixes #30219.


git-svn-id: https://develop.svn.wordpress.org/trunk@30131 602fd350-edb4-49c9-b593-d223f7449a82
Fix unit test for video shortcode after [30082].

Fixes #30078.


git-svn-id: https://develop.svn.wordpress.org/trunk@30132 602fd350-edb4-49c9-b593-d223f7449a82
[28785] introduced a bug, where encoded query arguments were decoded by `parse_str()` inside of `wp_parse_str()` but never re-encoded later on.

This encodes them, adds unit test.

Props obenland.
Fixes #29636.


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