Commit Graph

11320 Commits

Author SHA1 Message Date
Andrew Ozz bc2a6a7f12 TinyMCE: don't remove empty <i>, <b>, <em> and <strong> matching the behavior in WordPress 3.4/TinyMCE 3.4.9, see #22477 for trunk
git-svn-id: http://core.svn.wordpress.org/trunk@23222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-27 22:44:10 +00:00
Andrew Nacin dd0993f645 Update the script loader to reflect the actual version of Underscore.js in trunk. props markoheijnen.
git-svn-id: http://core.svn.wordpress.org/trunk@23220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-27 21:29:29 +00:00
Andrew Ozz 25f7e53d95 TinyMCE: prevent <a> from wrapping block elements, fixes #22888 for trunk
git-svn-id: http://core.svn.wordpress.org/trunk@23219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-27 21:01:56 +00:00
Andrew Nacin 61bfa78509 Limit the execution of wp_enqueue_media() to once per page. Prevents multiple _wpMediaViewsL10n variables. see #22843.
git-svn-id: http://core.svn.wordpress.org/trunk@23214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-27 16:07:12 +00:00
Andrew Nacin 0d3d52a92a Always return arrays from get_post_ancestors(). Return an array when passed a value that evaluates to false.
props dannydehaan.
fixes #22882 for trunk.
Test: [1177/tests].



git-svn-id: http://core.svn.wordpress.org/trunk@23212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-27 15:48:18 +00:00
Andrew Nacin 7c5a0db7c1 Return WP_Error from wp_update_user() on a non-existent user, avoiding a fatal error in the process.
props n7studios, SergeyBiryukov.
fixes #22858 for trunk.
Unit tests: [11776/tests].



git-svn-id: http://core.svn.wordpress.org/trunk@23210 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-27 15:36:08 +00:00
Andrew Nacin 8d52e9fc68 Always call get_post() in get_page_uri() to ensure we have a WP_Post object, which lazy-loads the ancestors this function requires.
props dd32
fixes #22883
Unit tests: [1175/tests]



git-svn-id: http://core.svn.wordpress.org/trunk@23208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-27 15:26:05 +00:00
Andrew Nacin f9d07a1928 Revert [21942] and have wp_publish_post() deal with the database directly. clean_post_cache() is now also called directly due to [21943].
fixes #22944 for trunk.
Unit tests: [1174/tests].

see #11399. see #21963.



git-svn-id: http://core.svn.wordpress.org/trunk@23206 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-27 15:14:43 +00:00
Andrew Nacin 5c283f52ba Correct the deprecated notice in AtomPub's deprecated class. see #22855.
git-svn-id: http://core.svn.wordpress.org/trunk@23204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-26 20:35:27 +00:00
Andrew Nacin a7000ad7fa Encode brackets in the load-scripts.php URL, as these are considered unsafe characters and can be misunderstood. (See RFC 1738.) In particular, a "security" rewrite rule from a plugin blocked URLs with unencoded brackets. fixes #22899 for trunk.
git-svn-id: http://core.svn.wordpress.org/trunk@23201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-26 20:26:19 +00:00
Bot (Assets) 0fd3e567d7 Compress scripts/styles: 3.6-alpha-23200.
git-svn-id: http://core.svn.wordpress.org/trunk@23200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-23 22:58:43 +00:00
Helen Hou-Sandí 42c9c61003 Minor phpdoc fixes for register_sidebar(). props SergeyBiryukov. fixes #22905.
git-svn-id: http://core.svn.wordpress.org/trunk@23199 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-23 22:11:37 +00:00
Helen Hou-Sandí b4c58e41aa Add missing @ to phpdoc for gd_edit_image_support(). props tw2113. fixes #23046.
git-svn-id: http://core.svn.wordpress.org/trunk@23197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-23 16:22:22 +00:00
Helen Hou-Sandí a3b736bdd2 Refresh phpdoc for register_sidebar(). props jeremyfelt, SergeyBiryukov. fixes #22905.
git-svn-id: http://core.svn.wordpress.org/trunk@23196 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-23 16:18:16 +00:00
Bot (Assets) cb8c12d384 Compress scripts/styles: 3.6-alpha-23193. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@23193 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-21 18:52:36 +00:00
Andrew Ozz 004576872a TinyMCE: update to latest source including the WebKit backspace fix, see #23010
git-svn-id: http://core.svn.wordpress.org/trunk@23192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-21 18:18:58 +00:00
Helen Hou-Sandí b1f1579604 its <=> it's in documentation, along with a rogue the, The, and looses. props trepmal. fixes #22665.
git-svn-id: http://core.svn.wordpress.org/trunk@23191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-20 15:55:32 +00:00
Helen Hou-Sandí 4e7abbf87b Correct phpdoc for wp-includes/plugin.php: wp-content/plugins/, not wp-content/plugin/. props technosailor. fixes #23024.
git-svn-id: http://core.svn.wordpress.org/trunk@23190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-20 15:49:55 +00:00
Helen Hou-Sandí ba9220bd1f s/Santizes/Sanitizes/ in phpdoc for sanitize_html_class(). props cais. fixes #22890.
git-svn-id: http://core.svn.wordpress.org/trunk@23189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-20 15:40:37 +00:00
Helen Hou-Sandí c8db0f0777 Correct phpdoc @since for wp_oembed_remove_provider(). props hebbet. fixes #22788.
git-svn-id: http://core.svn.wordpress.org/trunk@23186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-20 15:22:21 +00:00
Andrew Nacin 55fb020e84 Have the 'jquery' script handle be a parent of both jQuery core and jQuery Migrate. see #22975.
git-svn-id: http://core.svn.wordpress.org/trunk@23183 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-18 00:56:27 +00:00
Andrew Nacin bc9417af88 Update jQuery Migrate plugin to latest, fixing .toggle(boolean) usage. see #22975.
git-svn-id: http://core.svn.wordpress.org/trunk@23182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-17 20:08:08 +00:00
Andrew Nacin d52db4d053 Update to jQuery 1.9 Beta 1 in trunk (3.6-alpha).
Temporarily includes jQuery in original, unminified form, for ease of testing and bug reporting.

jQuery 1.9 introduces a "migrate" script for deprecated and removed behavior. Warnings are issued for methods we should not be using, and should be fixed in core. These warnings are sent to the JavaScript console and are collected in `jQuery.migrateWarnings`.

See http://blog.jquery.com/2012/12/17/jquery-1-9-beta-1-released/ for more.

props ocean90, see #22975.



git-svn-id: http://core.svn.wordpress.org/trunk@23180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-17 17:29:40 +00:00
Andrew Nacin 11e2073d89 Remove additional acute accents from permalink slugs via sanitize_title_with_dashes(). props SergeyBiryukov. fixes #22395.
git-svn-id: http://core.svn.wordpress.org/trunk@23176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-13 09:59:28 +00:00
Andrew Nacin 0b5f8838ea Trunk is now 3.6-alpha again.
git-svn-id: http://core.svn.wordpress.org/trunk@23172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-11 16:22:58 +00:00
Andrew Nacin d7375958c9 Trunk is now 3.5 again. (Translators need an anchor point.)
git-svn-id: http://core.svn.wordpress.org/trunk@23171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-11 16:22:26 +00:00
Andrew Nacin d431d8e745 Trunk is now 3.6-alpha.
git-svn-id: http://core.svn.wordpress.org/trunk@23168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-11 15:58:52 +00:00
Andrew Nacin cae1900512 3.5-RC6-23166
git-svn-id: http://core.svn.wordpress.org/trunk@23166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-10 23:32:04 +00:00
Andrew Nacin 94b3fbc8dd 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
2012-12-10 23:15:53 +00:00
Mark Jaquith 0e5fcefe03 Ignore failed uploads. props koopersmith. fixes #22849
git-svn-id: http://core.svn.wordpress.org/trunk@23162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-10 22:58:28 +00:00
Andrew Nacin 3b9f156de7 Check for DOMDocument when parsing oEmbed XML responses.
git-svn-id: http://core.svn.wordpress.org/trunk@23160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-10 22:49:45 +00:00
Andrew Nacin cca862707e Sanity checks in oEmbed XML handling.
git-svn-id: http://core.svn.wordpress.org/trunk@23158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-10 22:23:03 +00:00
Andrew Nacin bb50a89079 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
2012-12-10 10:27:28 +00:00
Bot (Assets) c47b6a79e9 Compress scripts/styles: 3.5-RC5-23155. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@23155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-10 10:15:13 +00:00
Andrew Nacin a01fc23c10 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
2012-12-10 10:10:12 +00:00
Andrew Nacin 6a4e57204e 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
2012-12-10 10:01:24 +00:00
Andrew Nacin eacdfa1455 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
2012-12-10 09:56:31 +00:00
Bot (Assets) 4deea3ad7f Compress scripts/styles: 3.5-RC5-23145. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@23145 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-10 02:41:15 +00:00
Andrew Nacin 0a0aaaa10a 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
2012-12-10 02:40:16 +00:00
Bot (Assets) d4572cf682 Compress scripts/styles: 3.5-RC5-23143. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@23143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-10 02:38:50 +00:00
Andrew Nacin b7fed9b5fa 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
2012-12-10 02:37:50 +00:00
Andrew Nacin 7dae31056c 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
2012-12-09 20:09:47 +00:00
Ryan Boren fe8a8c9af4 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
2012-12-09 19:54:23 +00:00
Andrew Nacin 3f0f56d58d 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
2012-12-09 17:11:25 +00:00
Andrew Nacin aac3ea45f3 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
2012-12-09 17:02:22 +00:00
Andrew Nacin 0eb2c5bf46 3.5-RC5
git-svn-id: http://core.svn.wordpress.org/trunk@23131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-07 23:01:31 +00:00
Bot (Assets) 695d624bdd Compress scripts/styles: 3.5-RC4-23127.
git-svn-id: http://core.svn.wordpress.org/trunk@23127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-07 21:00:25 +00:00
Daryl Koopersmith c08b897b89 Trailing commas make IE7 cry. fixes #22819.
git-svn-id: http://core.svn.wordpress.org/trunk@23124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-07 20:42:10 +00:00
Andrew Nacin a4242198ed Ensure [23122] gets parsed as context. props TobiasBg. fixes #22808.
git-svn-id: http://core.svn.wordpress.org/trunk@23123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-07 18:50:16 +00:00
Andrew Nacin fe2e8c6101 Update fullscreen/DFW's "Text" tab to match the string context used for the editor Text tab. Not a string change. props pavelevap, fixes #22808.
git-svn-id: http://core.svn.wordpress.org/trunk@23122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-07 18:36:15 +00:00