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
Ryan Boren
74653b1dbc
Introduce _prepare_comment(). Avoid repeated auth attempts. Props maxcutler. fixes #20703
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20856 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-23 20:40:40 +00:00
Andrew Nacin
aba958e81c
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: https://develop.svn.wordpress.org/trunk@20852 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-23 17:56:42 +00:00
Ryan Boren
ae4d54928c
Translate and empty header text color into the default text color. Honor blank. Props kovshenin. fixes #20600
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20851 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-23 15:36:27 +00:00
Ryan Boren
ee33772ce7
Fix post limiting in wp_getPosts(). Props djcp. fixes #20723
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20846 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-22 22:25:17 +00:00
bumpbot
868e56e940
Compress scripts/styles: 3.4-beta4-20841.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20841 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-22 01:58:24 +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
Ryan Boren
c392250983
Disambiguate menu_order. Props markjaquith. fixes #20711
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20836 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-21 19:50:58 +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
Ryan Boren
bb4ab7e842
set_url_scheme() for header and background image srcs. see #20702
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20830 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-18 20:22:57 +00:00