Commit Graph

19182 Commits

Author SHA1 Message Date
bumpbot 00c2d58e3b Compress scripts/styles: 3.4-beta4-20941.
git-svn-id: https://develop.svn.wordpress.org/trunk@20941 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 20:58:28 +00:00
Daryl Koopersmith d0a638e2cb Theme Customizer: Don't expand theme title if there are no details to show. props nacin, fixes #20757, see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20940 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 20:47:55 +00:00
bumpbot 04bf106bc6 Compress scripts/styles: 3.4-beta4-20939.
git-svn-id: https://develop.svn.wordpress.org/trunk@20939 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 19:58:26 +00:00
Daryl Koopersmith ccf22d9821 Theme Customizer: Color picker RTL fixes. props ocean90, see #20448.
git-svn-id: https://develop.svn.wordpress.org/trunk@20938 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 19:02:09 +00:00
bumpbot 9e76dc4f7d Compress scripts/styles: 3.4-beta4-20937.
git-svn-id: https://develop.svn.wordpress.org/trunk@20937 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 18:58:28 +00:00
Daryl Koopersmith 771ca21787 Theme Customizer: Ensure that JS color controls always use real color values, even if the server-side value is a hex value without a hash. fixes #20448, see #19910.
Adds WP_Customize_Setting->sanitize_js_callback and 'customize_sanitize_js_$settingID' filter, to filter values before they're passed to JS using WP_Customize_Setting->js_value().

Adds support for regular hex colors to the color picker.

Changes color methods:
* sanitize_hex_color() accepts 3 and 6 digit hex colors (with hashes) and the empty string.
* sanitize_hex_color_no_hash() accepts 3 and 6 digit hex colors (without hashes) and the empty string.
* maybe_hash_hex_color() ensures that a hex color has a hash, and otherwise leaves the value untouched.


git-svn-id: https://develop.svn.wordpress.org/trunk@20936 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 18:44:31 +00:00
bumpbot da056976ea Compress scripts/styles: 3.4-beta4-20935.
git-svn-id: https://develop.svn.wordpress.org/trunk@20935 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 15:58:30 +00:00
Andrew Nacin e7e922b356 Theme Customizer: As customize.php without a theme parameter defaults to the current theme, update wp_customize_url() to make $stylesheet optional and update references for the current theme.
see #19910, #20751, #20575.



git-svn-id: https://develop.svn.wordpress.org/trunk@20934 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 15:32:05 +00:00
Andrew Nacin cd3af4b6d1 Theme Customizer: 'Header Text Color', not 'Text Color', when referring to the header text in the Colors section. props ocean90. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20933 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 15:24:42 +00:00
Andrew Nacin 45f7b34b4f Theme Customizer: More RTL. props ocean90. fixes #20585.
git-svn-id: https://develop.svn.wordpress.org/trunk@20932 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 15:22:02 +00:00
bumpbot a92af521b0 Compress scripts/styles: 3.4-beta4-20931.
git-svn-id: https://develop.svn.wordpress.org/trunk@20931 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 07:58:28 +00:00
Daryl Koopersmith 7542bc9ab5 Theme Customizer: Fix preview background CSS creation to insert/remove style nodes (for IE8 compatibility). fixes #20582, see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20930 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 07:02:28 +00:00
bumpbot 00bccb6d74 Compress scripts/styles: 3.4-beta4-20929.
git-svn-id: https://develop.svn.wordpress.org/trunk@20929 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 05:58:26 +00:00
Daryl Koopersmith 83c45f9d04 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: https://develop.svn.wordpress.org/trunk@20928 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 05:55:40 +00:00
bumpbot c025eb0ce9 Compress scripts/styles: 3.4-beta4-20927.
git-svn-id: https://develop.svn.wordpress.org/trunk@20927 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 04:58:27 +00:00
Andrew Nacin 7552f3d242 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: https://develop.svn.wordpress.org/trunk@20926 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 04:34:45 +00:00
Daryl Koopersmith 0847bf3b89 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: https://develop.svn.wordpress.org/trunk@20925 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 04:08:44 +00:00
Andrew Nacin a621d3e326 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: https://develop.svn.wordpress.org/trunk@20924 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 03:52:14 +00:00
bumpbot 4c0e9056ef Compress scripts/styles: 3.4-beta4-20923.
git-svn-id: https://develop.svn.wordpress.org/trunk@20923 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 00:58:26 +00:00
Daryl Koopersmith eda2a6261d Theme Customizer: Reduce size of box shadow to minimize scrollbar overlap in Firefox. props azaozz, fixes #20753, see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20922 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 00:21:34 +00:00
bumpbot 2a856e0767 Compress scripts/styles: 3.4-beta4-20921.
git-svn-id: https://develop.svn.wordpress.org/trunk@20921 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 22:58:24 +00:00
Daryl Koopersmith f0ee0c39dd Theme Customizer: Fix width for image picker thumbnails in IE8. props SergeyBiryukov, see #20582.
git-svn-id: https://develop.svn.wordpress.org/trunk@20920 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 22:52:05 +00:00
Daryl Koopersmith b756f8b246 Theme Customizer: Correctly use custom-background class in theme preview. See #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20919 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 22:43:11 +00:00
Daryl Koopersmith e0fc4ce778 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: https://develop.svn.wordpress.org/trunk@20918 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 22:26:00 +00:00
potbot c4822affc0 POT, generated from r20916
git-svn-id: https://develop.svn.wordpress.org/trunk@20917 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 22:18:18 +00:00
Daryl Koopersmith 16aaa01c48 Twenty Eleven theme customizer integration. props lancewillett, Otto42. fixes #20448, see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20916 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 21:50:01 +00:00
Daryl Koopersmith f27e2cc8cf 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: https://develop.svn.wordpress.org/trunk@20915 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 20:58:49 +00:00
bumpbot 10bd484fb0 Compress scripts/styles: 3.4-beta4-20914.
git-svn-id: https://develop.svn.wordpress.org/trunk@20914 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 20:58:23 +00:00
Daryl Koopersmith b1e5b31c58 Theme Customizer: Improve background image control, add correct meta key to custom headers and backgrounds uploaded using the customizer. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20913 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 20:26:25 +00:00
Daryl Koopersmith 2cd502fdfb 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: https://develop.svn.wordpress.org/trunk@20912 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 19:52:54 +00:00
bumpbot 442c7c69b3 Compress scripts/styles: 3.4-beta4-20911.
git-svn-id: https://develop.svn.wordpress.org/trunk@20911 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 18:58:23 +00:00
Daryl Koopersmith 4f72da87c9 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: https://develop.svn.wordpress.org/trunk@20910 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 18:54:57 +00:00
Andrew Nacin 9aef6b843b Skip cached credits if version number doesn't match. props duck_. fixes #20270.
git-svn-id: https://develop.svn.wordpress.org/trunk@20909 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 18:52:13 +00:00
Daryl Koopersmith c88445c82d 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: https://develop.svn.wordpress.org/trunk@20908 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 18:41:22 +00:00
Andrew Nacin 11e40f1643 Twenty Eleven: Remove unused CSS. props SergeyBiryukov. fixes #20470.
git-svn-id: https://develop.svn.wordpress.org/trunk@20907 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 18:29:05 +00:00
Andrew Nacin 631413d39a Twenty Eleven: Style the samp and var elements the same way we style the code and kbd elements. props mfields, fixes #17842.
git-svn-id: https://develop.svn.wordpress.org/trunk@20906 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 18:22:31 +00:00
Andrew Nacin 26b2c0d693 Twenty Eleven: Add whitespace to paragraphs in the image post format. props mfields, fixes #20471.
git-svn-id: https://develop.svn.wordpress.org/trunk@20905 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 18:16:42 +00:00
Andrew Nacin e9e1eae451 Twenty Eleven: Remove border and padding from images in the image widget. props lancewillett, fixes #20482.
git-svn-id: https://develop.svn.wordpress.org/trunk@20904 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 18:16:01 +00:00
Andrew Nacin 49552d6887 Twenty Eleven: Correct the display of featured images in the showcase template for IE8. props chellycat. fixes #20479.
git-svn-id: https://develop.svn.wordpress.org/trunk@20903 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 18:14:44 +00:00
Andrew Nacin 1a9975e388 Add the old root feed files to the $_old_files array, commented the way we've done for wp-register.php and wp-pass.php. see #20727.
git-svn-id: https://develop.svn.wordpress.org/trunk@20902 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 18:12:29 +00:00
Andrew Nacin 85eb57bd89 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: https://develop.svn.wordpress.org/trunk@20901 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 17:58:57 +00:00
bumpbot efefd513c3 Compress scripts/styles: 3.4-beta4-20900.
git-svn-id: https://develop.svn.wordpress.org/trunk@20900 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 17:58:22 +00:00
Daryl Koopersmith d49df83c8c Theme Customizer: Improve activate and publish flow, make customizer states easier to track. fixes #20743, see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20899 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 17:42:06 +00:00
bumpbot 53d8ab60ec Compress scripts/styles: 3.4-beta4-20898.
git-svn-id: https://develop.svn.wordpress.org/trunk@20898 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 16:58:23 +00:00
Daryl Koopersmith 220b3bfafb Theme Customizer: Prevent messengers from binding to the current window when a parent doesn't exist. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20897 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 16:19:18 +00:00
Andrew Nacin 86f9620fd3 s/sumbit/submit/. props tollmanz, fixes #20744.
git-svn-id: https://develop.svn.wordpress.org/trunk@20896 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 13:45:16 +00:00
Andrew Nacin 7b66754f5c Run _redirect_to_about_wordpress() in 3.4 due to the change in [20894] and the reliance on ?updated in [20887]. see #19599.
git-svn-id: https://develop.svn.wordpress.org/trunk@20895 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 13:43:35 +00:00
Andrew Nacin 3f7b169181 Use correct variable when redirecting to about.php from update-core.php. fixes #19599.
git-svn-id: https://develop.svn.wordpress.org/trunk@20894 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 13:41:01 +00:00
Daryl Koopersmith b1a672cdfa 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: https://develop.svn.wordpress.org/trunk@20893 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 00:15:12 +00:00
bumpbot d074d1c69f Compress scripts/styles: 3.4-beta4-20892.
git-svn-id: https://develop.svn.wordpress.org/trunk@20892 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-24 22:58:21 +00:00