Commit Graph

11317 Commits

Author SHA1 Message Date
Andrew Nacin 035eb58af9 Limit the execution of wp_enqueue_media() to once per page. Prevents multiple _wpMediaViewsL10n variables. see #22843.
git-svn-id: https://develop.svn.wordpress.org/trunk@23214 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 16:07:12 +00:00
Andrew Nacin 32b79f7d61 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: https://develop.svn.wordpress.org/trunk@23212 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 15:48:18 +00:00
Andrew Nacin 41f3ab73ff 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: https://develop.svn.wordpress.org/trunk@23210 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 15:36:08 +00:00
Andrew Nacin d7640fc5d2 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: https://develop.svn.wordpress.org/trunk@23208 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 15:26:05 +00:00
Andrew Nacin 975dbe9b12 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: https://develop.svn.wordpress.org/trunk@23206 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 15:14:43 +00:00
Andrew Nacin 9d74b713b5 Correct the deprecated notice in AtomPub's deprecated class. see #22855.
git-svn-id: https://develop.svn.wordpress.org/trunk@23204 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-26 20:35:27 +00:00
Andrew Nacin 3486bf6668 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: https://develop.svn.wordpress.org/trunk@23201 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-26 20:26:19 +00:00
bumpbot cff4199f69 Compress scripts/styles: 3.6-alpha-23200.
git-svn-id: https://develop.svn.wordpress.org/trunk@23200 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-23 22:58:43 +00:00
Helen Hou-Sandi d97220fa2c Minor phpdoc fixes for register_sidebar(). props SergeyBiryukov. fixes #22905.
git-svn-id: https://develop.svn.wordpress.org/trunk@23199 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-23 22:11:37 +00:00
Helen Hou-Sandi f4b20c062c Add missing @ to phpdoc for gd_edit_image_support(). props tw2113. fixes #23046.
git-svn-id: https://develop.svn.wordpress.org/trunk@23197 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-23 16:22:22 +00:00
Helen Hou-Sandi a0d5de09fd Refresh phpdoc for register_sidebar(). props jeremyfelt, SergeyBiryukov. fixes #22905.
git-svn-id: https://develop.svn.wordpress.org/trunk@23196 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-23 16:18:16 +00:00
bumpbot 5999474328 Compress scripts/styles: 3.6-alpha-23193. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23193 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-21 18:52:36 +00:00
Andrew Ozz 349efcf8cb TinyMCE: update to latest source including the WebKit backspace fix, see #23010
git-svn-id: https://develop.svn.wordpress.org/trunk@23192 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-21 18:18:58 +00:00
Helen Hou-Sandi 1303e7377a its <=> it's in documentation, along with a rogue the, The, and looses. props trepmal. fixes #22665.
git-svn-id: https://develop.svn.wordpress.org/trunk@23191 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-20 15:55:32 +00:00
Helen Hou-Sandi 1ebf4c8cb4 Correct phpdoc for wp-includes/plugin.php: wp-content/plugins/, not wp-content/plugin/. props technosailor. fixes #23024.
git-svn-id: https://develop.svn.wordpress.org/trunk@23190 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-20 15:49:55 +00:00
Helen Hou-Sandi c43802b342 s/Santizes/Sanitizes/ in phpdoc for sanitize_html_class(). props cais. fixes #22890.
git-svn-id: https://develop.svn.wordpress.org/trunk@23189 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-20 15:40:37 +00:00
Helen Hou-Sandi 15147020c8 Correct phpdoc @since for wp_oembed_remove_provider(). props hebbet. fixes #22788.
git-svn-id: https://develop.svn.wordpress.org/trunk@23186 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-20 15:22:21 +00:00
Andrew Nacin 19dcf9dae0 Have the 'jquery' script handle be a parent of both jQuery core and jQuery Migrate. see #22975.
git-svn-id: https://develop.svn.wordpress.org/trunk@23183 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-18 00:56:27 +00:00
Andrew Nacin eb3fc35a3d Update jQuery Migrate plugin to latest, fixing .toggle(boolean) usage. see #22975.
git-svn-id: https://develop.svn.wordpress.org/trunk@23182 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-17 20:08:08 +00:00
Andrew Nacin 5eb6ded111 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: https://develop.svn.wordpress.org/trunk@23180 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-17 17:29:40 +00:00
Andrew Nacin 59bb81f264 Remove additional acute accents from permalink slugs via sanitize_title_with_dashes(). props SergeyBiryukov. fixes #22395.
git-svn-id: https://develop.svn.wordpress.org/trunk@23176 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-13 09:59:28 +00:00
Andrew Nacin 404efd8304 Trunk is now 3.6-alpha again.
git-svn-id: https://develop.svn.wordpress.org/trunk@23172 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-11 16:22:58 +00:00
Andrew Nacin b9ead1d148 Trunk is now 3.5 again. (Translators need an anchor point.)
git-svn-id: https://develop.svn.wordpress.org/trunk@23171 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-11 16:22:26 +00:00
Andrew Nacin 9840429658 Trunk is now 3.6-alpha.
git-svn-id: https://develop.svn.wordpress.org/trunk@23168 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-11 15:58:52 +00:00
Andrew Nacin 90f71fd703 3.5-RC6-23166
git-svn-id: https://develop.svn.wordpress.org/trunk@23166 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 23:32:04 +00:00
Andrew Nacin b386a936e1 Makes sure attachment sizes are correctly deselected in IE. Fixes size selections on insert in IE9. props koopersmith. fixes #22851.
git-svn-id: https://develop.svn.wordpress.org/trunk@23163 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 23:15:53 +00:00
Mark Jaquith b7a4314cbc Ignore failed uploads. props koopersmith. fixes #22849
git-svn-id: https://develop.svn.wordpress.org/trunk@23162 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 22:58:28 +00:00
Andrew Nacin f2b89e27be Check for DOMDocument when parsing oEmbed XML responses.
git-svn-id: https://develop.svn.wordpress.org/trunk@23160 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 22:49:45 +00:00
Andrew Nacin 301284fd7f Sanity checks in oEmbed XML handling.
git-svn-id: https://develop.svn.wordpress.org/trunk@23158 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 22:23:03 +00:00
Andrew Nacin c3fef1cfec 3.5-RC6 -- please test TinyMCE for regressions working with HTML5 elements, embeds and objects, etc.
git-svn-id: https://develop.svn.wordpress.org/trunk@23157 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 10:27:28 +00:00
bumpbot 2359d3397c Compress scripts/styles: 3.5-RC5-23155. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23155 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 10:15:13 +00:00
Andrew Nacin 4c3c22af1e 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: https://develop.svn.wordpress.org/trunk@23153 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 10:10:12 +00:00
Andrew Nacin a01fafb7c1 Add TinyMCE's Schema.js to prepare for patching it. see #22790. see #22842. for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@23151 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 10:01:24 +00:00
Andrew Nacin 003a8e9c65 Delete the patch of TinyMCE's schema; new attempt. see #22790. see #22842. for the 3.5 branch.
git-svn-id: https://develop.svn.wordpress.org/trunk@23149 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 09:56:31 +00:00
bumpbot 63dbb2f4e4 Compress scripts/styles: 3.5-RC5-23145. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23145 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 02:41:15 +00:00
Andrew Nacin 9857a5d028 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: https://develop.svn.wordpress.org/trunk@23144 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 02:40:16 +00:00
bumpbot bf247694cb Compress scripts/styles: 3.5-RC5-23143. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23143 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 02:38:50 +00:00
Andrew Nacin b8a5aca5eb 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: https://develop.svn.wordpress.org/trunk@23142 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 02:37:50 +00:00
Andrew Nacin 2a6640e606 3.5-RC5-23141 for both trunk and the 3.5 branch. New nightlies forced.
git-svn-id: https://develop.svn.wordpress.org/trunk@23141 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-09 20:09:47 +00:00
Ryan Boren 85b8c87a7e Introduce previous_image_link and next_image_link filters. Allows customizing the gallery display order.
Props nacin
fixes #22829 for trunk


git-svn-id: https://develop.svn.wordpress.org/trunk@23139 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-09 19:54:23 +00:00
Andrew Nacin e8298d389e 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: https://develop.svn.wordpress.org/trunk@23135 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-09 17:11:25 +00:00
Andrew Nacin f9d1ca1da4 Only unset() after we have confirmed we are not dealing with a WP_Error. props DH-Shredder. fixes #22824.
git-svn-id: https://develop.svn.wordpress.org/trunk@23133 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-09 17:02:22 +00:00
Andrew Nacin 26bb121ddf 3.5-RC5
git-svn-id: https://develop.svn.wordpress.org/trunk@23131 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 23:01:31 +00:00
bumpbot 168fdca8e2 Compress scripts/styles: 3.5-RC4-23127.
git-svn-id: https://develop.svn.wordpress.org/trunk@23127 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 21:00:25 +00:00
Daryl Koopersmith c5eee310f4 Trailing commas make IE7 cry. fixes #22819.
git-svn-id: https://develop.svn.wordpress.org/trunk@23124 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 20:42:10 +00:00
Andrew Nacin 8198998a83 Ensure [23122] gets parsed as context. props TobiasBg. fixes #22808.
git-svn-id: https://develop.svn.wordpress.org/trunk@23123 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 18:50:16 +00:00
Andrew Nacin 53f230b982 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: https://develop.svn.wordpress.org/trunk@23122 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 18:36:15 +00:00
bumpbot be03cb514b Compress scripts/styles: 3.5-RC4-23121. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23121 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 11:41:16 +00:00
Andrew Nacin 66f1a19089 Add a sane, inclusive HTML element/attribute schema to TinyMCE.
TinyMCE 3.4.x (shipped with WordPress 3.4.x) had an HTML4-based schema definition, with HTML5 elements added to it. TinyMCE 3.5.x (shipping, again coincidentally, with WordPress 3.5) allows for HTML5 schema support, which also provides for full HTML5 attribute support. The problem is its HTML5 schema excludes all HTML4 elements and attributes that were dropped in the HTML5 spec, which is unacceptable behavior.

This "duck punch" of TinyMCE's Schema.js file creates a new, sane schema. It is TinyMCE's HTML4 and HTML5 schema definitions recursively merged.

Objects are not whitelisted in either schema to allow for embed elements as child nodes, so object, param, and embed remain separately whitelisted in the WordPress TinyMCE plugin. Our attempts to add other attributes in said plugin is now superceded.

props koopersmith, azaozz.
fixes #22790.



git-svn-id: https://develop.svn.wordpress.org/trunk@23120 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 11:26:25 +00:00
Andrew Nacin 35edf3665d Add TinyMCE 3.5.8's Schema.js file in preparation for monkey patching it. see #22790.
git-svn-id: https://develop.svn.wordpress.org/trunk@23119 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 11:12:51 +00:00