Commit Graph

997 Commits

Author SHA1 Message Date
koopersmith 10a17d1757 Theme Customizer: Add 'ready' event to customize-controls. see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-17 00:00:57 +00:00
bumpbot 9179471b0f Compress scripts/styles: 3.4-beta4-20805. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@20805 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-16 07:58:24 +00:00
azaozz bf0154a731 DFW: another attempt to get auto-resize working right, see #20608, see #20684
git-svn-id: http://core.svn.wordpress.org/trunk@20804 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-16 07:02:55 +00:00
bumpbot 5181e0abd3 Compress scripts/styles: 3.4-beta4-20803.
git-svn-id: http://core.svn.wordpress.org/trunk@20803 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-16 05:58:24 +00:00
koopersmith bc99ad372e Theme Customizer: Properly change state when theme is switched. fixes #20610, see #19910.
* Causes the Manage Themes page to refresh if the customizer is closed after the active theme is switched.
* Changes the text of the 'Save and Activate' button once the theme has been activated.
* Improves the naming of the customize control settings.
* Add events to customize.Loader and make callbacks more flexible.
* Makes the customize-loader l10n compatible with non-admin settings.
* Adds WP_Customize->is_current_theme_active().
* Minor style corrections, including jQuery.attr/prop changes.



git-svn-id: http://core.svn.wordpress.org/trunk@20802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-16 05:55:54 +00:00
koopersmith a2eb607264 Theme Customizer: Make the wp.customize.Events methods chainable. see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20801 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-16 05:17:26 +00:00
bumpbot a13f5e45ba Compress scripts/styles: 3.4-beta4-20800.
git-svn-id: http://core.svn.wordpress.org/trunk@20800 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-15 22:58:23 +00:00
koopersmith 7ea4eef7f0 Theme Customizer: Add the wp.customize.Events mixin to wp.customize.Values. Provide 'add', 'remove', and 'change' events by default. see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20799 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-15 22:43:49 +00:00
koopersmith 3165e6d50a Theme Customizer: Clarify wp.customize.Values API by removing Values.pass and all methods that passed through to the wp.customize.Value objects it contained. see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-15 22:14:46 +00:00
koopersmith f2ecf78e88 Theme Customizer: Make wp.customize.Values.when return a jQuery.Deferred.promise() object, to add additional flexibility. see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-15 22:01:36 +00:00
bumpbot ed3c93ae6a Compress scripts/styles: 3.4-beta4-20796.
git-svn-id: http://core.svn.wordpress.org/trunk@20796 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-15 21:58:21 +00:00
koopersmith edc5274b20 Theme Customizer: Add an Events mixin to wp.customize, used by default in wp.customize.Messenger. see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-15 21:28:21 +00:00
bumpbot e12aedf713 Compress scripts/styles: 3.4-beta4-20762.
git-svn-id: http://core.svn.wordpress.org/trunk@20762 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-10 00:58:25 +00:00
koopersmith 1bac3f30e3 Theme Customizer: Add a fallback UI for browsers that do not support drag and drop upload. see #19910, #20452, #20582.
git-svn-id: http://core.svn.wordpress.org/trunk@20761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-10 00:15:53 +00:00
bumpbot 572fc170fe Compress scripts/styles: 3.4-beta4-20760.
git-svn-id: http://core.svn.wordpress.org/trunk@20760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-09 21:58:31 +00:00
koopersmith 08e4e98c16 Uploader & Theme Customizer: Refresh uploader flash/silverlight shims when the mouse enters the browse button. Add class to body based on uploader's drag/drop support. Properly assign customize image uploader containers (so flash shims are positioned correctly when scrolled). see #19910, #20452, #20582.
git-svn-id: http://core.svn.wordpress.org/trunk@20758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-09 21:26:19 +00:00
bumpbot 4b38f2fe45 Compress scripts/styles: 3.4-beta4-20746.
git-svn-id: http://core.svn.wordpress.org/trunk@20746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-09 00:58:22 +00:00
koopersmith c3ff01b334 Theme Customizer: Maintain scrolled position when preview performs a full refresh. Allow wp.customize.Messenger to send/receive falsy values. see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-09 00:23:05 +00:00
bumpbot d5cf655ad3 Compress scripts/styles: 3.4-beta4-20744.
git-svn-id: http://core.svn.wordpress.org/trunk@20744 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-08 23:58:24 +00:00
koopersmith d5d0a73719 Theme Customizer: Add basic loading indicator when loading the customizer inside an iframe. see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-08 23:37:05 +00:00
bumpbot 484bf6e4ef Compress scripts/styles: 3.4-beta4-20742.
git-svn-id: http://core.svn.wordpress.org/trunk@20742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-08 20:58:20 +00:00
koopersmith 69d975d205 Theme Customizer: Add cross-domain handling for when the admin and front-end are different origins. Handles both ajax and postMessage calls. props rboren, mdawaffe, nacin. see #20507, #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-08 20:13:34 +00:00
bumpbot c6dbd4b6a1 Compress scripts/styles: 3.4-beta4-20738.
git-svn-id: http://core.svn.wordpress.org/trunk@20738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-07 20:58:22 +00:00
koopersmith 13628d9186 Theme Customizer: Use a internal global _wpCustomizeSettings object for wp.customize.settings to prevent script race conditions in IE (which blocked interaction with the preview). see #20582, #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-07 20:03:39 +00:00
bumpbot df245e9b09 Compress scripts/styles: 3.4-beta4-20725. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@20725 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-04 03:58:20 +00:00
azaozz cdcd99e11d Remove unneeded var added in [20723], see #20608
git-svn-id: http://core.svn.wordpress.org/trunk@20724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-04 03:28:35 +00:00
azaozz d70be41ae6 DFW: fix auto-resize in WebKit, fixes #20608
git-svn-id: http://core.svn.wordpress.org/trunk@20723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-04 03:23:01 +00:00
bumpbot 5a37c2f523 Compress scripts/styles: 3.4-beta3-20681. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@20681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-02 01:58:25 +00:00
azaozz e8beafd57b Change the image caption shortcode format to [caption ...]<a><img /></a> caption text + html[/caption]. That way HTML tags in captions are better supported and the shortcode wouldn't break when using the wrong quotes. Props sushkov, nacin, fixes #18311
git-svn-id: http://core.svn.wordpress.org/trunk@20679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-02 01:14:52 +00:00
nacin 2e18aa8824 jQuery UI 1.8.20. fixes #20559.
Fixes placeholder sizes when sorting post and dashboard meta boxes.



git-svn-id: http://svn.automattic.com/wordpress/trunk@20660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-30 21:53:09 +00:00
bumpbot 24b4c94fcf Compress scripts/styles: 3.4-beta3-20647.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-30 15:58:21 +00:00
koopersmith 2f2cb0926f Theme Customizer: Migrate to an ajax-based solution for refreshing the preview and saving. see #20507, #19910.
* Use ajax-based saving, add saving indicator.
* Use ajax-based refreshing instead of form targets.
* Instead of using hidden inputs with prefixed names to track the canonical data, use the values stored in wp.customize. Encode the values as JSON before sending to avoid bugs with ids that contain square brackets (PHP mangles POST values with nested brackets).
* Use wp.customize.Previewer solely for the purpose of previewing; move the postMessage connection with the parent frame and other unrelated code snippets into the 'ready' handler.


git-svn-id: http://svn.automattic.com/wordpress/trunk@20645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-30 15:46:17 +00:00
bumpbot 58ef081f06 Compress scripts/styles: 3.4-beta3-20603.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-25 21:58:24 +00:00
nacin b9138b560c Update jQuery imgAreaSelect plugin to 0.9.8. props ocean90. fixes #19881.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-25 21:49:57 +00:00
nacin 770a48b281 Bail from wp-langs.php if we don't already have a WordPress environment. fixes #20119.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-25 21:40:20 +00:00
nacin 8d2b539944 Remove touch-punch.dev.js, as .js is appropriate for an external, unmodified script. see #20014.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-25 21:17:55 +00:00
koopersmith a75702bba4 Theme Customizer: Add statuses to the color and image controls. see #19910.
Move the color control from the switch statement to WP_Customize_Color_Control.
Markup improvements.


git-svn-id: http://svn.automattic.com/wordpress/trunk@20598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-25 21:03:29 +00:00
nacin 5d2090ee53 Move to pixels to avoid off-by-one rendering in Chrome. props trepmal. fixes #20402.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-25 20:56:26 +00:00
nacin 841cda2d1a Remove monospace from TinyMCE caption/alignment image edit popup. see #18311.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-25 19:54:04 +00:00
bumpbot 2c375cb174 Compress scripts/styles: 3.4-beta3-20587.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-25 16:58:21 +00:00
koopersmith 863a458165 Theme Customizer: For clarity, wp.customize.Setting.method to wp.customize.Setting.transport. Add WP_Customize_Setting->transport to allow setting the transport method via PHP. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-25 16:04:51 +00:00
bumpbot 103ecdf368 Compress scripts/styles: 3.4-beta3-20582.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-24 22:58:22 +00:00
azaozz b6b321a203 Uploader: fix check for error message send from async-upload on failed uploads, improve styling it a bit, props trepmal, SergeyBiryukov, fixes #20445
git-svn-id: http://svn.automattic.com/wordpress/trunk@20580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-24 22:06:55 +00:00
bumpbot f92e8411f8 Compress scripts/styles: 3.4-beta3-20578.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-24 19:58:21 +00:00
koopersmith d83e230c50 Use a deep extend in wp.Uploader to ensure that the multipart_params object (and others) are cloned instead of referenced. fixes #20532.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-24 19:38:47 +00:00
bumpbot ca047faab9 Compress scripts/styles: 3.4-beta2-20546.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-20 02:58:21 +00:00
koopersmith a20bfcd6b1 Theme Customizer: Improve image picker control. see #19910.
Overhauled image pickers:
* Add support for drag and drop uploads to image controls.
* Improve the 'uploaded' tab in image controls: automatically add images uploaded during the current session, hide the tab when no uploaded images exist.
* Move the header image control to the WP_Customize_Header_Image_Control class. Remove wp_customize_print_uploaded_headers() and wp_customize_print_uploaded_headers() functions.
* Abstract the dropdown functionality from the color picker to the .dropdown class.
* In wp.Uploader, unset element keys if passed an empty jQuery collection.



git-svn-id: http://svn.automattic.com/wordpress/trunk@20545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-20 02:39:55 +00:00
bumpbot 715efd86f0 Compress scripts/styles: 3.4-beta2-20521. TinyMCE updated.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 20:58:24 +00:00
azaozz b85e997156 Remove extra slash when opening the gallery thickbox popup from the visual editor, props SergeyBiryukov, fixes #19850
git-svn-id: http://svn.automattic.com/wordpress/trunk@20519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 20:43:28 +00:00
koopersmith 43c9e81c40 Remove jQuery postMessage plugin, as it is no longer used (as of [20517]). see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 20:32:13 +00:00
koopersmith 9b5c6a917c Theme Customizer: Use native postMessage for wp.customize.Messenger. see #19910.
* Removes use of jquery.postmessage.js
* Fixes bug where Opera would attempt to use the hash transport and redirect to the dashboard.
* Fixes bug where multiple postMessage connections could not coexist in a single frame.



git-svn-id: http://svn.automattic.com/wordpress/trunk@20517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 20:25:31 +00:00
bumpbot 5cdef8c5fc Compress scripts/styles: 3.4-beta2-20509.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 17:58:18 +00:00
koopersmith 1d73aae054 Remove 'visibility' parameter from WP_Customize_Control. Handle control visibility in JS instead. see #19910.
* Have the header text color picker display only when header_textcolor != 'blank'



git-svn-id: http://svn.automattic.com/wordpress/trunk@20506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 17:13:31 +00:00
bumpbot 1085d4ecb7 Compress scripts/styles: 3.4-beta2-20505.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 14:58:20 +00:00
koopersmith 5e5a6446d1 Theme Customizer: Improve markup/styles for opened color picker. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 14:32:05 +00:00
nacin cd290bf2ce Update swfobject
git-svn-id: http://svn.automattic.com/wordpress/trunk@20501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 13:36:32 +00:00
bumpbot 83f549b02d Compress scripts/styles: 3.4-beta2-20500.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-17 23:58:21 +00:00
ryan 2ebfdafad5 Update swfobject
git-svn-id: http://svn.automattic.com/wordpress/trunk@20498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-17 23:09:29 +00:00
koopersmith 1c19b69eeb Theme Customizer: Improve color picker toggle styles and markup. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-17 22:58:58 +00:00
nacin d8778f9518 Restore semicolons to the end of jQuery UI files, as they are needed when concatenating the files together. Will be adjusted upstream as well. props ocean90. fixes #20466.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-17 20:34:45 +00:00
nacin f08e052e68 jQuery UI 1.8.19. props ocean90. fixes #20466.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-17 16:49:17 +00:00
bumpbot 7a9bc7d129 Compress scripts/styles: 3.4-beta2-20489.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-16 23:58:25 +00:00
koopersmith e11cc3ec4f Theme Customizer: Integrate with browser history. Use window.history by default, with window.onhashchange as a fallback. fixes #20337, see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-16 23:07:23 +00:00
bumpbot 2884dc969d Compress scripts/styles: 3.4-beta2-20478.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-16 14:58:23 +00:00
koopersmith a5dacf7da5 Theme Customizer: Allow the customize iframe to be accessed directly (with full feature support). see #19910.
* Move the 'Return to Manage Themes' and 'Collapse Sidebar' actions from themes.php to customize-controls.php.
* Create a postMessage connection between themes.php and customize-controls.php.
* Allow the theme customizer to be accessed directly (independent of themes.php and the customize loader).
* Add wp_customize_href() and wp_customize_url().
* Remove wp_customize_loader(). To include the loader, use wp_enqueue_script( 'customize-loader' ).
* The theme customizer now requires postMessage browser support.
* Add .hide-if-customize and .hide-if-no-customize CSS classes.
* Clean up customize-preview.js.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-16 14:02:28 +00:00
bumpbot 3c61b207ac Compress scripts/styles: 3.4-beta2-20468.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-14 19:58:19 +00:00
azaozz 7872975b0c Plupload: no need to reset the queue when one file fails (handled internally), see #20422
git-svn-id: http://svn.automattic.com/wordpress/trunk@20467 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-14 19:51:55 +00:00
bumpbot 0706af654a Compress scripts/styles: 3.4-beta2-20464.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-13 23:58:20 +00:00
azaozz 9116a89bc7 Update Plupload to 1.5.4, props SergeyBiryukov, fixes #20422
git-svn-id: http://svn.automattic.com/wordpress/trunk@20463 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-13 23:23:13 +00:00
bumpbot 7e8ba69143 Compress scripts/styles: 3.4-beta2-20452.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-12 17:58:20 +00:00
azaozz a62ef6d827 Add RTL/LTR button to the html editor, props yoavf, fixes #13070
git-svn-id: http://svn.automattic.com/wordpress/trunk@20451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-12 17:52:54 +00:00
bumpbot b46712cc96 Compress scripts/styles: 3.4-beta1-20434.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 02:58:23 +00:00
azaozz 6aaf0dad43 Add the jQuery UI Touch Punch plugin to handle dragging on mobile devices, props georgestephanis, see #20014
git-svn-id: http://svn.automattic.com/wordpress/trunk@20433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 02:20:51 +00:00
bumpbot 7492250354 Compress scripts/styles: 3.4-beta1-20429.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 00:58:23 +00:00
azaozz b75ee2198f Fix inserting links in the HTML editor in IE9, fixes #19528
git-svn-id: http://svn.automattic.com/wordpress/trunk@20428 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 00:20:42 +00:00
bumpbot 02d0a5173a Compress scripts/styles: 3.4-beta1-20421.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20421 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-10 02:58:27 +00:00
koopersmith c2fb0c425b Replace all instances of thickbox theme preview with the theme customizer. fixes #20404.
* Use theme customizer in theme install/update screens.
* Separate the customize loader from the customizer. Use wp_customize_loader() to include the loader script and markup.
* Deprecated: wp-admin/js/theme-preview.js is now no longer used by core.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20419 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-10 02:25:03 +00:00
bumpbot a8dff3cb86 Compress scripts/styles: 3.4-beta1-20390. TinyMCE updated.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-06 23:58:19 +00:00
azaozz 4d785dac0b Add the "aside,audio,canvas,figcaption,figure,nav,output,video" tags that shouldn't be wrapped in <p> to the internal blocks list in TinyMCE, fixes #20381
git-svn-id: http://svn.automattic.com/wordpress/trunk@20389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-06 22:59:22 +00:00
bumpbot d660121e01 Compress scripts/styles: 3.4-alpha-20355.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20355 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-04 21:58:23 +00:00
koopersmith 2fd59af7a6 Theme Customizer: Improve the customize loader and themes list table markup. see #19910.
* Use event delegation for triggering the customize loader (so we play nicely with infinite scroll).
* Use data attributes on .load-customize links instead of parsing the href.
* Properly translate the 'Customize' string instead of injecting the replacement with JS.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20352 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-04 21:02:29 +00:00
bumpbot 4a6eb81bb7 Compress scripts/styles: 3.4-alpha-20345.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-03 22:58:20 +00:00
koopersmith 272d6daac2 Theme Customizer: Improve data binding in wp.customize.Value and wp.customize.Values. see #19910.
* Replace the convoluted wp.customize.Value.link method with a simple shortcut for direct binding.
* Add wp.customize.Value.sync for bidirectional linking.
* Add wp.customize.Value.setter for handling compound values (instead of using wp.customize.Value.link).

git-svn-id: http://svn.automattic.com/wordpress/trunk@20344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-03 22:04:40 +00:00
bumpbot 32e1568691 Compress scripts/styles: 3.4-alpha-20343.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20343 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-02 22:58:19 +00:00
azaozz 06aedd898e Editor: fix adding a link in WebKit to floated image, fixes #16569
git-svn-id: http://svn.automattic.com/wordpress/trunk@20341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-02 22:16:30 +00:00
ryan eaf043e37c Remove jQuery Masonry. Fully reverts [20060]. see #17242
git-svn-id: http://svn.automattic.com/wordpress/trunk@20340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-02 20:05:35 +00:00
nacin d9b2876e98 jQuery 1.7.2. props ocean90. fixes #20339.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20337 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-01 20:13:36 +00:00
bumpbot 69f8d3b242 Compress scripts/styles: 3.4-alpha-20320.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-29 06:58:19 +00:00
koopersmith 79f8b89fbc Theme Customizer: Move upload and image controls to subclasses. see #19910.
Instead of grouping together every control parameter into a single  array and passing them all to the JS, use subclasses with custom parameters to implement additional PHP functionality and the  parameter to send only the necessary variables to the JavaScript control.

Replaces WP_Customize_Control->control_params with WP_Customize_Control->json and WP_Customize_Control->to_json(). The to_json() method refreshes the json array passed to the JavaScript control (set to control.param by default).

Creates WP_Customize_Upload_Control and WP_Customize_Image_Control.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20319 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-29 06:35:54 +00:00
bumpbot 1aa96ed7c0 Compress scripts/styles: 3.4-alpha-20304.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-28 09:58:22 +00:00
koopersmith fc22367830 Theme Customizer: Properly bind the 'upload new' and 'remove image' actions in the image picker. see #19910.
This occurred because we weren't calling UploadControl.ready (where the actions are declared and the uploader is initialized) in ImageControl.ready.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-28 09:33:32 +00:00
koopersmith b41d074b1b Theme Customizer: Sanitize selectors by transforming square brackets into dashes. see #19910.
This both better conforms to the CSS spec and prevents bugs from occurring in JavaScript selector engines.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-28 09:10:29 +00:00
bumpbot e6acfbf233 Compress scripts/styles: 3.4-alpha-20298.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20298 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-28 08:58:23 +00:00
koopersmith 57bd0ee2a5 Theme Customizer: Fix postMessage for background_color. The method parameter affects settings, not controls. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20297 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-28 08:55:25 +00:00
bumpbot 3c1ed96efe Compress scripts/styles: 3.4-alpha-20296.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-28 04:58:24 +00:00
koopersmith 30d798ec8d 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: http://svn.automattic.com/wordpress/trunk@20295 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-28 04:14:09 +00:00
bumpbot 9b3fe2d062 Compress scripts/styles: 3.4-alpha-20291.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20291 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-25 21:58:20 +00:00
koopersmith 4e2cbd6a4d Theme Customizer: Add 'choose image' functionality to image controls. Rough first pass, using header images as an example. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-25 21:18:32 +00:00
bumpbot e52ee97665 Compress scripts/styles: 3.4-alpha-20280.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20280 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-24 04:58:29 +00:00
koopersmith 6213bdfa52 Theme Customizer: First pass at image controls. Use header_image as the initial case. Add a 'removed' control param for upload/image controls to map 'removed' to a value other than the empty string. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20278 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-24 04:35:13 +00:00