Commit Graph

19559 Commits

Author SHA1 Message Date
Ryan Boren
48a3ec24c5 Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@21070 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 19:27:41 +00:00
Andrew Nacin
7b32cc9e6b Theme Customizer: Validate themes with more than just an existence check.
* The current theme goes through validate_current_theme().
 * If doing a preview of a different theme, we check theme->errors().

Also:
 * Don't attach previewing hooks when previewing the current theme.
Aside from being unnecessary, this prevents issues with a theme with
the error of theme_parent_invalid.
 * Call send_origin_headers() earlier, to allow wp_die( '0' ) to properly
be returned in a domain mapping situation.
 * Fix the 'Save & Activate' message on themes.php.

fixes #20921.



git-svn-id: https://develop.svn.wordpress.org/trunk@21069 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 18:39:16 +00:00
bumpbot
25e378229e Compress scripts/styles: 3.4-RC3-21068.
git-svn-id: https://develop.svn.wordpress.org/trunk@21068 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 17:58:23 +00:00
Daryl Koopersmith
52340fa233 Prevent delete theme link from bumping against theme action links. If it doesn't fit, it doesn't fit, man. props SergeyBiryukov, fixes #20918.
git-svn-id: https://develop.svn.wordpress.org/trunk@21067 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 17:11:09 +00:00
bumpbot
15002daafb Compress scripts/styles: 3.4-RC3-21066.
git-svn-id: https://develop.svn.wordpress.org/trunk@21066 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 16:58:23 +00:00
Daryl Koopersmith
49b038ed59 Prevent hoverIntent from shifting open, expanded admin menus if the entire submenu is not visible. props SergeyBiryukov, fixes #20857.
git-svn-id: https://develop.svn.wordpress.org/trunk@21065 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 16:36:32 +00:00
Ryan Boren
ae5be6de5f Force a theme directory scan after installing and upgrading themes. Props nacin. fixes #20919
git-svn-id: https://develop.svn.wordpress.org/trunk@21064 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 15:59:53 +00:00
Ryan Boren
46dba7300c Fallback to /themes when there is no theme root. Props duck_. see #20919
git-svn-id: https://develop.svn.wordpress.org/trunk@21063 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 15:57:11 +00:00
Ryan Boren
d0e8e5ca35 Use the stylesheet rather than the template to create the network enable theme nonce. Fix network enable redirect following theme installation. Props duck_, nacin. fixes #20916
git-svn-id: https://develop.svn.wordpress.org/trunk@21062 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 15:31:25 +00:00
Andrew Nacin
d81496ca18 Use the proper value for the switch-theme nonce in the upgrader. Fixes child theme activation after install. props duck_. fixes #20914.
git-svn-id: https://develop.svn.wordpress.org/trunk@21061 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 14:36:24 +00:00
Ryan Boren
257e455a50 Fix warning when processing read_post cap. Props duck_. fixes #20917
git-svn-id: https://develop.svn.wordpress.org/trunk@21060 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 13:50:51 +00:00
Andrew Nacin
8865b27df7 3.4-RC3
git-svn-id: https://develop.svn.wordpress.org/trunk@21059 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 00:02:20 +00:00
bumpbot
1569bff4a8 Compress scripts/styles: 3.4-RC2-21058.
git-svn-id: https://develop.svn.wordpress.org/trunk@21058 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-11 23:58:20 +00:00
Andrew Nacin
9b11820e96 Add remaining CSS properties for [21056]. props azaozz. see #20911.
git-svn-id: https://develop.svn.wordpress.org/trunk@21057 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-11 23:54:13 +00:00
Andrew Nacin
25224ccc95 Restore CSS rules for div.inner-sidebar, for backwards compatibility with plugins using these classes manually. props azaozz, fixes #20911.
git-svn-id: https://develop.svn.wordpress.org/trunk@21056 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-11 23:41:59 +00:00
bumpbot
72e71811e6 Compress scripts/styles: 3.4-RC2-21055.
git-svn-id: https://develop.svn.wordpress.org/trunk@21055 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-11 21:28:44 +00:00
Andrew Nacin
8c9bce5737 Do not specify background-image: none when a user removes a custom background
on a theme that has a default background image.

The onus is on the theme to omit the default background-image from style.css,
to allow the user to remove the default background image. Or, the theme can
specify a background-image for the body selector, as long as they then zero
it out for body.custom-background, like so:

{{{
body {
	background-image: url( ... );
}
body.custom-background {
	background-image: none;
}
}}}

This allows the theme to be compatible with the custom background feature
but also gracefully degrade if the background feature is disabled.

This is the same behavior as 3.3; setting a default image has simply been
made more prominent in 3.4. Reverts [21013], also parts of [21001].
see #20448 for change and discussion history.

see #20132, which will now be marked as invalid.

Also, per previous changes in #20448, the custom-background class should not
be shown when only a default color is in use.

fixes #20448.



git-svn-id: https://develop.svn.wordpress.org/trunk@21054 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-11 21:25:05 +00:00
Andrew Nacin
04fc3508d3 Theme Customizer: Remove background_image_thumb when saving settings. fixes #20871.
This prevents the background_image and background_image_thumb settings from getting out of sync.
In 3.5 we can consider using background-size on Appearance > Background, eliminating _thumb.



git-svn-id: https://develop.svn.wordpress.org/trunk@21053 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-11 20:49:45 +00:00
Ryan Boren
30cf820918 Add RTL and locale classes to the press this body. Props SergeyBiryukov. fixes #19603
git-svn-id: https://develop.svn.wordpress.org/trunk@21052 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-11 20:34:42 +00:00
Ryan Boren
f1d9066aed Remove obsolete help string. Props SergeyBiryukov. fixes #20909
git-svn-id: https://develop.svn.wordpress.org/trunk@21051 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-11 20:32:21 +00:00
Peter Westwood
0ec0c40c0a Restore the 'extra_theme_headers' filter in the deprecated get_theme_data function so that plugins/themes using this function can still access their extra headers.
Fixes #20897 props nacin, georgestephanis, SergeyBiryukov.


git-svn-id: https://develop.svn.wordpress.org/trunk@21050 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-11 17:30:57 +00:00
Ryan Boren
71f71219fc Escape editable_slug as a textarea.
git-svn-id: https://develop.svn.wordpress.org/trunk@21049 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-10 17:58:57 +00:00
Ryan Boren
28fa0ecd9e Restrict post IDs
git-svn-id: https://develop.svn.wordpress.org/trunk@21048 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-10 17:37:49 +00:00
Ryan Boren
42b507572c In excerpt view, show the excerpt only if the user can read_post.
git-svn-id: https://develop.svn.wordpress.org/trunk@21047 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-10 16:22:55 +00:00
Ryan Boren
e61ac6e607 Make read_post more useful. Map read_post to edit_post for posts with protected post states. This makes read_post work naturally for draft, future, and pending posts belonging to other users. If the current user cannot edit these non-public posts then the user should not be able to read them either.
git-svn-id: https://develop.svn.wordpress.org/trunk@21046 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-10 16:21:44 +00:00
potbot
9d6698e9a6 POT, generated from r21043
git-svn-id: https://develop.svn.wordpress.org/trunk@21045 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-10 15:18:15 +00:00
potbot
dd85c1d055 POT, generated from r21043
git-svn-id: https://develop.svn.wordpress.org/trunk@21044 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-10 15:18:09 +00:00
bumpbot
5bbf2d4d0b Compress scripts/styles: 3.4-RC2-21043.
git-svn-id: https://develop.svn.wordpress.org/trunk@21043 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-10 14:38:44 +00:00
Andrew Ozz
79c651682f When using the max-width: 100% fix for <select> tags that exceed the width of parent elements, add it only on affected tags. IE8 doesn't like it everywhere, props SergeyBiryukov, fixes #19613
git-svn-id: https://develop.svn.wordpress.org/trunk@21042 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-10 14:36:47 +00:00
Andrew Ozz
8644eecdf5 Fix Quicktags buttons in IE7, fixes #20894
git-svn-id: https://develop.svn.wordpress.org/trunk@21041 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-10 14:26:38 +00:00
Ryan Boren
3c11c749cb Bump bundled theme versions. Props nacin. fixes #20886
git-svn-id: https://develop.svn.wordpress.org/trunk@21040 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-10 14:18:45 +00:00
Ryan Boren
1f3b3fada6 Make sure the path exists before copying. see #20657
git-svn-id: https://develop.svn.wordpress.org/trunk@21039 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-10 01:26:12 +00:00
bumpbot
2de04aa4b2 Compress scripts/styles: 3.4-RC2-21038.
git-svn-id: https://develop.svn.wordpress.org/trunk@21038 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-10 00:32:52 +00:00
Ryan Boren
a24c284403 * Introduce remove_header_image(), reset_header_image(), set_header_image(), and get_header_image_data() for Custom_Image_Header.
* Handle all set/get of header theme mod through these methods.
* Use these methods in the customizer.

Props kovshenin, nacin, SergeyBiryukov, koopersmith.
fixes #20871


git-svn-id: https://develop.svn.wordpress.org/trunk@21037 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-10 00:32:19 +00:00
bumpbot
4cb6073a15 Compress scripts/styles: 3.4-RC2-21036.
git-svn-id: https://develop.svn.wordpress.org/trunk@21036 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-09 15:58:24 +00:00
Ryan Boren
c65db79290 Fix comment hotkeys for FF and IE. Props azaozz, SergeyBiryukov. fixes #20885
git-svn-id: https://develop.svn.wordpress.org/trunk@21035 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-09 15:57:11 +00:00
bumpbot
903e720df8 Compress scripts/styles: 3.4-RC2-21034.
git-svn-id: https://develop.svn.wordpress.org/trunk@21034 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-08 23:02:40 +00:00
Daryl Koopersmith
351ecd928f Theme Customizer: Separate message url from preview url in customizer JS Previewer and PreviewFrame objects. fixes #20892.
git-svn-id: https://develop.svn.wordpress.org/trunk@21033 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-08 22:59:48 +00:00
bumpbot
1f86787e1f Compress scripts/styles: 3.4-RC2-21032.
git-svn-id: https://develop.svn.wordpress.org/trunk@21032 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-08 19:40:31 +00:00
Ryan Boren
ab8deebae3 Customizer: Gravefully handle cookie expipration. Prompt for log in in the preview. Props ocean90, koopersmith, nacin. fixes #20876
git-svn-id: https://develop.svn.wordpress.org/trunk@21031 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-08 19:22:11 +00:00
bumpbot
b6a0bae669 Compress scripts/styles: 3.4-RC2-21030.
git-svn-id: https://develop.svn.wordpress.org/trunk@21030 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-08 18:58:24 +00:00
Ryan Boren
6660d27cb5 Customizer: fix stuck urls and preview white screens after repeated save and activates. Props koopersmith. fixes #20868
git-svn-id: https://develop.svn.wordpress.org/trunk@21029 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-08 18:52:44 +00:00
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
Andrew Nacin
57f267af2a Prevent a scrollbar in the admin caused by padding given to the toolbar. props SergeyBiryukov, ocean90. fixes #19196.
git-svn-id: https://develop.svn.wordpress.org/trunk@21025 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-07 22:05:01 +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
Daryl Koopersmith
f9bd63371b Theme Customizer: Allow color control inputs to change the corresponding setting (use sync instead of link). fixes #20873.
git-svn-id: https://develop.svn.wordpress.org/trunk@21022 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-07 17:25:00 +00:00
Andrew Nacin
3210a999eb Copy 3.4 about.php header text to credits and freedoms. props pavelevap. fixes #20794.
git-svn-id: https://develop.svn.wordpress.org/trunk@21021 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-07 15:34:21 +00:00