Commit Graph

9899 Commits

Author SHA1 Message Date
koopersmith c3e7ce5320 Theme Customizer: Check for CORS support when the preview and admin urls are cross-domain. Add a fallback to the customize control frame, and check support there as well. see #20582, #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-24 21:13:21 +00:00
bumpbot 878433583e Compress scripts/styles: 3.4-beta4-20883.
git-svn-id: http://core.svn.wordpress.org/trunk@20883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-24 19:58:22 +00:00
koopersmith 84cc00a6e8 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: http://core.svn.wordpress.org/trunk@20882 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-24 19:17:49 +00:00
ryan c727c4ef21 "Save & Activate" for customize controls localization. see #20692 #19910
git-svn-id: http://core.svn.wordpress.org/trunk@20878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-24 15:20:33 +00:00
markjaquith c1fe189ec3 ALIGN *ALL* THE THINGS! see #20324
git-svn-id: http://core.svn.wordpress.org/trunk@20874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-24 07:14:10 +00:00
nacin 6e96ad62aa Update dailymotion's oEmbed endpoint. props arena. fixes #20324.
git-svn-id: http://core.svn.wordpress.org/trunk@20873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-24 07:07:55 +00:00
nacin 111f59eac5 Remove reference to a global eliminated long ago. props tamlyn, fixes #20668.
git-svn-id: http://core.svn.wordpress.org/trunk@20872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-24 07:06:13 +00:00
bumpbot 62608b9370 Compress scripts/styles: 3.4-beta4-20865.
git-svn-id: http://core.svn.wordpress.org/trunk@20865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-24 03:58:23 +00:00
koopersmith 4973f92107 Theme Customizer: Change 'Return to...' link to 'Cancel' and move 'Save' button to header. props helenyhou, fixes #20692, see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-24 03:29:51 +00:00
koopersmith f6882e94ef Theme Customizer: Add a base element to the preview's head element to allow relative links (root, hash, and query strings). see #20507, #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20863 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-24 02:07:16 +00:00
bumpbot e07ced46ab Compress scripts/styles: 3.4-beta4-20862.
git-svn-id: http://core.svn.wordpress.org/trunk@20862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-24 01:58:20 +00:00
koopersmith 46f03144b0 Theme Customizer: Properly handle redirects in the preview by setting wp_redirect_status to 200. props nacin, see #20507, #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-24 01:48:32 +00:00
nacin 0f259eaae1 Remove temporary magic call method in favor of theme(), settings(), controls(), and sections() methods for WP_Customize_Manager. fixes #20736.
git-svn-id: http://core.svn.wordpress.org/trunk@20860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-23 21:21:29 +00:00
westi b36c335b7a i18n: Update the word splitting we use when trimming strings to build excerpts so that it has support for a character based mode for locales where character splitting is more approproate like Japan.
See #16079 props tenpura.


git-svn-id: http://core.svn.wordpress.org/trunk@20859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-23 21:04:35 +00:00
ryan f35fdc678f Introduce _prepare_comment(). Avoid repeated auth attempts. Props maxcutler. fixes #20703
git-svn-id: http://core.svn.wordpress.org/trunk@20856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-23 20:40:40 +00:00
nacin 95e1c32720 Customize API shuffling.
* Rename WP_Customize to WP_Customize_Manager.
 * Move customize-controls.php to wp-admin/customize.php.
 * Make customize.php the formal entry point, rather than admin.php?customize=on.
 * Rename is_current_theme_active() to is_theme_active().
 * Add getters for the theme, settings, controls, and sections properties.
 * Allow customize.php (no ?theme=) to load the active theme. Not used yet.
see #20736.



git-svn-id: http://core.svn.wordpress.org/trunk@20852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-23 17:56:42 +00:00
ryan 5a53ce6d28 Translate and empty header text color into the default text color. Honor blank. Props kovshenin. fixes #20600
git-svn-id: http://core.svn.wordpress.org/trunk@20851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-23 15:36:27 +00:00
ryan 4077461708 Fix post limiting in wp_getPosts(). Props djcp. fixes #20723
git-svn-id: http://core.svn.wordpress.org/trunk@20846 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-22 22:25:17 +00:00
bumpbot df1279bd04 Compress scripts/styles: 3.4-beta4-20841.
git-svn-id: http://core.svn.wordpress.org/trunk@20841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-22 01:58:24 +00:00
bumpbot d8ed87e9e1 Compress scripts/styles: 3.4-beta4-20838.
git-svn-id: http://core.svn.wordpress.org/trunk@20838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-21 19:58:25 +00:00
ryan db0e04adcf Accordion for the customizer. Props markjaquith. fixes #20700
git-svn-id: http://core.svn.wordpress.org/trunk@20837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-21 19:53:22 +00:00
ryan 2fa8066123 Disambiguate menu_order. Props markjaquith. fixes #20711
git-svn-id: http://core.svn.wordpress.org/trunk@20836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-21 19:50:58 +00:00
bumpbot 236667ca24 Compress scripts/styles: 3.4-beta4-20834.
git-svn-id: http://core.svn.wordpress.org/trunk@20834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-21 18:58:19 +00:00
koopersmith c1abf942f3 Theme Customizer: Reset scroll to top when the preview url is changed. props ocean90, fixes #20713, see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-21 17:58:17 +00:00
azaozz d2c389657d Image captions: change query arg in the Edit Image iframe HTML to refresh browser cache, see #18311
git-svn-id: http://core.svn.wordpress.org/trunk@20831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-18 23:09:59 +00:00
ryan 15b9961b52 set_url_scheme() for header and background image srcs. see #20702
git-svn-id: http://core.svn.wordpress.org/trunk@20830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-18 20:22:57 +00:00
ryan 103fba7679 Load the customize preview over ssl if the customize admin page is loaded over ssl and the frontend and admin are on the same domain. This avoids insecure content warnings and allows a more complete preview in browsers such as Chrome that block loading of css until user confirmation allows mixed content loading. see #20702
git-svn-id: http://core.svn.wordpress.org/trunk@20829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-18 20:09:53 +00:00
ryan 46e4ffe765 Introduce set_url_scheme(). Includes get_site_url() logic for determining when to use http vs. https. Use this to rerite urls to obey is_ssl(). Props jkudish. fixes #18017
git-svn-id: http://core.svn.wordpress.org/trunk@20828 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-18 20:04:59 +00:00
bumpbot 95ecb49c92 Compress scripts/styles: 3.4-beta4-20825.
git-svn-id: http://core.svn.wordpress.org/trunk@20825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-17 21:58:27 +00:00
koopersmith 4e5c3519ea Theme Customizer: RTL fixes. props ocean90, fixes #20585, see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-17 21:37:00 +00:00
bumpbot 3c413b1904 Compress scripts/styles: 3.4-beta4-20823.
git-svn-id: http://core.svn.wordpress.org/trunk@20823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-17 17:22:40 +00:00
koopersmith 67e4ef9102 Theme Customizer: Sidebar RTL fixes. see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-17 17:08:20 +00:00
bumpbot 125c5610af Compress scripts/styles: 3.4-beta4-20821.
git-svn-id: http://core.svn.wordpress.org/trunk@20821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-17 15:58:23 +00:00
koopersmith d28902a112 Theme Customizer: Ensure image control tabs are full-width to prevent floating bugs. see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-17 15:56:18 +00:00
bumpbot 8f5251dc61 Compress scripts/styles: 3.4-beta4-20819.
git-svn-id: http://core.svn.wordpress.org/trunk@20819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-17 01:58:25 +00:00
bumpbot 88f873c6a5 Compress scripts/styles: 3.4-beta4-20817.
git-svn-id: http://core.svn.wordpress.org/trunk@20817 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-17 00:58:25 +00:00
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 9047cffc73 Compress scripts/styles: 3.4-beta4-20815.
git-svn-id: http://core.svn.wordpress.org/trunk@20815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-16 23:58:26 +00:00
azaozz 0450af0ad5 Retina display icons: add 2x sprite for the toolbar, props chexee, fixes #20293
git-svn-id: http://core.svn.wordpress.org/trunk@20814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-16 23:55:38 +00:00
koopersmith 507f3b2d0c Theme Customizer: Properly escape customize settings when sending values to JS. Add WP_Customize_Setting->js_value(). fixes #20687, see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20809 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-16 20:59:02 +00:00
ryan 0983e9afcb Fix wp.getPages response when fetching pages the current user does not have caps for. Props maxcutler, redsweater. fixes #20629
git-svn-id: http://core.svn.wordpress.org/trunk@20807 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-16 18:06:34 +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