Commit Graph

10035 Commits

Author SHA1 Message Date
Ryan Boren 6e10d0d0b4 Customizer: Redirect back to referrer. If referrer is a front end page, load that page in the customizer preview. Props nacin, koopersmith. fixes #20877
git-svn-id: https://develop.svn.wordpress.org/trunk@21028 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-08 18:45:12 +00:00
Andrew Nacin be6b3ffe21 Remove the set_theme_mods() method from customize manager. We ended up not using it. see #20871.
git-svn-id: https://develop.svn.wordpress.org/trunk@21027 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-07 23:33:00 +00:00
bumpbot 867872a3c3 Compress scripts/styles: 3.4-RC2-21026.
git-svn-id: https://develop.svn.wordpress.org/trunk@21026 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-07 22:58:22 +00:00
Ryan Boren 5abcaa52d7 Customizer: Add keyup events to sync textarea values. Props koopersmith. fixes #20879
git-svn-id: https://develop.svn.wordpress.org/trunk@21024 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-07 22:00:59 +00:00
bumpbot 8fac41f47a Compress scripts/styles: 3.4-RC2-21023.
git-svn-id: https://develop.svn.wordpress.org/trunk@21023 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-07 17:58:27 +00:00
Andrew Nacin 178555de2c 3.4-RC2-21020
git-svn-id: https://develop.svn.wordpress.org/trunk@21020 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-07 15:26:37 +00:00
Andrew Nacin 39d7e1ccc9 Call auth_redirect() for customize.php. props ocean90. fixes #20872.
git-svn-id: https://develop.svn.wordpress.org/trunk@21019 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-07 15:25:45 +00:00
Ryan Boren 6fbd4a92f2 RC2 bump
git-svn-id: https://develop.svn.wordpress.org/trunk@21018 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-07 01:52:53 +00:00
bumpbot 9370be4e74 Compress scripts/styles: 3.4-RC1-21017.
git-svn-id: https://develop.svn.wordpress.org/trunk@21017 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-07 01:31:49 +00:00
Ryan Boren 329f3b2fd1 Namespace the customize request arg to prevent collision with plugins and themes. Props nacin. fixes #20862
git-svn-id: https://develop.svn.wordpress.org/trunk@21016 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-07 01:29:57 +00:00
bumpbot 028e1c35cf Compress scripts/styles: 3.4-RC1-21015.
git-svn-id: https://develop.svn.wordpress.org/trunk@21015 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-06 21:51:13 +00:00
Daryl Koopersmith 299642f86b Theme Customizer: Fix scrolling on iOS and Kindle Fire. props azaozz, helenyhou. fixes #20805.
Also fixes uploader UIs on iOS and Kindle Fire by improving wp.Uploader.
Adds mobile viewport specifications.
Moves scrollbar back to fixed positioning.


git-svn-id: https://develop.svn.wordpress.org/trunk@21014 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-06 21:45:17 +00:00
Ryan Boren bfcfd40f49 Don't resurrect a removed default image when changing colors in the Customizer. Props koopersmith, nacin. fixes #20448
git-svn-id: https://develop.svn.wordpress.org/trunk@21013 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-06 21:24:22 +00:00
bumpbot b576babcfe Compress scripts/styles: 3.4-RC1-21011.
git-svn-id: https://develop.svn.wordpress.org/trunk@21011 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-06 20:58:20 +00:00
Andrew Nacin 7996c82427 Theme Customizer: Block non-existent or non-allowed themes, unless the non-allowed theme is the active theme. Support a user having edit_theme_options xor switch_themes. fixes #20852.
git-svn-id: https://develop.svn.wordpress.org/trunk@21010 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-06 20:34:24 +00:00
bumpbot a6d17b5f9a Compress scripts/styles: 3.4-RC1-21007.
git-svn-id: https://develop.svn.wordpress.org/trunk@21007 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-05 20:58:24 +00:00
bumpbot e93e7d4dd9 Compress scripts/styles: 3.4-RC1-21005.
git-svn-id: https://develop.svn.wordpress.org/trunk@21005 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-05 18:58:25 +00:00
Andrew Nacin 245b0655d2 Remove user/site suggestions (autocompletion) from search inputs, as the UX isn't proper.
* Removes all instances of site-search, so away it goes. Sidesteps a number of bugs with site-search.
 * Renames user-search to user-suggest, which means it better describes the current behavior (autocompletion) while allowing for future behavior (instant search).
 * Ties user suggestions to a single .wp-suggest-user class.

with help from markjaquith, helenyhou, wonderboymusic. 
fixes #20835.



git-svn-id: https://develop.svn.wordpress.org/trunk@21003 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-05 18:51:33 +00:00
Andrew Nacin 26ff506998 Add some comments to _custom_background_cb() to explain the logic. see #20448.
git-svn-id: https://develop.svn.wordpress.org/trunk@21002 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-05 18:44:31 +00:00
Ryan Boren 2dbb51b71f Fix removing the default background image for themes that hard-code the default in css. Honor the default background image for themes that do not provide a fallback in css.
* <style> will appear if there is a default image registered. This is the same as 3.3.
* If only a default color is registered, it still assumes it is in the stylesheet, and no <style> will appear. This is a change from 3.3.
* <style> will continue to appear as before if there is a custom background color or image. This is the same as 3.3.
* This then allows for a default background image with background-image: none, overriding style.css. This is new.

Props nacin
see #20448


git-svn-id: https://develop.svn.wordpress.org/trunk@21001 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-05 18:35:31 +00:00
bumpbot cbc3a81ee0 Compress scripts/styles: 3.4-RC1-21000.
git-svn-id: https://develop.svn.wordpress.org/trunk@21000 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-05 17:58:23 +00:00
Andrew Nacin 2501af58b6 Combine 'Invalid term ID.' into the 'Invalid term ID' string. props pavelevap. fixes #20809.
git-svn-id: https://develop.svn.wordpress.org/trunk@20996 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-05 16:25:05 +00:00
Daryl Koopersmith ac95404db8 Theme Customizer: Add an inline html5 shiv to the preview to ensure html5 elements render properly. props SergeyBiryukov, fixes #20755.
git-svn-id: https://develop.svn.wordpress.org/trunk@20995 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-05 12:26:57 +00:00
bumpbot 382692fb3e Compress scripts/styles: 3.4-RC1-20992.
git-svn-id: https://develop.svn.wordpress.org/trunk@20992 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-04 17:58:27 +00:00
Ryan Boren 589a54bbee Update Fire browser detection. Handle silke mode. Props azaozz, nacin, georgestephanis. fixes #20014
git-svn-id: https://develop.svn.wordpress.org/trunk@20990 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-04 16:04:54 +00:00
bumpbot 5e0d8e2c95 Compress scripts/styles: 3.4-RC1-20989.
git-svn-id: https://develop.svn.wordpress.org/trunk@20989 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-04 15:58:26 +00:00
Ryan Boren 06c0450892 Theme Customizer: Fix race condition in previewer and use message channels. Props koopersmith. fixes #20811
git-svn-id: https://develop.svn.wordpress.org/trunk@20988 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-04 15:51:46 +00:00
bumpbot 8aeab385e7 Compress scripts/styles: 3.4-RC1-20985.
git-svn-id: https://develop.svn.wordpress.org/trunk@20985 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-04 14:58:23 +00:00
bumpbot 1699318343 Compress scripts/styles: 3.4-RC1-20979.
git-svn-id: https://develop.svn.wordpress.org/trunk@20979 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-02 01:58:27 +00:00
Andrew Ozz 971e81c326 Fix notice in wp_read_image_metadata() when EXIF ISOSpeedRatings is array, props nacin, fixes #20807
git-svn-id: https://develop.svn.wordpress.org/trunk@20978 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-02 01:39:00 +00:00
Ryan Boren daf2f84da0 Don't allow unfiltered HTML comments from a frame. Props nacin. fixes #20812
git-svn-id: https://develop.svn.wordpress.org/trunk@20974 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-01 20:47:08 +00:00
Ryan Boren b85e8d138c Custom background fixes:
* Specify default background colors for the bundled themes.
* Change the default custom background callback to only operate on saved values, rather than default values.
* Prevent an unsaved default value from overriding a manually modified style.css file.

Props nacin, kobenland
fixes #20448


git-svn-id: https://develop.svn.wordpress.org/trunk@20973 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-01 20:31:50 +00:00
Ryan Boren 585d42c273 Consolodate some strings. Props pavelevap. fixes #20809
git-svn-id: https://develop.svn.wordpress.org/trunk@20972 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-01 19:05:30 +00:00
bumpbot 379ee2e1aa Compress scripts/styles: 3.4-RC1-20970.
git-svn-id: https://develop.svn.wordpress.org/trunk@20970 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-01 15:58:23 +00:00
Ryan Boren 1d2bab6712 Theme Customizer: Reduce reliance on fixed positioning and make sidebar UI flexible. Props koopersmith, ocean90, helenyhou. fixes #20799
git-svn-id: https://develop.svn.wordpress.org/trunk@20969 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-01 15:48:09 +00:00
bumpbot e04fa3900b Compress scripts/styles: 3.4-RC1-20965.
git-svn-id: https://develop.svn.wordpress.org/trunk@20965 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-30 21:58:23 +00:00
Andrew Nacin 24df08ed87 Move customize-controls RTL CSS to wp-admin. see #20785.
git-svn-id: https://develop.svn.wordpress.org/trunk@20963 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-30 21:12:36 +00:00
bumpbot 0a45ef1bf0 Compress scripts/styles: 3.4-RC1-20962.
git-svn-id: https://develop.svn.wordpress.org/trunk@20962 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-30 20:58:22 +00:00
Andrew Nacin 181e1a26f6 Move customize-controls CSS and JS to wp-admin. fixes #20785.
git-svn-id: https://develop.svn.wordpress.org/trunk@20960 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-30 20:11:04 +00:00
bumpbot 9ef39d81de Compress scripts/styles: 3.4-RC1-20956.
git-svn-id: https://develop.svn.wordpress.org/trunk@20956 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-30 16:58:19 +00:00
Andrew Nacin b6db6cefd1 Theme Customizer: Add the theme name to the 'You are previewing' string in the left pane, using a placeholder. props SergeyBiryukov, xibe. fixes #20782.
git-svn-id: https://develop.svn.wordpress.org/trunk@20955 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-30 16:57:44 +00:00
bumpbot 90315af324 Compress scripts/styles: 3.4-RC1-20950.
git-svn-id: https://develop.svn.wordpress.org/trunk@20950 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-28 20:58:19 +00:00
Mark Jaquith a669fa00ca RTL font updates for the Theme Customizer. props yoavf. fixes #20585
git-svn-id: https://develop.svn.wordpress.org/trunk@20949 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-28 20:00:15 +00:00
Ryan Boren d78a0d9c31 RC1 bump
git-svn-id: https://develop.svn.wordpress.org/trunk@20948 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-27 17:12:29 +00:00
Andrew Nacin 165e855510 WP_Theme: If no 'Domain Path' header is specified, default to looking in the /languages directory. see #20103, see #20448.
git-svn-id: https://develop.svn.wordpress.org/trunk@20945 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-27 16:42:38 +00:00
Ryan Boren b6e23d7269 Shears of vigorous pinking.
git-svn-id: https://develop.svn.wordpress.org/trunk@20944 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-27 16:25:43 +00:00
bumpbot ea2e1a641f Compress scripts/styles: 3.4-beta4-20943.
git-svn-id: https://develop.svn.wordpress.org/trunk@20943 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-27 07:58:23 +00:00
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
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
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
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 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
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
Daryl Koopersmith 779749b437 Theme Customizer: Fix hash-based loader fallbacks. see #20736, #19910, [20886].
git-svn-id: https://develop.svn.wordpress.org/trunk@20890 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-24 22:45:27 +00:00
bumpbot b8ff30761a Compress scripts/styles: 3.4-beta4-20889.
git-svn-id: https://develop.svn.wordpress.org/trunk@20889 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-24 21:40:40 +00:00
Daryl Koopersmith acdce48f5c 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: https://develop.svn.wordpress.org/trunk@20886 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-24 21:13:21 +00:00
bumpbot 62f2b12282 Compress scripts/styles: 3.4-beta4-20883.
git-svn-id: https://develop.svn.wordpress.org/trunk@20883 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-24 19:58:22 +00:00
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
Ryan Boren 34e5357ab9 "Save & Activate" for customize controls localization. see #20692 #19910
git-svn-id: https://develop.svn.wordpress.org/trunk@20878 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-24 15:20:33 +00:00
Mark Jaquith 425e7a9b49 ALIGN *ALL* THE THINGS! see #20324
git-svn-id: https://develop.svn.wordpress.org/trunk@20874 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-24 07:14:10 +00:00
Andrew Nacin f1e5a8fce0 Update dailymotion's oEmbed endpoint. props arena. fixes #20324.
git-svn-id: https://develop.svn.wordpress.org/trunk@20873 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-24 07:07:55 +00:00
Andrew Nacin 44b778f75c Remove reference to a global eliminated long ago. props tamlyn, fixes #20668.
git-svn-id: https://develop.svn.wordpress.org/trunk@20872 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-24 07:06:13 +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
Daryl Koopersmith 1ec203203c 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: https://develop.svn.wordpress.org/trunk@20863 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-24 02:07:16 +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
Andrew Nacin 11594ad693 Remove temporary magic call method in favor of theme(), settings(), controls(), and sections() methods for WP_Customize_Manager. fixes #20736.
git-svn-id: https://develop.svn.wordpress.org/trunk@20860 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-23 21:21:29 +00:00
Peter Westwood 50517b8e53 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: https://develop.svn.wordpress.org/trunk@20859 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-23 21:04:35 +00:00