Disable ability to restore a revision if another user has the post lock

props adamsilverstein. Fixes #24829 for 3.6.


git-svn-id: http://core.svn.wordpress.org/branches/3.6@24828 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Rename the new 'left'/'right' flags on the `_wp_post_revision_field_$field` filter to 'from'/'to'.

Fixes #24848 for 3.6.

git-svn-id: http://core.svn.wordpress.org/branches/3.6@24836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Fix a variable typo in `get_post_gallery_images()`.

props rodrigosprimo. Fixes #24202 for 3.6.

git-svn-id: http://core.svn.wordpress.org/branches/3.6@24838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Fix wrong use of `esc_html_e()`.

Props ocean90. Fixes #24854 for 3.6.

git-svn-id: http://core.svn.wordpress.org/branches/3.6@24842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Avoid racing TinyMCE, which avoids the creation of unnecessary autosaves. props azaozz. see #7392, for 3.6.

git-svn-id: http://core.svn.wordpress.org/branches/3.6@24852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Tooltips for 3.6 features: Revisions, Post Locking.

Props siobhan. See #24832 for 3.6.

git-svn-id: http://core.svn.wordpress.org/branches/3.6@24854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Remove unnecessary cap checks from [24854]. You need these capabilities (or equivalent) to access the screens for these feature pointers. see #24832.

Merges [24855] to the 3.6 branch.



git-svn-id: http://core.svn.wordpress.org/branches/3.6@24856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Update HTML classes in the audio and video shortcodes. props rfair404. fixes #24820.

Merges [24857] to the 3.6 branch.



git-svn-id: http://core.svn.wordpress.org/branches/3.6@24858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Change 'Change two revisions' to 'Compare any two revisions' for clarity. props siobhan. see #24804.

Merges [24859] to the 3.6 branch.



git-svn-id: http://core.svn.wordpress.org/branches/3.6@24860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Update MediaElement.js SWF file from upstream. Fixes issues with controls. fixes #24183.

Merges [24861] to the 3.6 branch.



git-svn-id: http://core.svn.wordpress.org/branches/3.6@24862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Compress scripts/styles: 3.6-RC2-24863.

git-svn-id: http://core.svn.wordpress.org/branches/3.6@24863 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Revisions: Fix PHP loading of comparison to first revision, and premature rendering of tooltip.

Props aaroncampbell, markjaquith. Fixes #24873 for 3.6.

git-svn-id: http://core.svn.wordpress.org/branches/3.6@24865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Fix pass by reference issue. see #24873.

Merges [24865] to the 3.6 branch.



git-svn-id: http://core.svn.wordpress.org/branches/3.6@24867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Unique load array in load-scripts and load-styles. Merges [24868] to 3.6.



git-svn-id: http://core.svn.wordpress.org/branches/3.6@24869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Limit pingback response size. fixes #4137.



git-svn-id: http://core.svn.wordpress.org/branches/3.6@24870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Reset $wpdb->insert_id on a failed INSERT or REPLACE. See [24459] [24494].

Merges [24872] to the 3.6 branch.



git-svn-id: http://core.svn.wordpress.org/branches/3.6@24873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Fixes JavaScript error caused by [24828] which was an improper port of [24827]

See #24829


git-svn-id: http://core.svn.wordpress.org/branches/3.6@24874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Fix potential SQLi through improper use of API functions. For 3.6.


git-svn-id: http://core.svn.wordpress.org/branches/3.6@24876 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Delete old autosave if new autosave has same content as the post.

Props nacin. Fixes #7392 for 3.6.

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



git-svn-id: http://core.svn.wordpress.org/branches/3.6@24881 1a063a9b-81f0-0310-95a4-ce76da25c4cd