Inline documentation for hooks in wp-admin/includes/comment.php.

props mordauk.
see #25229.

git-svn-id: http://develop.svn.wordpress.org/trunk@25434 602fd350-edb4-49c9-b593-d223f7449a82
Inline documentation for hooks in wp-admin/export.php.

props mordauk.
see #25229.

git-svn-id: http://develop.svn.wordpress.org/trunk@25435 602fd350-edb4-49c9-b593-d223f7449a82
Account for Windows and CLI instances in wp_guess_url(). Props SergeyBiryukov. See #25317


git-svn-id: http://develop.svn.wordpress.org/trunk@25436 602fd350-edb4-49c9-b593-d223f7449a82
Add 'image' type/extensions to wp_ext2type() and make it case insensitive. props xparham. fixes #25176.

git-svn-id: http://develop.svn.wordpress.org/trunk@25437 602fd350-edb4-49c9-b593-d223f7449a82
Fix several esoteric errors related to AJAX unit tests for comments:

* `wp_ajax_get_comments()` relies on the `$post_id` global - even though `$_POST['p']` is passed to every action in the test methods. If `$post_id` is still lingering in between tests and doesn't match `p` in the request, the cap check might pass while the queries for comments will blow up. I added `unset( $GLOBALS['post_id'] )` to `Tests_Ajax_GetComments::setUp()`.
* If the global `$post_id` is empty, but `$_REQUEST['p']` is not, `$post_id` is now set to `absint( $_REQUEST['p'] )` and sanity-checked in `wp_ajax_get_comments()`.
* `map_meta_cap()` always assumes that `get_comment()` succeeds when checking for the `edit_comment` cap. It doesn't. I added sanity checks in a few places where it will break early if `get_post()` or `get_comment()` are empty.
* `wp_update_comment()` always assumes `get_comment()` succeeds. It doesn't. I added a check for empty.

All AJAX unit tests run and pass in debug mode. All general unit tests pass against these changes.

Fixes #25282.



git-svn-id: http://develop.svn.wordpress.org/trunk@25438 602fd350-edb4-49c9-b593-d223f7449a82
Remove unnecessary printf(). fixes #25321.


git-svn-id: http://develop.svn.wordpress.org/trunk@25439 602fd350-edb4-49c9-b593-d223f7449a82
Reinstate an assertion commented out in [25409]. This test is skipped due to @ticket anyway. see #25282.


git-svn-id: http://develop.svn.wordpress.org/trunk@25440 602fd350-edb4-49c9-b593-d223f7449a82
Move to JSON for three api.wordpress.org endpoints. see #25311.


git-svn-id: http://develop.svn.wordpress.org/trunk@25441 602fd350-edb4-49c9-b593-d223f7449a82
Move to JSON for the plugin and theme update-check API endpoints. see #25311.


git-svn-id: http://develop.svn.wordpress.org/trunk@25442 602fd350-edb4-49c9-b593-d223f7449a82
Don't allow critical scripts to be deregistered on wp-login.php, just as we do in the rest of the admin.

props atimmer.
fixes #25017.


git-svn-id: http://develop.svn.wordpress.org/trunk@25443 602fd350-edb4-49c9-b593-d223f7449a82
Introduce a img_caption_shortcode_width filter for controlling the inline style of the image caption shortcode.

props iandunn for the initial patch.
fixes #14380.


git-svn-id: http://develop.svn.wordpress.org/trunk@25444 602fd350-edb4-49c9-b593-d223f7449a82
Introduce wp_get_sites(), a long-awaited replacement for get_blog_list().

props jeremyfelt.
see #14511.


git-svn-id: http://develop.svn.wordpress.org/trunk@25445 602fd350-edb4-49c9-b593-d223f7449a82
Proper treatment of the 'archived' field in wp_get_sites(). see #14511.


git-svn-id: http://develop.svn.wordpress.org/trunk@25446 602fd350-edb4-49c9-b593-d223f7449a82
WordPress Core Automatic Updates: Remove an accidental closure which isn't supported in PHP 5.2. See #22704


git-svn-id: http://develop.svn.wordpress.org/trunk@25447 602fd350-edb4-49c9-b593-d223f7449a82
Multisite blogs table: Convert the archived field from enum to tinyint to match the other status fields. fixes #12832.


git-svn-id: http://develop.svn.wordpress.org/trunk@25448 602fd350-edb4-49c9-b593-d223f7449a82
Update @since for wp_script_is() and wp_style_is(). props jdgrimes. see #25326.

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