Partially revert [24460] and only flush insert_id on the next insert or replace query, as we had been doing before.

Merges [24494] to the 3.5 branch.



git-svn-id: http://core.svn.wordpress.org/branches/3.5@24495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Only call wp_kses_bad_protocol() in WP_HTTP if it exists. It does not in setup-config.php. Merges [24497] to the 3.5 branch.



git-svn-id: http://core.svn.wordpress.org/branches/3.5@24498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
The 3.5 branch is now 3.5.3-alpha.



git-svn-id: http://core.svn.wordpress.org/branches/3.5@24501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
New build of SWFUpload that ignores URL query strings. Merges [24880] to 3.5.



git-svn-id: http://core.svn.wordpress.org/branches/3.5@24882 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Merge branch '3.5-branch' into 02-tdmu_mods