Add arguments to the wp_dropdown_cats filter, and docs.

props olivM.
fixes #24103.


git-svn-id: http://develop.svn.wordpress.org/trunk@27065 602fd350-edb4-49c9-b593-d223f7449a82
Ensure the last separator is removed from the user and network admin menus.

props johnjamesjacoby.
fixes #25425.


git-svn-id: http://develop.svn.wordpress.org/trunk@27066 602fd350-edb4-49c9-b593-d223f7449a82
Fix an error in SQL generation when `perm` is set and an array is passed for `post_status`. Adds unit test.

Props oso96_2000.
Fixes #25523.



git-svn-id: http://develop.svn.wordpress.org/trunk@27067 602fd350-edb4-49c9-b593-d223f7449a82
New resetpass_form hook in wp-login.php.

props romaimperator.
fixes #21044.


git-svn-id: http://develop.svn.wordpress.org/trunk@27068 602fd350-edb4-49c9-b593-d223f7449a82
Use get_current_user_id() instead of $user_ID in user-edit.php.

props kovshenin.
fixes #26274.


git-svn-id: http://develop.svn.wordpress.org/trunk@27069 602fd350-edb4-49c9-b593-d223f7449a82
Update @return statement of wp_nonce_url(): The URL is escaped.

props c3mdigital.
see #4221.

git-svn-id: http://develop.svn.wordpress.org/trunk@27070 602fd350-edb4-49c9-b593-d223f7449a82
WP_Link: convert < > and " to HTML entities when setting link title for the Text editor. Fixes #25704.

git-svn-id: http://develop.svn.wordpress.org/trunk@27071 602fd350-edb4-49c9-b593-d223f7449a82
Ensure compatibility with MySQL 5.6 which has stricter SQL modes by default.

Disables NO_ZERO_DATE, ONLY_FULL_GROUP_BY, STRICT_TRANS_TABLES, STRICT_ALL_TABLES, TRADITIONAL. Introduces wpdb::set_sql_mode() with an incompatible_sql_modes filter so a plugin can alter the set mode after the fact.

props pento.
fixes #26847.


git-svn-id: http://develop.svn.wordpress.org/trunk@27072 602fd350-edb4-49c9-b593-d223f7449a82
Throw an incorrect usage notice when the query argument of wpdb::prepare() does not include a placeholder.

props ounziw.
fixes #25604.


git-svn-id: http://develop.svn.wordpress.org/trunk@27073 602fd350-edb4-49c9-b593-d223f7449a82
Add a comment for [27073] as someone will inevitably complain it is tricked by % in a string. see #25604.


git-svn-id: http://develop.svn.wordpress.org/trunk@27074 602fd350-edb4-49c9-b593-d223f7449a82
When the MySQL server has "gone away," attempt to reconnect and retry the query.

props pento.
see #5932.


git-svn-id: http://develop.svn.wordpress.org/trunk@27075 602fd350-edb4-49c9-b593-d223f7449a82
Remove an unnecessary variable passed to wpdb::prepare() during multisite load.

props jeremyfelt.
fixes #26941.


git-svn-id: http://develop.svn.wordpress.org/trunk@27076 602fd350-edb4-49c9-b593-d223f7449a82
Consistently trim and unslash search queries for the users list tables.

props aubreypwd.
fixes #26115.


git-svn-id: http://develop.svn.wordpress.org/trunk@27077 602fd350-edb4-49c9-b593-d223f7449a82
Editor: add :focus style for the Quicktags buttons, fixes #26932

git-svn-id: http://develop.svn.wordpress.org/trunk@27078 602fd350-edb4-49c9-b593-d223f7449a82
Open previews of different posts in different windows/tabs. Prevent confusion when using a former preview window again if the user navigated to edit another post. If the first post is still being edited, clicking Preview there will use the current window to show the preview. Props ippetkov, fixes #20233.

git-svn-id: http://develop.svn.wordpress.org/trunk@27079 602fd350-edb4-49c9-b593-d223f7449a82
Consolidate "close on Escape" in the media modal, DFW, wpLink and Thickbox. Props kovshenin, fixes #26854.

git-svn-id: http://develop.svn.wordpress.org/trunk@27080 602fd350-edb4-49c9-b593-d223f7449a82
Properly invalidate the cache for `wp_count_posts()` on insert, trash, or when transitioning `post_status` inside of `_transition_post_status()`. Introduces `_count_posts_cache_key()`. Adds unit tests.

Props mark8barnes, for bringing this to our attention in an initial patch.
Fixes #21879.



git-svn-id: http://develop.svn.wordpress.org/trunk@27081 602fd350-edb4-49c9-b593-d223f7449a82
Add braces around conditionals. props TobiasBg. fixes #25704.

git-svn-id: http://develop.svn.wordpress.org/trunk@27082 602fd350-edb4-49c9-b593-d223f7449a82
TinyMCE: don't replace <i> with <em> and <b> with <strong> and don't remove them when empty, see #24067, see #23037.

git-svn-id: http://develop.svn.wordpress.org/trunk@27083 602fd350-edb4-49c9-b593-d223f7449a82
Add back missing var definition in wplink.js, props TobiasBg, see #24067

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