Commit Graph

958 Commits

Author SHA1 Message Date
Daryl Koopersmith b0a9ad5216 Theme Customizer: Improve accuracy of identifying internal urls. see #20507, #19910.
The 'customize_preview_link' filter has been replaced by 'customize_allowed_urls'.
Improved accuracy when checking for wp-admin.
Improved accuracy when attempting to match the schemes of the control and preview frames.
Improved accuracy of internal link whitelist.


git-svn-id: https://develop.svn.wordpress.org/trunk@20882 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-24 19:17:49 +00:00
bumpbot f8271b779a Compress scripts/styles: 3.4-beta4-20865.
git-svn-id: https://develop.svn.wordpress.org/trunk@20865 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-24 03:58:23 +00:00
Daryl Koopersmith 4b9f6216e9 Theme Customizer: Change 'Return to...' link to 'Cancel' and move 'Save' button to header. props helenyhou, fixes #20692, see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20864 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-24 03:29:51 +00:00
bumpbot 9ec9ad920a Compress scripts/styles: 3.4-beta4-20862.
git-svn-id: https://develop.svn.wordpress.org/trunk@20862 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-24 01:58:20 +00:00
Daryl Koopersmith dde6d026cf Theme Customizer: Properly handle redirects in the preview by setting wp_redirect_status to 200. props nacin, see #20507, #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20861 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-24 01:48:32 +00:00
bumpbot 270a3de367 Compress scripts/styles: 3.4-beta4-20838.
git-svn-id: https://develop.svn.wordpress.org/trunk@20838 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-21 19:58:25 +00:00
Ryan Boren fd6d65117c Accordion for the customizer. Props markjaquith. fixes #20700
git-svn-id: https://develop.svn.wordpress.org/trunk@20837 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-21 19:53:22 +00:00
bumpbot c0d9bee71f Compress scripts/styles: 3.4-beta4-20834.
git-svn-id: https://develop.svn.wordpress.org/trunk@20834 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-21 18:58:19 +00:00
Daryl Koopersmith 4370cd7063 Theme Customizer: Reset scroll to top when the preview url is changed. props ocean90, fixes #20713, see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20833 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-21 17:58:17 +00:00
Andrew Ozz 057704f003 Image captions: change query arg in the Edit Image iframe HTML to refresh browser cache, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@20831 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-18 23:09:59 +00:00
bumpbot 0c555027ba Compress scripts/styles: 3.4-beta4-20817.
git-svn-id: https://develop.svn.wordpress.org/trunk@20817 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-17 00:58:25 +00:00
Daryl Koopersmith 0e3b3a7555 Theme Customizer: Add 'ready' event to customize-controls. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20816 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-17 00:00:57 +00:00
bumpbot 8471a0947c Compress scripts/styles: 3.4-beta4-20805. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@20805 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-16 07:58:24 +00:00
Andrew Ozz 136f951922 DFW: another attempt to get auto-resize working right, see #20608, see #20684
git-svn-id: https://develop.svn.wordpress.org/trunk@20804 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-16 07:02:55 +00:00
bumpbot ed5c4343f0 Compress scripts/styles: 3.4-beta4-20803.
git-svn-id: https://develop.svn.wordpress.org/trunk@20803 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-16 05:58:24 +00:00
Daryl Koopersmith 5c77fcc30b 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: https://develop.svn.wordpress.org/trunk@20802 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-16 05:55:54 +00:00
Daryl Koopersmith 47d5d564b4 Theme Customizer: Make the wp.customize.Events methods chainable. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20801 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-16 05:17:26 +00:00
bumpbot 45919db511 Compress scripts/styles: 3.4-beta4-20800.
git-svn-id: https://develop.svn.wordpress.org/trunk@20800 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-15 22:58:23 +00:00
Daryl Koopersmith b010685cd2 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: https://develop.svn.wordpress.org/trunk@20799 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-15 22:43:49 +00:00
Daryl Koopersmith 1a2375b4ee 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: https://develop.svn.wordpress.org/trunk@20798 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-15 22:14:46 +00:00
Daryl Koopersmith 10cf296150 Theme Customizer: Make wp.customize.Values.when return a jQuery.Deferred.promise() object, to add additional flexibility. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20797 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-15 22:01:36 +00:00
bumpbot b2a616cc17 Compress scripts/styles: 3.4-beta4-20796.
git-svn-id: https://develop.svn.wordpress.org/trunk@20796 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-15 21:58:21 +00:00
Daryl Koopersmith 6ad7ce44d6 Theme Customizer: Add an Events mixin to wp.customize, used by default in wp.customize.Messenger. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20795 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-15 21:28:21 +00:00
bumpbot 5b4edeb721 Compress scripts/styles: 3.4-beta4-20762.
git-svn-id: https://develop.svn.wordpress.org/trunk@20762 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-10 00:58:25 +00:00
Daryl Koopersmith 476314ad8b Theme Customizer: Add a fallback UI for browsers that do not support drag and drop upload. see #19910, #20452, #20582.
git-svn-id: https://develop.svn.wordpress.org/trunk@20761 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-10 00:15:53 +00:00
bumpbot 243ecb7b13 Compress scripts/styles: 3.4-beta4-20760.
git-svn-id: https://develop.svn.wordpress.org/trunk@20760 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-09 21:58:31 +00:00
Daryl Koopersmith 971dc88583 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: https://develop.svn.wordpress.org/trunk@20758 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-09 21:26:19 +00:00
bumpbot d454d3a0f3 Compress scripts/styles: 3.4-beta4-20746.
git-svn-id: https://develop.svn.wordpress.org/trunk@20746 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-09 00:58:22 +00:00
Daryl Koopersmith 7739e9186d 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: https://develop.svn.wordpress.org/trunk@20745 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-09 00:23:05 +00:00
bumpbot d16b4050ad Compress scripts/styles: 3.4-beta4-20744.
git-svn-id: https://develop.svn.wordpress.org/trunk@20744 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-08 23:58:24 +00:00
Daryl Koopersmith e1e949728c Theme Customizer: Add basic loading indicator when loading the customizer inside an iframe. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20743 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-08 23:37:05 +00:00
bumpbot 9116865432 Compress scripts/styles: 3.4-beta4-20742.
git-svn-id: https://develop.svn.wordpress.org/trunk@20742 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-08 20:58:20 +00:00
Daryl Koopersmith 320916cc53 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: https://develop.svn.wordpress.org/trunk@20741 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-08 20:13:34 +00:00
bumpbot 597d44e837 Compress scripts/styles: 3.4-beta4-20738.
git-svn-id: https://develop.svn.wordpress.org/trunk@20738 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-07 20:58:22 +00:00
Daryl Koopersmith 7fde7c1904 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: https://develop.svn.wordpress.org/trunk@20737 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-07 20:03:39 +00:00
bumpbot c661174958 Compress scripts/styles: 3.4-beta4-20725. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@20725 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-04 03:58:20 +00:00
Andrew Ozz 3afdcf2113 Remove unneeded var added in [20723], see #20608
git-svn-id: https://develop.svn.wordpress.org/trunk@20724 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-04 03:28:35 +00:00
Andrew Ozz 0ad0b4d829 DFW: fix auto-resize in WebKit, fixes #20608
git-svn-id: https://develop.svn.wordpress.org/trunk@20723 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-04 03:23:01 +00:00
bumpbot 93a7eaf328 Compress scripts/styles: 3.4-beta3-20681. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@20681 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 01:58:25 +00:00
Andrew Ozz 95808e088f 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: https://develop.svn.wordpress.org/trunk@20679 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 01:14:52 +00:00
Andrew Nacin ac2e5ae1e0 jQuery UI 1.8.20. fixes #20559.
Fixes placeholder sizes when sorting post and dashboard meta boxes.



git-svn-id: https://develop.svn.wordpress.org/trunk@20660 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:53:09 +00:00
bumpbot fbbe3bda95 Compress scripts/styles: 3.4-beta3-20647.
git-svn-id: https://develop.svn.wordpress.org/trunk@20647 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 15:58:21 +00:00
Daryl Koopersmith 3540b301af 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: https://develop.svn.wordpress.org/trunk@20645 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 15:46:17 +00:00
bumpbot b75a2d8d3d Compress scripts/styles: 3.4-beta3-20603.
git-svn-id: https://develop.svn.wordpress.org/trunk@20603 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 21:58:24 +00:00
Andrew Nacin 3cd8e8300f Update jQuery imgAreaSelect plugin to 0.9.8. props ocean90. fixes #19881.
git-svn-id: https://develop.svn.wordpress.org/trunk@20602 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 21:49:57 +00:00
Andrew Nacin c1dbe37e51 Bail from wp-langs.php if we don't already have a WordPress environment. fixes #20119.
git-svn-id: https://develop.svn.wordpress.org/trunk@20601 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 21:40:20 +00:00
Andrew Nacin 9cd594ef4f Remove touch-punch.dev.js, as .js is appropriate for an external, unmodified script. see #20014.
git-svn-id: https://develop.svn.wordpress.org/trunk@20599 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 21:17:55 +00:00
Daryl Koopersmith 092d648b8a 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: https://develop.svn.wordpress.org/trunk@20598 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 21:03:29 +00:00
Andrew Nacin a14e7a1e8f Move to pixels to avoid off-by-one rendering in Chrome. props trepmal. fixes #20402.
git-svn-id: https://develop.svn.wordpress.org/trunk@20597 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 20:56:26 +00:00
Andrew Nacin af4b4bb752 Remove monospace from TinyMCE caption/alignment image edit popup. see #18311.
git-svn-id: https://develop.svn.wordpress.org/trunk@20593 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 19:54:04 +00:00