Commit Graph

21320 Commits

Author SHA1 Message Date
Andrew Nacin 672bd9a43d Media: Pass thumbnail and medium sizes to image_constrain_size_for_editor() to force constraints based on the current DB options for those sizes. History: see #22598, #22738.
props jond3r.
see #23102.
for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@23264 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 08:52:18 +00:00
Daryl Koopersmith 0221f597b4 Media: Properly reset the "add to gallery" library to ensure it accurately reflects the current gallery. see #22815.
git-svn-id: https://develop.svn.wordpress.org/trunk@23263 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 08:28:12 +00:00
Andrew Nacin dec369d6c8 Media: Restore 3.4 behavior by consulting the old-school DB options for default align, size, and link properties.
This restores linking to media files as the default, over attachment pages. This 'default' cannot currently be changed by a user setting (per 3.4 behavior), due to the default database schema.

see #22841, for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@23262 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 08:02:16 +00:00
Daryl Koopersmith e73a323a16 Media: Do not update attachment display user settings when a single attachment is inserted.
This is consistent with 3.4 behavior.

see #22841.


git-svn-id: https://develop.svn.wordpress.org/trunk@23261 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 08:01:19 +00:00
Daryl Koopersmith 2b5612e266 Media: Check that a router region exists before attempting to access its child views. Add relevant documentation. see #22930.
git-svn-id: https://develop.svn.wordpress.org/trunk@23260 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 07:08:37 +00:00
Daryl Koopersmith 45d01dad51 Media: Automatically select uploading attachments in single-select workflows.
The code now automatically selects uploading attachments in all workflows. In a workflow that selects multiple attachments, all attachments added to the upload queue are selected. In a workflow that selects a single attachment (e.g. selecting a featured image), the last attachment added to the upload queue is selected.

see #22817.


git-svn-id: https://develop.svn.wordpress.org/trunk@23259 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 06:44:21 +00:00
bumpbot 46e1c12b98 Compress scripts/styles: 3.6-alpha-23257.
git-svn-id: https://develop.svn.wordpress.org/trunk@23257 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 22:58:37 +00:00
Dion Hulse 6e405b1831 Correct an incorrect PHPDoc s/@see/@link/ introduced in r23254. See #22900
git-svn-id: https://develop.svn.wordpress.org/trunk@23256 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 08:05:48 +00:00
Dion Hulse 80bc158edd HTTP API: Introduce wp_is_writable() to wrap win_is_writable() and is_writable() to work around PHP Windows ACL issues. See #22900 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@23255 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 08:04:11 +00:00
Dion Hulse b558464d2d Clarify the Documentation in win_is_writable() and move an inline comment to the Docblock, reduces confusion about what the function actually does. See #22900
git-svn-id: https://develop.svn.wordpress.org/trunk@23254 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 07:56:38 +00:00
Dion Hulse 17b6ada24a Upgrade: When upgrading from WordPress 3.5, if an empty twentytwelve theme directory exists, remove it to allow the installation of Twenty Twelve. See #22856. For trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@23253 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 07:42:16 +00:00
Andrew Nacin f4a95f061d Ensure that get_archive_template() only loads a post type archive (archive-$post_type.php file) if there is exactly one post type in the query.
props scribu.
see #22956.
for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@23249 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 06:17:47 +00:00
Daryl Koopersmith cc68dcede3 Don't include the default columns="3" in a gallery shortcode.
Shortcode attributes are strings; fix a variable type error in wp.media.gallery defaults.
props adamsilverstein.

see #22919.


git-svn-id: https://develop.svn.wordpress.org/trunk@23247 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 06:09:09 +00:00
Andrew Nacin 6e9830f34d Don't stomp existing sizes inside wp_save_image().
props markoheijnen.
see #22985.
for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@23246 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 05:23:36 +00:00
Andrew Nacin 7fc8feabae Fix the sprite positioning for HiDPI sorting arrows.
props lessbloat.
see #23071.
for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@23245 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-02 23:51:09 +00:00
potbot 0d88074cf9 POT, generated from r23230
git-svn-id: https://develop.svn.wordpress.org/trunk@23243 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-01 00:19:42 +00:00
potbot f0508c7210 POT, generated from r23230
git-svn-id: https://develop.svn.wordpress.org/trunk@23238 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-01 00:19:32 +00:00
potbot 33fa531bf8 POT, generated from r23230
git-svn-id: https://develop.svn.wordpress.org/trunk@23231 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-01 00:19:17 +00:00
bumpbot 3463baa996 Compress scripts/styles: 3.6-alpha-23230.
git-svn-id: https://develop.svn.wordpress.org/trunk@23230 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-29 22:58:34 +00:00
Mark Jaquith 7533dbadfe Add .webm (video/webm) to wp_get_mime_types(). props wonderboymusic. fixes #14659
git-svn-id: https://develop.svn.wordpress.org/trunk@23229 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-29 18:07:23 +00:00
Mark Jaquith 654154ad89 Move 'endif;' to its own line instead of having it room with a right curly brace. props dimadin. fixes #22586
git-svn-id: https://develop.svn.wordpress.org/trunk@23228 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-29 18:01:41 +00:00
Mark Jaquith 5e8cd5433a Fix the PHPDoc for the_post_thumbnail(). props georgestephanis. fixes #22885
git-svn-id: https://develop.svn.wordpress.org/trunk@23227 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-29 17:59:08 +00:00
Andrew Nacin a3e17acb53 RTL fixes for internal linking. props SergeyBiryukov, helen. see #22835, for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@23226 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-28 22:57:32 +00:00
bumpbot 140881a378 Compress scripts/styles: 3.6-alpha-23223. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23223 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 22:58:50 +00:00
Andrew Ozz c6d566d726 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: https://develop.svn.wordpress.org/trunk@23222 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 22:44:10 +00:00
Andrew Nacin 410dda2a96 Update the script loader to reflect the actual version of Underscore.js in trunk. props markoheijnen.
git-svn-id: https://develop.svn.wordpress.org/trunk@23220 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 21:29:29 +00:00
Andrew Ozz d0a1164c15 TinyMCE: prevent <a> from wrapping block elements, fixes #22888 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@23219 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 21:01:56 +00:00
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 416f98b7c8 Remove deleted files on upgrade, including wp-app.php and class-wp-atom-server.php.
props duck_
see #22855
for trunk



git-svn-id: https://develop.svn.wordpress.org/trunk@23203 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-26 20:34:30 +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 021167d954 Allow non-hierarchical taxonomy labels in Bulk Edit to span the available width. Props SergeyBiryukov, tar.gz. fixes #22703.
git-svn-id: https://develop.svn.wordpress.org/trunk@23198 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-23 16:30:12 +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
Andrew Nacin 0ef634db93 Update Akismet external to 2.5.7.
git-svn-id: https://develop.svn.wordpress.org/trunk@23194 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-22 22:03:05 +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
Andrew Nacin 145789f191 Convert to the HTML5 doctype for readme.html. props gish, fixes #22932.
git-svn-id: https://develop.svn.wordpress.org/trunk@23188 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-20 15:35:17 +00:00
Helen Hou-Sandi 44c44b54d6 Curly quotes for readme.html. props anatolbroder. fixes #23011.
git-svn-id: https://develop.svn.wordpress.org/trunk@23187 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-20 15:30:40 +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
Helen Hou-Sandi 6c094b35ce Nav menu item selection lists no longer need to be specifically de-whitespaced to match hierarchical taxonomy metaboxes. props corvannoorloos. See #22954 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@23185 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-19 19:43:22 +00:00