Commit Graph

9925 Commits

Author SHA1 Message Date
koopersmith 20f804ab8f Theme Customizer: Fix IE8 drag/drop uploader incompatibility. see #20582, #19910.
Bind drag/drop support checks to individual plupload instances.
Add drag-over classes to wp.Uploader and corresponding styles to customize image controls.


git-svn-id: http://core.svn.wordpress.org/trunk@20928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 05:55:40 +00:00
bumpbot e5a31ee0ad Compress scripts/styles: 3.4-beta4-20927.
git-svn-id: http://core.svn.wordpress.org/trunk@20927 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 04:58:27 +00:00
nacin db5af1d1f6 Theme Customizer: Introduce a remove_preview_signature() method that we can employ to ensure we do not think a wp_die() is a customizer-generated preview. see #20507.
git-svn-id: http://core.svn.wordpress.org/trunk@20926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 04:34:45 +00:00
koopersmith e178acf108 Theme Customizer: Add a signature to preview requests to be super-double-ultra-sure that the customizer generated the preview. Redirects can be sneaky. fixes #20507, see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 04:08:44 +00:00
nacin ea95fd213b Do not spawn cron or trigger update checks when running the customizer.
Both can slow down the experience.

The alternate cron will issue a redirect which creates more work for the
customizer, but not exit immediately, which means shutdown will be delayed
(see future changeset from koopersmith in #20507 where we check for a token
printed on shutdown to ensure the response came from the customizer).

The update checks could also cause bad data to be sent. In particular, the
currently active theme would be incorrect.

see #20507.



git-svn-id: http://core.svn.wordpress.org/trunk@20924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 03:52:14 +00:00
bumpbot 3f5a35aa11 Compress scripts/styles: 3.4-beta4-20923.
git-svn-id: http://core.svn.wordpress.org/trunk@20923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 00:58:26 +00:00
bumpbot 366ca788d5 Compress scripts/styles: 3.4-beta4-20921.
git-svn-id: http://core.svn.wordpress.org/trunk@20921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 22:58:24 +00:00
koopersmith 2d51b1376e Theme Customizer: Fix width for image picker thumbnails in IE8. props SergeyBiryukov, see #20582.
git-svn-id: http://core.svn.wordpress.org/trunk@20920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 22:52:05 +00:00
koopersmith 3c044eba6f Theme Customizer: Correctly use custom-background class in theme preview. See #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 22:43:11 +00:00
koopersmith 69c970a4a1 Hide 'Customize' toolbar item when customizer is not supported. fixes #20751, see #19910.
Removes script queue check for 'customize-loader' from wp_customize_support_script(), because we may want to check for customize-support on a page without the loader.


git-svn-id: http://core.svn.wordpress.org/trunk@20918 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 22:26:00 +00:00
koopersmith ae0212699a Theme Customizer: Allow sanitize_hexcolor to accept the empty string. Fixes default assignment on save and bug where header textcolor would remain hidden if loaded hidden. see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 20:58:49 +00:00
bumpbot fbcc2cb097 Compress scripts/styles: 3.4-beta4-20914.
git-svn-id: http://core.svn.wordpress.org/trunk@20914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 20:58:23 +00:00
koopersmith beb401b533 Theme Customizer: Improve background image control, add correct meta key to custom headers and backgrounds uploaded using the customizer. see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20913 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 20:26:25 +00:00
koopersmith 9a3b25de9d Theme Customizer: Section reorganization. see #19910.
Now that sections are organized in accordions, group items by size and usage.
Move header/background controls into colors, header image, background image, and title/tagline sections.


git-svn-id: http://core.svn.wordpress.org/trunk@20912 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 19:52:54 +00:00
bumpbot f895adb49c Compress scripts/styles: 3.4-beta4-20911.
git-svn-id: http://core.svn.wordpress.org/trunk@20911 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 18:58:23 +00:00
koopersmith 0e67a9a8c4 Theme Customizer: Improve hex color sanitization functions. fixes #20600, see #19910.
Instead of fetching default header_textcolor manually, return null to do so automatically.
Improve hex regex.


git-svn-id: http://core.svn.wordpress.org/trunk@20910 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 18:54:57 +00:00
koopersmith a5ee470df7 Theme Customizer: Improve default background property handling. see #20600, #19910.
If the custom background default wp-head-callback (_custom_background_cb) is used, we use postMessage for all custom background properties. Otherwise, we use full refreshes.

When using postMessage, the preview recalculates the custom background CSS block, allowing it to omit CSS values when they are not present and fall back on the original CSS.


git-svn-id: http://core.svn.wordpress.org/trunk@20908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 18:41:22 +00:00
nacin afad27974e Preview by default the registered default image for custom backgrounds. props mfields, billerickson.
If there is a default color registered, show a 'Default' action rather than a 'Clear' action, as clearing the value would simply return to the default.

Make current_theme_supports() accept a second argument for 'custom-background' requests, the same as get_theme_support(). Missed in earlier changes, see #20249.

fixes #20734, fixes #18041.



git-svn-id: http://core.svn.wordpress.org/trunk@20901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 17:58:57 +00:00
bumpbot f58b088cfd Compress scripts/styles: 3.4-beta4-20900.
git-svn-id: http://core.svn.wordpress.org/trunk@20900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 17:58:22 +00:00
koopersmith b3c12bada3 Theme Customizer: Improve activate and publish flow, make customizer states easier to track. fixes #20743, see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 17:42:06 +00:00
bumpbot d05de3ad24 Compress scripts/styles: 3.4-beta4-20898.
git-svn-id: http://core.svn.wordpress.org/trunk@20898 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 16:58:23 +00:00
koopersmith c71b8d0925 Theme Customizer: Prevent messengers from binding to the current window when a parent doesn't exist. see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20897 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 16:19:18 +00:00
koopersmith d8abece877 Theme Customizer: Add CORS checks to the initial check for customize support. Prevents flash of customize links on large pages. see #20582, #19910.
Add wp_customize_support_script(), to quickly alter the body class based on whether customize is supported.


git-svn-id: http://core.svn.wordpress.org/trunk@20893 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 00:15:12 +00:00
bumpbot bff286c100 Compress scripts/styles: 3.4-beta4-20892.
git-svn-id: http://core.svn.wordpress.org/trunk@20892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-24 22:58:21 +00:00
koopersmith 2f09b8d0a6 Theme Customizer: Fix hash-based loader fallbacks. see #20736, #19910, [20886].
git-svn-id: http://core.svn.wordpress.org/trunk@20890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-24 22:45:27 +00:00
bumpbot 29eb5af53f Compress scripts/styles: 3.4-beta4-20889.
git-svn-id: http://core.svn.wordpress.org/trunk@20889 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-24 21:40:40 +00:00
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