Daryl Koopersmith
bed08350f4
Media: Backwards compatibility for media_upload_tabs.
...
* Adds `createIframeStates()` to the `MediaFrame` view. It creates states and bindings for the `media_upload_tabs` output, and is included on `MediaFrame.Post` by default.
* Hijacks `tb_remove()` when the media modal is open to ensure the modal closes correctly.
* Adds a `chromeless` parameter to thickbox media tab URLs to render the UI without the old row of tabs.
see #22186 , #21390 .
git-svn-id: http://core.svn.wordpress.org/trunk@22523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-10 07:51:37 +00:00
Andrew Nacin
809bb5a8f7
Update the JS version of the shortcode regex to match [22382]. props SergeyBiryukov. fixes #17657 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-10 07:23:55 +00:00
Andrew Nacin
e14ff50cfb
Don't allow non-image uploads for custom headers and backgrounds. props kovshenin. fixes #22149 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-10 05:36:37 +00:00
Andrew Nacin
2d13e264a4
URLs should be esc_url(), not esc_attr().
...
git-svn-id: http://core.svn.wordpress.org/trunk@22520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-10 05:30:51 +00:00
Andrew Nacin
1429581c94
Customizer uploader control: Pass arrays of extensions around instead. see #22149 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-10 04:59:46 +00:00
Andrew Nacin
7ba61388a4
Use event delegation for Add Media, allowing the event to bubble up to #wpbody. Keeps the Add Media button functional on a second use of QuickPress. fixes #22255 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-10 04:39:44 +00:00
Andrew Ozz
b404fbdb85
QuickPress: add some JS to set wpActiveEditor when the title or content is focused, fixes #22021
...
git-svn-id: http://core.svn.wordpress.org/trunk@22517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-10 03:05:48 +00:00
Daryl Koopersmith
ef1889a89b
Media: Relocate localization to wp_enqueue_media(). see #22186 , #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-10 00:37:13 +00:00
Bot (Assets)
c57076aab7
Compress scripts/styles: 3.5-beta2-22515.
...
git-svn-id: http://core.svn.wordpress.org/trunk@22515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 22:58:35 +00:00
Andrew Nacin
8f08f77601
WordPress dialog jQuery UI widget:
...
* Link to the upstream bug report.
* No need to specify the default value for an option.
* Use the new _super() UI method to open the dialog, avoiding a direct reference to the parent.
* Fix typo in comment.
* Use public isOpen() method rather than a private property.
props scott.gonzalez.
fixes #22399 .
git-svn-id: http://core.svn.wordpress.org/trunk@22514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 22:36:35 +00:00
Andrew Nacin
8b53ffec74
Define a custom event prefix in the wpdialog jQuery UI widget to work around a jQuery UI 1.9.1 regression. see #22399 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 21:45:13 +00:00
Andrew Nacin
e77ec92846
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: http://core.svn.wordpress.org/trunk@22512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 20:57:09 +00:00
Jon Cave
e860d3eb24
Minor WP_Image_Editor documentation fixes. See #6821 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 20:10:33 +00:00
Ryan Boren
d3463e4aea
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: http://core.svn.wordpress.org/trunk@22510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 19:38:54 +00:00
Daryl Koopersmith
880b1e4b81
Media JS: Pass the region instance through when firing the activate and deactivate events. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 12:43:39 +00:00
Daryl Koopersmith
b9ed8db596
Media: Keep track of gallery display properties in a separate model instead of mixed in with the query parameters. This allows for arbitrary gallery arguments and a more flexible data structure. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22508 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 12:37:21 +00:00
Daryl Koopersmith
adf0c7e1a7
Media: When printing a gallery shortcode, hide the implicit orderby value. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 12:14:48 +00:00
Daryl Koopersmith
db30495fcd
Media: Correctly set the edit gallery's library. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 12:09:15 +00:00
Daryl Koopersmith
9af37358a9
Integrate media with the custom header page. fixes #21820 , see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 11:59:05 +00:00
Daryl Koopersmith
156e782313
Custom Headers: Ensure the ready event fires before fetching the existing headers to apply jQuery.masonry. see #20346 , #21820 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 11:55:20 +00:00
Daryl Koopersmith
bda841315a
Custom Background: Remove dead code for thickbox. see #21818 , #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 11:48:33 +00:00
Daryl Koopersmith
15a749c6fd
Integrate media with the custom background page. fixes #21818 , see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 11:37:24 +00:00
Daryl Koopersmith
3797b7e18c
Media JS: Only block button events by default if the button does not link to anything. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 11:30:40 +00:00
Daryl Koopersmith
405470d264
Media: Make "update featured image" button primary. see #21776 , #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 11:28:43 +00:00
Daryl Koopersmith
0c219be45d
Media: Output correct link html when inserting attachments. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 10:48:50 +00:00
Peter Westwood
06830f4501
Multisite: When displaying the upload quota and space used in the dashboard widget format them nicely.
...
git-svn-id: http://core.svn.wordpress.org/trunk@22498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 10:47:43 +00:00
Peter Westwood
b2ca616d1e
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: http://core.svn.wordpress.org/trunk@22497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 10:35:42 +00:00
Daryl Koopersmith
87caf47c0f
Media: Update featured images to use the media frame. fixes #21776 , see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 10:13:39 +00:00
Daryl Koopersmith
4a008574d2
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: http://core.svn.wordpress.org/trunk@22495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 09:59:36 +00:00
Daryl Koopersmith
9c7acdfe7c
Media: Add a basic starting frame for upload/library selection.
...
`media.view.MediaFrame.Select` is a frame class with a handful of sensible defaults to handle selecting and uploading items in the media library.
see #21390 .
git-svn-id: http://core.svn.wordpress.org/trunk@22494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 09:47:12 +00:00
Daryl Koopersmith
76b23b3d48
Media: Add size dropdown to attachment display settings in the media modal. fixes #22206 , see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 06:15:25 +00:00
Daryl Koopersmith
44314b715c
Customizer: Restrict image control uploaders to only allow image file types. see #22149 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 05:47:02 +00:00
Daryl Koopersmith
2ae40e6af5
Pinking shears. see #21283 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 05:44:00 +00:00
Daryl Koopersmith
ce619e07f0
Media: Ensure media and its dependencies are included when a post type supports the editor or featured images. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 05:10:07 +00:00
Daryl Koopersmith
0a67c025e5
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: http://core.svn.wordpress.org/trunk@22489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 04:57:25 +00:00
Andrew Nacin
57db888420
Allow wp_plupload_default_settings() to be called multiple times without doubling up the output. see #22060 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 04:51:25 +00:00
Daryl Koopersmith
9c4214745b
Media: Ensure search box reflects actual search state.
...
* Also switches search box to use `<input type="search" />` to take advantage of browser UI to clear the field.
fixes #22315 , see #21390 .
git-svn-id: http://core.svn.wordpress.org/trunk@22487 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 04:44:31 +00:00
Andrew Nacin
9d7cb4ac7a
Translate. see #19956 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 04:40:56 +00:00
Daryl Koopersmith
0a5cdbb838
Media: Rename the "Beta Media" button to "Add Media". fixes #19956 , see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 04:35:38 +00:00
Andrew Nacin
664be2b01e
Properly set upload context when uploading a background image through the customizer. props kovshenin. fixes #22215 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 03:02:54 +00:00
Andrew Nacin
6d0dc56a4d
Consult the queried object for the post type. props mdgl, MikeHansenMe, wonderboymusic. fixes #21648 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 02:48:15 +00:00
Daryl Koopersmith
dd504180f7
Media: In the main media library in the insert media dialog, only show attachment display settings when one attachment is selected. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 02:11:37 +00:00
Andrew Nacin
56c1b7c7ff
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: http://core.svn.wordpress.org/trunk@22481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 02:06:59 +00:00
Daryl Koopersmith
21ff438642
Media: Add batch insertion workflow. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 01:44:02 +00:00
Andrew Nacin
f972ff8852
HiDPI rating stars. props chexee. see #21019 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22479 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 01:34:48 +00:00
Daryl Koopersmith
23b62b3d77
Media JS: Use correct variable name when binding to the change:library
event. see [22477], #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 01:24:55 +00:00
Daryl Koopersmith
103694aa4f
Media JS: Add JIT composite library creation/destruction to states to allow for dynamically excluded Attachment models. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 01:23:20 +00:00
Andrew Nacin
1b0a4561a4
Use correct variable. props picklewagon. fixes #22394 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 00:16:30 +00:00
Bot (Assets)
0f3d286dd3
Compress scripts/styles: 3.5-beta2-22475.
...
git-svn-id: http://core.svn.wordpress.org/trunk@22475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-08 22:58:34 +00:00
Andrew Nacin
c9cae7a1b3
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: http://core.svn.wordpress.org/trunk@22474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-08 22:01:06 +00:00