Commit Graph

20488 Commits

Author SHA1 Message Date
Daryl Koopersmith bc29728df2 Add attachment details to the media sidebar.
* Also moves most of the `Frame` view's `createSelection` method to a real `Selection` model (which inherits from the `Attachments` model).
* Properly assigns the library within the `Gallery` state, allowing for the `Gallery` state to inherit from the `Library` state.

see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22323 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-29 15:13:02 +00:00
Daryl Koopersmith 6e387bb2db Add inline uploader UI to media modal sidebar. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22322 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-29 07:38:13 +00:00
Daryl Koopersmith 8fe5b79380 Add a sidebar to the media modal.
* Adds `wp.media.view.Sidebar`, to aid in rendering the sidebar.
* Removes the `directions` from the `Attachments` view and shifts search into a separate view (`wp.mce.view.Search`) that can be relocated at will. This also serves to simplify the `Attachments` view by removing the nested `list` and `$list` parameters.
* Show the toolbar on the featured image workflow, effectively requiring confirmation before closing the dialog.

see #21390, #21776, #21808.


git-svn-id: https://develop.svn.wordpress.org/trunk@22321 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-29 06:56:23 +00:00
Daryl Koopersmith 15c451d2f6 Give media a heart transplant.
Revises the concept of the media controller and workspace views (i.e. two central points of control) to be more granular. The main media object is now the `Frame`, which is a hybrid view and state machine.

The state machine is a collection of states, which are just generic instances of `Backbone.Model`. This circumvents the problem of juggling global parameters when changing states. Each state contains its own event loop. All events are also forwarded to the frame itself (as is the case in all model/collection relationships).

The frame view contains several regions, each of which can be overridden without harming or re-rendering the other regions. These work well when used in conjunction with the state machine events.

This removes the upload sidebar (don't worry, visible upload UI will return). Drag and drop uploading still works. The ability to upload has been abstracted into its own view (instead of being attached to the central workspace view).

Editing galleries is temporarily broken — the gallery creation and editing experiences will be unified in a future patch.

Adds events to detect dragging changes in `wp.Uploader` and adds methods to detect and leverage browser support for CSS3 transitions.

see #21390, #21809.


git-svn-id: https://develop.svn.wordpress.org/trunk@22320 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-28 23:29:17 +00:00
Andrew Nacin cf3fe27ca0 Cast image metadata focal_length and shutter_speed to strings to restore previous behavior when stripslashes_deep() converted these values. Avoids rounding errors without making a determination of which digit we should round to. props jcakec. fixes #22259.
git-svn-id: https://develop.svn.wordpress.org/trunk@22319 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-28 16:17:56 +00:00
Lance Willett d29ca99ec1 Twenty Twelve: fix SVN properties
git-svn-id: https://develop.svn.wordpress.org/trunk@22318 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-26 23:25:45 +00:00
Lance Willett 5b17cb82f9 Twenty Ten: fix SVN properties
git-svn-id: https://develop.svn.wordpress.org/trunk@22317 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-26 23:25:08 +00:00
Lance Willett 1211d832ba Twenty Eleven: fix SVN properties
git-svn-id: https://develop.svn.wordpress.org/trunk@22316 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-26 23:24:23 +00:00
bumpbot 9252a8fcb9 Compress scripts/styles: 3.5-beta2-22315.
git-svn-id: https://develop.svn.wordpress.org/trunk@22315 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-26 22:58:34 +00:00
Andrew Ozz c71700c7b4 Buttons:
- Update the install/initial configuration/repair screens buttons, props DrewAPicture
- Fix the welcome screen buttons and fine-tune the buttons css, props lessbloat

fixes #21598


git-svn-id: https://develop.svn.wordpress.org/trunk@22314 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-26 19:40:39 +00:00
Andrew Nacin 32c92b7a01 If we have not yet initialized the custom header/background, do not do extra removal in _remove_theme_support(). fixes #22246.
git-svn-id: https://develop.svn.wordpress.org/trunk@22313 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-26 04:17:25 +00:00
Andrew Nacin 556332cee8 Revert [22274]. see #22246.
git-svn-id: https://develop.svn.wordpress.org/trunk@22312 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-26 04:16:49 +00:00
bumpbot e21f4c8eb5 Compress scripts/styles: 3.5-beta2-22311.
git-svn-id: https://develop.svn.wordpress.org/trunk@22311 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 22:58:32 +00:00
Ryan Boren d76c931269 Fix wp_basename() for Windows by replacing %5C with /.
Props SergeyBiryukov
fixes #22138


git-svn-id: https://develop.svn.wordpress.org/trunk@22310 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 22:31:17 +00:00
Jon Cave c8c4a683c1 Fix documentation typo: s/WP_Erorr/WP_Error/. See #21593.
git-svn-id: https://develop.svn.wordpress.org/trunk@22309 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 22:29:37 +00:00
Ryan Boren fd8eeb4b8a Consolidate some transalted strings. Remove unnecessary trailing newlines. Props pavelevap. fixes #22274
git-svn-id: https://develop.svn.wordpress.org/trunk@22308 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 22:21:15 +00:00
Ryan Boren f27a713d56 Return WP_Error when registering a taxonomy that exceeds 32 characters.
Props ocean90.
fixes #21593


git-svn-id: https://develop.svn.wordpress.org/trunk@22307 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 22:12:02 +00:00
Andrew Nacin 4d7b989116 Split by [\r\n\t ] rather than \s to avoid UTF-8 issues. props SergeyBiryukov. fixes #21625.
git-svn-id: https://develop.svn.wordpress.org/trunk@22306 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 21:09:42 +00:00
Andrew Ozz b9fa351736 Hide the "You are using the multi-file uploader. Problems? Try the browser uploader instead." when Plupload falls back to "html4" runtime, fixes #19496
git-svn-id: https://develop.svn.wordpress.org/trunk@22305 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 20:53:38 +00:00
Andrew Nacin 3583696de7 When replacing floats in wpdb::prepare(), avoid escaped placeholders (%%f). props SergeyBiryukov. fixes #19861.
git-svn-id: https://develop.svn.wordpress.org/trunk@22304 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 20:52:50 +00:00
Andrew Nacin 8e674037bc Avoid 'headers already sent' messages for header_remove() the same way we currently do with header(). props ryan. fixes #22258.
git-svn-id: https://develop.svn.wordpress.org/trunk@22303 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 20:38:55 +00:00
Andrew Nacin 80a1e11ab0 Confirm that the nav menu's underlying object is in the proper taxonomy before adding the current-menu-item class. props SergeyBiryukov. fixes #21369.
git-svn-id: https://develop.svn.wordpress.org/trunk@22302 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 20:32:01 +00:00
Andrew Nacin 208e916374 Flush rewrite rules when page_on_front is updated. props SergeyBiryukov. fixes #21274.
git-svn-id: https://develop.svn.wordpress.org/trunk@22301 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 20:20:24 +00:00
Andrew Nacin ced3c54124 Comment that the add_users capability was never used and has its days numbered. see #16719.
git-svn-id: https://develop.svn.wordpress.org/trunk@22300 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 20:18:24 +00:00
Andrew Nacin c67b1d88a0 Don't show the same time or date format twice on the General Settings page. This can occur if a translated format is the same as an existing default format. fixes #21060.
git-svn-id: https://develop.svn.wordpress.org/trunk@22299 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 20:15:47 +00:00
Andrew Nacin 7ff116f14a When stripping off a pathinfo home root (/index.php/) do it with case insensitivity. props SergeyBiryukov. fixes #13164. see #8847.
git-svn-id: https://develop.svn.wordpress.org/trunk@22298 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 20:09:54 +00:00
Lance Willett 7dff35e75d Twenty Twelve: additional rule needed for nav menu style change in r22296, to allow long words to break in submenus. Props SergeyBiryukov, closes #22088.
git-svn-id: https://develop.svn.wordpress.org/trunk@22297 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 18:42:21 +00:00
Lance Willett f853d3b345 Twenty Twelve: fix navigation menu behavior when a space and one single character causes newline in navigation anchor element display. Fixes #22088.
git-svn-id: https://develop.svn.wordpress.org/trunk@22296 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 16:26:33 +00:00
Lance Willett 4be5613bb6 Twenty Twelve: use plain text apostrophe in PHP template file comment text. Props zeo, fixes #22276.
git-svn-id: https://develop.svn.wordpress.org/trunk@22295 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 16:06:21 +00:00
Lance Willett f41b914666 Twenty Twelve: fix style for links in gallery captions wrapping to next line, props DrewAPicture. Fixes #22227.
git-svn-id: https://develop.svn.wordpress.org/trunk@22294 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 16:01:23 +00:00
Ryan Boren 5108ff8b1e Avoid notices in get_*_template() functions that use get_queried_object(), which can return null. Props wonderboymusic. fixes #20519
git-svn-id: https://develop.svn.wordpress.org/trunk@22293 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 12:54:50 +00:00
bumpbot a5d0972890 Compress scripts/styles: 3.5-beta2-22292.
git-svn-id: https://develop.svn.wordpress.org/trunk@22292 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-24 22:58:36 +00:00
Ryan Boren 308c702183 Use the create_posts capability in more places.
In get_post_type_capabilities(), make sure create_posts reflects customizations to the edit_posts capability when create_posts is not specifically set.


git-svn-id: https://develop.svn.wordpress.org/trunk@22291 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-24 22:15:43 +00:00
Ryan Boren f61f28dfa6 Add min-height to hierarchical taxonomy meta box. Props SergeyBiryukov. fixes #15925
git-svn-id: https://develop.svn.wordpress.org/trunk@22290 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-24 14:08:33 +00:00
Andrew Ozz 8564fb5851 Fix the buttons in IE, make them better in IE7, remove the default padding in Firefox, make all .button <a> and <input> look the same, fixes #21598
git-svn-id: https://develop.svn.wordpress.org/trunk@22289 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-24 01:33:59 +00:00
Andrew Ozz 108c09fdd3 Buttons: slightly bolder :focus styles, make the "Log In" button '.button-large', props lessbloat, see #21598
git-svn-id: https://develop.svn.wordpress.org/trunk@22288 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-24 01:27:56 +00:00
bumpbot 0a05a064cf Compress scripts/styles: 3.5-beta2-22287.
git-svn-id: https://develop.svn.wordpress.org/trunk@22287 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-23 22:58:40 +00:00
Ryan Boren d6ed09153f Revert [21420] and [21481]. Accepting a string caused back compat problems including the possibility of revealing previously hidden circular dependencies resulting in infinite loops.
fixes #20683 #22111
see #21520


git-svn-id: https://develop.svn.wordpress.org/trunk@22286 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-23 20:32:12 +00:00
Ryan Boren 079288f0c8 Update autocomplete CSS to make nice with jQuery UI 1.9. Give ui-helper-hidden-accessible the same treatment as screen-reader-text. Props helenyhou. fixes #22166
git-svn-id: https://develop.svn.wordpress.org/trunk@22285 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-23 19:55:35 +00:00
Ryan Boren db18f7c749 Use HiDPI image for nav menu item disclosure arrow. Props dd32. fixes #22240
git-svn-id: https://develop.svn.wordpress.org/trunk@22284 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-23 19:47:32 +00:00
Andrew Nacin 08dafbce51 Do not issue a Last-Modified header when issuing no-cache headers to avoid aggressive (webkit) caching. Serve a blank header when header_remove() is not available (PHP < 5.3). props andy. fixes #22258.
git-svn-id: https://develop.svn.wordpress.org/trunk@22283 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-23 15:45:44 +00:00
Andrew Nacin 819c562041 Remove unnecessary styling of an option element's padding. props SergeyBiryukov. fixes #22020.
git-svn-id: https://develop.svn.wordpress.org/trunk@22282 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-23 14:36:55 +00:00
Andrew Nacin eea42ad4c0 Remove unused delete style. props SergeyBiryukov. fixes #21196.
git-svn-id: https://develop.svn.wordpress.org/trunk@22281 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-23 14:30:40 +00:00
Andrew Nacin 8bccce8189 Reset box-sizing to toolbar CSS to avoid conflicts with themes. props betzster, fixes #21863.
git-svn-id: https://develop.svn.wordpress.org/trunk@22280 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-23 14:30:03 +00:00
Andrew Nacin 5f716ddfca Make some space for the Permalink preview to appear on post-new.php. props johnbillion, lessbloat. fixes #22184.
git-svn-id: https://develop.svn.wordpress.org/trunk@22279 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-23 14:28:01 +00:00
Andrew Nacin ffa6fd2e62 Prime post caches for the Recent Comments widget. props mitchoyoshitaka. see #15400.
git-svn-id: https://develop.svn.wordpress.org/trunk@22278 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-23 14:18:37 +00:00
Ryan Boren abda77ed10 In wp_xmlrpc_server::_insert_post(), don't return an error if set_post_thumbnail() returns false when the attachment ID doesn't change.
Props picklepete
fixes #22204


git-svn-id: https://develop.svn.wordpress.org/trunk@22277 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-23 14:08:20 +00:00
Ryan Boren abd1718828 A more generic message for wp_upload_dir(). Props nacin. fixes #21796
git-svn-id: https://develop.svn.wordpress.org/trunk@22276 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-23 13:49:00 +00:00
Ryan Boren 323143dedd Improve the contextual help for the comment bubble in the 'In Response To' column. Props lessbloat. fixes #19788
git-svn-id: https://develop.svn.wordpress.org/trunk@22275 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-23 13:37:18 +00:00
Ryan Boren 307979a247 Avoid notices in _remove_theme_support(). Props alex-ye, SergeyBiryukov. fixes #22246
git-svn-id: https://develop.svn.wordpress.org/trunk@22274 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-23 13:20:40 +00:00