Andrew Nacin
6680184c9e
Customizer: Passes focus to the upload tab to avoid focus changing when a drag event occurs from outside the browser. props lessbloat. fixes #21283 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22512 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 20:57:09 +00:00
Ryan Boren
e678b95a5a
WP_Image_Editor improvements.
...
* Make test() and supports_mime_type() static.
* Add required_methods argument to get_instance(). Allows requesting an implementation that has certain methods/capabilities.
* Whitespace cleanup
Props markoheijnen
see #6821
git-svn-id: https://develop.svn.wordpress.org/trunk@22510 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 19:38:54 +00:00
Daryl Koopersmith
1d6fa49ae2
Integrate media with the custom header page. fixes #21820 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22505 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 11:59:05 +00:00
Daryl Koopersmith
c4b070dd07
Custom Headers: Ensure the ready event fires before fetching the existing headers to apply jQuery.masonry. see #20346 , #21820 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22504 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 11:55:20 +00:00
Daryl Koopersmith
db0ad6a120
Custom Background: Remove dead code for thickbox. see #21818 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22503 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 11:48:33 +00:00
Daryl Koopersmith
9c1f2e577a
Integrate media with the custom background page. fixes #21818 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22502 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 11:37:24 +00:00
Daryl Koopersmith
b56b57bc2c
Media: Make "update featured image" button primary. see #21776 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22500 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 11:28:43 +00:00
Peter Westwood
2a8c640a1f
Multisite: When displaying the upload quota and space used in the dashboard widget format them nicely.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22498 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 10:47:43 +00:00
Peter Westwood
c6c233cc2c
Multisite: Move all the functions which calculate upload space usage to wp-includes so they apply correctly with front-end editors.
...
Fixes #22357 props wonderboymusic.
git-svn-id: https://develop.svn.wordpress.org/trunk@22497 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 10:35:42 +00:00
Daryl Koopersmith
fc7021dcf9
Media: Update featured images to use the media frame. fixes #21776 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22496 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 10:13:39 +00:00
Daryl Koopersmith
63dd1ca518
Media JS: Use basic upload/library by default.
...
`wp.media` now recognizes the `frame` attribute (currently a string; either'select' or 'post') and defaults to using a basic select frame. It also checks for the existence of classes in a safer fashion, as it does not assume the `MediaFrame` property exists.
see #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22495 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 09:59:36 +00:00
Daryl Koopersmith
3da7fa8d1e
Customizer: Restrict image control uploaders to only allow image file types. see #22149 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22492 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 05:47:02 +00:00
Daryl Koopersmith
dd39a3b3d2
Pinking shears. see #21283 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22491 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 05:44:00 +00:00
Daryl Koopersmith
7baca50473
Media: Ensure media and its dependencies are included when a post type supports the editor or featured images. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22490 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 05:10:07 +00:00
Daryl Koopersmith
2189575beb
Media: Add wp_enqueue_media to easily include all media dependencies.
...
Also, media templates now print on `wp_footer`.
props sushkov. fixes #22060 , see #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22489 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 04:57:25 +00:00
Andrew Nacin
e1d08f105d
Translate. see #19956 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22486 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 04:40:56 +00:00
Daryl Koopersmith
527d232018
Media: Rename the "Beta Media" button to "Add Media". fixes #19956 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22485 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 04:35:38 +00:00
Andrew Nacin
a4c23b9423
Properly set upload context when uploading a background image through the customizer. props kovshenin. fixes #22215 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22484 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 03:02:54 +00:00
Andrew Nacin
21f4690f30
Final HiDPI tweaks. Don't use rss-2x.png on a front-end widget. Improve selectors for favicons in the toolbar to avoid breaking existing images. Remove unnecessary RTL styles. FIXES #21019 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22481 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 02:06:59 +00:00
Daryl Koopersmith
b9a5374e64
Media: Add batch insertion workflow. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22480 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 01:44:02 +00:00
Andrew Nacin
c4556dce6b
HiDPI rating stars. props chexee. see #21019 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22479 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 01:34:48 +00:00
bumpbot
08a5af03ed
Compress scripts/styles: 3.5-beta2-22475.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22475 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-08 22:58:34 +00:00
Andrew Nacin
86baff4ce7
Add some ru_RU-specific CSS to the customizer to prevent the spinner from being bumped to the next line. props SergeyBiryukov, see #21890 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22474 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-08 22:01:06 +00:00
Andrew Nacin
023a6d55ab
Add a class. see #16416 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22473 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-08 21:55:12 +00:00
Ryan Boren
26fcee62ea
Update help text for color picker in custom header and background screens.
...
Props DrewAPicture
fixes #22393
git-svn-id: https://develop.svn.wordpress.org/trunk@22470 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-08 19:32:49 +00:00
Ryan Boren
f5fafe1a2e
Don't show "Skip Cropping, Publish Image as Is" button for themes that do not support headers with flexible width or height. Forces too small images to be scaled to fit in the absence of flex support.
...
Props MadtownLems, kobenland
fixes #21100
git-svn-id: https://develop.svn.wordpress.org/trunk@22468 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-08 19:11:46 +00:00
Daryl Koopersmith
68d143d20d
Media: Improve sidebar handling and make attachment display properties attachment-specific.
...
`wp.mce.media`
* Watch all workflows for the `insert` event and attempt to insert the current state's `selection` if it exists.
* Fetch and pass attachment display properties through to `wp.media.string.image()`.
`wp.media.controller.Region`
* Separate the concept of events and modes.
* All events triggered on a `Region` trigger both `event` and `event:mode` callbacks.
* When a mode is deactivated, `deactivate` and `deactivate:mode` events are fired.
* When a mode is activated, `activate` and `activate:mode` events are fired.
`wp.media.controller.Library`
* Remove the `details()`, `buildDetails()`, and `clearDetails()` methods that juggled sidebar views. Instead, handle the sidebar views using modes.
`wp.media.controller.Gallery`
* Shift the overloaded `sidebar()` method to use modes.
`wp.media.view.MediaFrame.Post`
* Declare `activate:mode` event bindings using an nested object to reduce repetition.
* Update sidebar activation callbacks.
`wp.media.view.Settings`
* Refactor to leverage HTML data attributes and implicit values (instead of setting the fallback whenever an object was created). This has the additional benefit that gallery shortcode parameters are not output when the user has left them set to the default.
see #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22466 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-08 14:15:09 +00:00
Andrew Nacin
e2f0bcf510
Proper button heights on the custom header and background pages. props johnbillion. fixes #22385 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22462 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-08 01:51:05 +00:00
Andrew Nacin
7f9ce4fbd3
Blue style fixes and updates. props melchoyce. see #22248 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22460 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-08 00:57:27 +00:00
Andrew Nacin
85efa182f7
Forms with the class .wp-upload-form will now have their submit button disabled until a file is selected. props kovshenin, helenyhou, lessbloat, SergeyBiryukov, tommcfarlin. fixes #20855 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22459 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 23:54:03 +00:00
Andrew Ozz
f909a703b0
Editor: fix position of the resize handle in Text mode in RTL (also some minor css cleanup), see #21718
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22458 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 23:33:21 +00:00
Andrew Nacin
0b66789582
Swatches for the color picker. Improves discoverability of colors especially when the picker is opened with a grayscale color. props mattwiebe. FIXES #21206 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22457 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 23:32:03 +00:00
bumpbot
6b78173371
Compress scripts/styles: 3.5-beta2-22455.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22456 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 22:58:33 +00:00
Andrew Nacin
5ad3756ce6
Minor UI tweaks to Press This. props lessbloat. fixes #21997 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22455 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 22:58:30 +00:00
Andrew Nacin
9817bcc28a
Don't show additional focus outline on customizer sections. Remove unused CSS selectors. props lessbloat. see #21283 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22453 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 22:18:58 +00:00
Andrew Nacin
05740a6837
Customizer accessibility: Align focus styles with hover styles. props helenyhou. fixes #21283 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22452 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 22:15:49 +00:00
Andrew Nacin
02a73e7262
Fix display of a post's date fields in IE7 and IE7 compat mode. props SergeyBiryukov, lessbloat. fixes #21088 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22447 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 21:56:50 +00:00
Andrew Nacin
e775c9ee99
edit_form_after_editor action. props helenyhou. fixes #19658 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22446 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 21:49:47 +00:00
Andrew Nacin
a95ed8d15b
Put the label outside the span to ensure margins when the text wraps. props waclawjacek. fixes #19254 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22444 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 21:41:31 +00:00
Andrew Nacin
3f01c9132d
Try to avoid overflow of the page template dropdown with long template names. props SergeyBiryukov, ocean90. fixes #21956 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22443 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 21:34:45 +00:00
Peter Westwood
2bd843f1e7
Post UI: Provide visual feedback to the user if they try to set an invalid date for a post. Fixes #17180 props jkudish.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22442 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 21:31:08 +00:00
Andrew Ozz
0493132497
More retina backgrounds and bits, props saracannon, empireoflight and lessbloat, see #21019
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22439 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 20:54:08 +00:00
bumpbot
7ec25963e0
Compress scripts/styles: 3.5-beta2-22438. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22438 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 20:29:58 +00:00
Daryl Koopersmith
b636e94e47
Media: Integrate the gallery workflow with the media menu.
...
`wp.media.model.Query.more()`
* If a request has already been sent out for more attachments, return that request object instead of creating another.
`wp.media.controller.Region`
* A region allows views to be swapped in and out of a section of the page without either view having to know about the other.
* Application components can use the same callbacks and resources by leveraging `Region.mode()`, which triggers a set of callbacks to create or transform the current view, but only if necessary.
`wp.media.view.Frame`
* Leverage `Region` controllers instead of forcing states to swap view objects, which causes states to fit more comfortably in the controller-camp.
* Add `previous()`, a method to fetch the previous state `id`.
* Separate out the default settings over several objects (so blank frames can be instantiated).
`wp.media.view.MediaFrame`
* The base `Frame` used for media management: handles integration with the `Modal` and `UploaderWindow` views.
`wp.media.view.MediaFrame.Post`
* Includes all default media states and callbacks necessary for inserting media into a post.
see #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22437 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 20:14:41 +00:00
Andrew Nacin
51f16233ac
Only call wp_get_object_terms() if get_object_term_cache() says there is no cache (false), which is different than no terms. props wonderboymusic, fixes #16505 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22433 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 20:00:51 +00:00
Andrew Nacin
2dc1a1d97f
Align the check column on the Updates screen. props ocean90. fixes #22339 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22432 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 19:57:55 +00:00
Andrew Nacin
496ae7b83f
Merge some strings. props pavelevap. fixes #22306 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22430 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 19:37:54 +00:00
Andrew Nacin
d1045ffced
Extend Press This by a few pixels to allow longer strings. props SergeyBiryukov. fixes #20975 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22427 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 19:27:19 +00:00
Mark Jaquith
504b94b1b3
Use ImageOptim to losslessly smush our images. About half a MB in savings! fixes #22381 . props waldojaquith
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22425 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 18:49:10 +00:00
Andrew Nacin
84a66ac1bc
Larger buttons for the DB upgrade screens. see #21598 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22424 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 18:38:17 +00:00