Only unset() after we have confirmed we are not dealing with a WP_Error. props DH-Shredder. fixes #22824.



git-svn-id: http://core.svn.wordpress.org/trunk@23133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Only show help for upload_path and upload_url_path if those fields are visible. fixes #21720.



git-svn-id: http://core.svn.wordpress.org/trunk@23134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Two media gallery string changes, for clarity:
 * 'Random' to 'Random Order', to be clear what it controls.
 * 'Describe this image...' to 'Caption this image...', to be clear it links to the Caption field and not the revived Description field, see [23083].

props johnbillion, pavelevap.
fixes #22821.



git-svn-id: http://core.svn.wordpress.org/trunk@23135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Introduce previous_image_link and next_image_link filters. Allows customizing the gallery display order.

Props nacin
fixes #22829 for trunk


git-svn-id: http://core.svn.wordpress.org/trunk@23139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
3.5-RC5-23141 for both trunk and the 3.5 branch. New nightlies forced.



git-svn-id: http://core.svn.wordpress.org/trunk@23141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
TinyMCE: Use the correct syntax for allowing an `embed` element to be a valid child of an `object` element.

Fixes a bug in TinyMCE when using its HTML5 schema definition.

props azaozz.
see #22790.
for trunk.



git-svn-id: http://core.svn.wordpress.org/trunk@23142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Compress scripts/styles: 3.5-RC5-23143. TinyMCE updated.

git-svn-id: http://core.svn.wordpress.org/trunk@23143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
TinyMCE: Use the correct syntax for allowing an `embed` element to be a valid child of an `object` element.

Fixes a bug in TinyMCE when using its HTML5 schema definition.

props azaozz.
see #22790.
for trunk.
... with the right patch this time. [23142] was done in error.



git-svn-id: http://core.svn.wordpress.org/trunk@23144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Compress scripts/styles: 3.5-RC5-23145. TinyMCE updated.

git-svn-id: http://core.svn.wordpress.org/trunk@23145 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Delete the patch of TinyMCE's schema; new attempt. see #22790. see #22842. for the 3.5 branch.



git-svn-id: http://core.svn.wordpress.org/trunk@23149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Add TinyMCE's Schema.js to prepare for patching it. see #22790. see #22842. for trunk.



git-svn-id: http://core.svn.wordpress.org/trunk@23151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Restore the duck punch of TinyMCE's schema from [23120], along with updated rules for all HTML5 elements, as painstakingly audited against the HTML5 spec.

Remove conflicting and unnecessary code in the WP TinyMCE plugin.

Fixes all known regressions when working with the embed, object, video, audio, source, and param elements in TinyMCE.

props markjaquith, koopersmith.
fixes #22790, #22842.
fixes #22842.



git-svn-id: http://core.svn.wordpress.org/trunk@23153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Compress scripts/styles: 3.5-RC5-23155. TinyMCE updated.

git-svn-id: http://core.svn.wordpress.org/trunk@23155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
3.5-RC6 -- please test TinyMCE for regressions working with HTML5 elements, embeds and objects, etc.



git-svn-id: http://core.svn.wordpress.org/trunk@23157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Sanity checks in oEmbed XML handling.



git-svn-id: http://core.svn.wordpress.org/trunk@23158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Check for DOMDocument when parsing oEmbed XML responses.



git-svn-id: http://core.svn.wordpress.org/trunk@23160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Ignore failed uploads. props koopersmith. fixes #22849

git-svn-id: http://core.svn.wordpress.org/trunk@23162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Makes sure attachment sizes are correctly deselected in IE. Fixes size selections on insert in IE9. props koopersmith. fixes #22851.



git-svn-id: http://core.svn.wordpress.org/trunk@23163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
3.5-RC6-23166



git-svn-id: http://core.svn.wordpress.org/trunk@23166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Merge branch 'master' into ticket-6821-imagemagick