Commit Graph

33 Commits

Author SHA1 Message Date
bumpbot 4d703df740 Compress scripts/styles: 3.4-alpha-20296.
git-svn-id: https://develop.svn.wordpress.org/trunk@20296 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 04:58:24 +00:00
Daryl Koopersmith 2ca07cdf2a Create WP_Customize_Control to separate the process of rendering a control from fetching, previewing, and saving its values. see #19910.
Many-to-many mapping between settings and controls.
* Settings and controls have been separated in both the PHP (WP_Customize_Setting, WP_Customize_Control) and the JS (wp.customize.Setting, wp.customize.Control).
* While most settings are tied to a single control, some require multiple controls. The 'header_textcolor' control is a good example: to hide the header text, header_textcolor is set to 'blank'.

Add 'Display Header Text' control.

A handful of miscellaneous bugfixes along the way.

Notes:
* Controls should be separated out a bit more; juggling type-specific arguments in the switch statement is rather inelegant.
* Page dropdowns are currently inactive and need to be re-linked.

git-svn-id: https://develop.svn.wordpress.org/trunk@20295 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 04:14:09 +00:00
bumpbot 8715cf588b Compress scripts/styles: 3.4-alpha-20192.
git-svn-id: https://develop.svn.wordpress.org/trunk@20192 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 13:58:27 +00:00
Andrew Nacin 0cbc56cfa8 Use ajaxurl rather than direct references to admin-ajax.php. see #18952.
git-svn-id: https://develop.svn.wordpress.org/trunk@20191 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 13:30:28 +00:00
bumpbot 5f9f15402c Compress scripts/styles: 3.4-alpha-20180.
git-svn-id: https://develop.svn.wordpress.org/trunk@20180 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 04:15:22 +00:00
Daryl Koopersmith d254551dd7 Theme Customizer: First pass for upload controls, using background image as an example. Add a wrapper for Plupload that allows for custom upload UIs. see #19910.
wp.Uploader is a wrapper that provides a simple way to upload an attachment (using the wp_ajax_upload_attachment handler). It is intentionally decoupled from the UI. When an upload succeeds, it will receive the attachment information (id, url, meta, etc) as a JSON response. If the upload fails, the wrapper handles both WordPress and plupload errors through a single handler.

As todos, we should add drag classes for the uploader dropzone and account for the rough 100mb filesize limit in most browsers. The UI for the customizer upload controls could be improved as well.

git-svn-id: https://develop.svn.wordpress.org/trunk@20179 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 04:14:05 +00:00
bumpbot d24750e3a1 Compress scripts/styles: 3.4-alpha-20115.
git-svn-id: https://develop.svn.wordpress.org/trunk@20115 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-05 07:45:20 +00:00
Andrew Ozz e169217ad0 Based on the current UX feedback, remove the "Insert Link" UI from under the caption fields, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@20114 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-05 07:31:31 +00:00
bumpbot 2a0b86ea08 Compress scripts/styles: 3.4-alpha-19983.
git-svn-id: https://develop.svn.wordpress.org/trunk@19983 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 02:00:58 +00:00
Andrew Ozz 0fa723245a HTML in image captions, first run, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@19982 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 01:58:18 +00:00
Andrew Ozz 114083df17 Change the drop target border color, props ocean90, fixes #19298
git-svn-id: https://develop.svn.wordpress.org/trunk@19367 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-20 19:16:35 +00:00
Andrew Ozz 50a35b02b6 Fix return value in Plupload when using the html4 runtime, fixes #19302
git-svn-id: https://develop.svn.wordpress.org/trunk@19362 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-20 01:10:50 +00:00
Andrew Ozz e0d1c530da Remove old styling for rtl progress bar, see #19042
git-svn-id: https://develop.svn.wordpress.org/trunk@19360 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-19 21:50:33 +00:00
Andrew Ozz 4ded511eff Uploader: show the progress bars as soon as files are queued, attempt to make the progress bar more precise, see #19228
git-svn-id: https://develop.svn.wordpress.org/trunk@19346 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-19 03:15:42 +00:00
Andrew Ozz 9007ab3e75 When queueing too large files in the multi-file uploader in IE or Opera, show error message and remove the file from the queue, fixes #19228
git-svn-id: https://develop.svn.wordpress.org/trunk@19329 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-18 01:10:25 +00:00
Andrew Ozz a77387cac7 Make the Save All Changes initially hidden on Media -> Add New screen, improve the progress bar "progress" to 1px ticks, see #19190
git-svn-id: https://develop.svn.wordpress.org/trunk@19306 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-15 21:22:27 +00:00
Andrew Ozz 3d33362b52 Add big-file-upload-warning for IE and Opera, left-align the percentage in the progress bar, see #19228
git-svn-id: https://develop.svn.wordpress.org/trunk@19286 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-14 23:21:16 +00:00
Andrew Ozz 82f5175bf7 Media Lib: fix displaying file headers in IE7, delegate the Show/Hide JS, prevent displaying upload error for the same file twice, see #19228
git-svn-id: https://develop.svn.wordpress.org/trunk@19268 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-13 18:37:30 +00:00
Andrew Ozz 3e06696012 Add error message when a big file fails to upload, expose the XHR request in plipload and abort() it, see #19228
git-svn-id: https://develop.svn.wordpress.org/trunk@19266 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-13 02:01:13 +00:00
Andrew Ozz 0620dbb5eb Uploader: fix file-size-exceeded error handling, see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@19262 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-12 00:52:26 +00:00
Andrew Ozz 448af8627c Uploader: fix progress bar JS and update the style (light blue bars), see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@19247 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-10 20:33:26 +00:00
Andrew Ozz d2d9926055 Revert [19223] and only stop showing the checkbox, props nacin, see #19174
git-svn-id: https://develop.svn.wordpress.org/trunk@19225 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-08 22:34:09 +00:00
Andrew Ozz 4c66628f35 Remove the Resize files checkbox for now (revisit in 3.4), fixes #19174
git-svn-id: https://develop.svn.wordpress.org/trunk@19223 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-08 22:23:40 +00:00
Andrew Ozz 5c18d3b4f4 Uploader: update to 1.5.1.1, remove plupload.full.js (we cannot use it), rename the script handle in script-loader to avoid any confusion, fixes #19187
git-svn-id: https://develop.svn.wordpress.org/trunk@19194 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-06 21:46:24 +00:00
Andrew Ozz 3700b57fdc Remove the Cancel Upload button, fixes #19050
git-svn-id: https://develop.svn.wordpress.org/trunk@19127 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-03 01:47:12 +00:00
Andrew Ozz 947ba8f62c Fix uploader "file size exceeded" error message, fix displaying uploaded queue errors, see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@19100 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-01 11:56:20 +00:00
Andrew Ozz 1746c2af62 Disable the Cancel Upload button after the upload has finished or if it was interrupted, fixes #19050
git-svn-id: https://develop.svn.wordpress.org/trunk@19099 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-31 21:38:28 +00:00
Andrew Ozz e10d951cce Fix visibility of Select Files button in IE7, change border color when hovering over the drag drop area of the uploader, see #18918, see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@18957 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-12 22:24:53 +00:00
Andrew Ozz 1948c952a4 Update plupload to 1.5b and add "drop area" for drag and drop uploading, see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@18701 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-18 02:25:23 +00:00
Andrew Ozz d20435eb03 Improve handling of plupload init and add a filter, stop including cookies in the init (not needed with plupload), see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@18674 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-15 05:30:58 +00:00
Andrew Ozz 8e64c7199c Fix silverlight uploading when not resizing files on the fly, props kurtpayne, see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@18620 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-29 23:59:22 +00:00
Andrew Ozz 57bff0b6d8 Add SWFUpload back for plugins that queue it directly, fix some escaping in media.php, see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@18484 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-29 19:21:21 +00:00
Andrew Ozz 12a7d989e0 Pluploader take 1, props jacobwg, see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@18482 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-29 08:59:35 +00:00