Commit Graph

19289 Commits

Author SHA1 Message Date
Andrew Nacin
3647231af6 When looking in a sub-directory of wp-content/themes for more themes, check
if that specific directory exists before looking inside of it for style.css.

This avoids warnings when open_basedir restrictions are in effect.

props goldenapples. see #20985 for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@21126 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 03:36:03 +00:00
Andrew Nacin
740d615ce2 Fix validation issue in get_the_password_form() caused by wpautop(). see #21018 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@21124 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 03:20:51 +00:00
Andrew Nacin
4d33587bdc Revert detection of page templates to 3.3 functionality.
WP_Theme in 3.4.0 used get_file_data(), which is far too strict when
compared to  the original regular expression in get_page_templates().
This causes missing templates when, for example, the PHP comment
starts on the same line as the header.

see #20955 for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@21117 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-25 21:07:07 +00:00
Andrew Nacin
95159b0788 Allow add_editor_style() to load a child theme's editor style when the parent theme's style exists for the same filename. props SergeyBiryukov. see #21026 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@21114 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-25 20:45:05 +00:00
Andrew Nacin
9e30b38e96 Don't call debug_backtrace() with an argument for PHP 5.2.4, which is currently the lowest version we support. props swekitsune, kurtpayne. fixes #20953.
git-svn-id: https://develop.svn.wordpress.org/trunk@21113 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-25 20:41:37 +00:00
Jon Cave
713783f4d0 Set $walk_dirs = true for post rewrite rule generation. See #21020 for trunk.
Partial revert of r19737 and r19778 as some users were relying on this behaviour.


git-svn-id: https://develop.svn.wordpress.org/trunk@21112 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-25 20:41:14 +00:00
Andrew Nacin
12ff4b5ae6 Fix 'View version details' link for network/themes.php. In 3.5 these should stop pointing to WP.org. props SergeyBiryukov, fixes #20961 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@21110 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-25 20:28:33 +00:00
Andrew Nacin
e6112c2845 Load the admin MO file on repair.php. props SergeyBiryukov. see #21039 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@21109 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-25 20:00:31 +00:00
Mark Jaquith
588a342f55 Properly show comments on Page edit screen. props duck_. fixes #20937 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@21107 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-25 19:56:48 +00:00
Andrew Nacin
7352b57b47 We still need thickbox on themes.php for update overlays. props duck_. see #20960 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@21106 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-25 19:42:08 +00:00
Andrew Nacin
d6755ee068 Fix string offset PHP 5.4 error by normalizing $user_count to always be an integer. props ericmann. see #20966 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@21105 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-25 19:40:16 +00:00
Andrew Nacin
a660b3818d Back compat for plugins looking for networkwide=1 during a plugin activation hook.
Proper way to detect this: An activation hook callback receives (bool) $network_wide as the first argument.

see #20995 for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@21104 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-25 19:32:34 +00:00
bumpbot
4638cffcce Compress scripts/styles: 3.5-alpha-21103.
git-svn-id: https://develop.svn.wordpress.org/trunk@21103 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-22 00:58:22 +00:00
Andrew Ozz
b2b09c46b9 Add 2x TinyMCE icons, props empireoflight, see #21019 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@21101 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-22 00:31:18 +00:00
bumpbot
0f4bca3ee2 Compress scripts/styles: 3.5-alpha-21100.
git-svn-id: https://develop.svn.wordpress.org/trunk@21100 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-21 20:58:20 +00:00
Andrew Ozz
d8132db5b9 Fix dragging to empty second column in IE8, fixes #21021 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@21099 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-21 19:45:31 +00:00
bumpbot
6ba6dcf922 Compress scripts/styles: 3.5-alpha-21095.
git-svn-id: https://develop.svn.wordpress.org/trunk@21095 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-20 21:58:23 +00:00
Andrew Ozz
532d2277aa Fix dragging to empty second column on dashboard, props helenyhou, fixes #21021 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@21094 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-20 21:56:00 +00:00
bumpbot
41fbe09c9d Compress scripts/styles: 3.5-alpha-21092.
git-svn-id: https://develop.svn.wordpress.org/trunk@21092 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-20 15:58:25 +00:00
Andrew Ozz
033c65820a Respect user settings when auto-switching postbox columns on mobile devices, fixes #21005
git-svn-id: https://develop.svn.wordpress.org/trunk@21091 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-20 05:03:08 +00:00
Andrew Ozz
ed33e36b0c Admin menu: reset sub-menus position on mouseleave so they don't break when auto-expanded, props phill_brown SergeyBiryukov, fixes #19562
git-svn-id: https://develop.svn.wordpress.org/trunk@21090 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-20 01:46:05 +00:00
Andrew Nacin
fc24fec6e0 Remove unused variable in wp_update_themes(). props duck_. fixes #20831.
git-svn-id: https://develop.svn.wordpress.org/trunk@21089 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-18 18:49:14 +00:00
Andrew Nacin
38bc915f96 Introduce wp_clean_themes_cache() for upgrades and testing. fixes #20954.
git-svn-id: https://develop.svn.wordpress.org/trunk@21080 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-14 14:24:25 +00:00
Andrew Nacin
ae215d1321 Trunk is now 3.5-alpha.
git-svn-id: https://develop.svn.wordpress.org/trunk@21079 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-14 13:35:52 +00:00
Andrew Nacin
24982d7029 3.4
git-svn-id: https://develop.svn.wordpress.org/trunk@21076 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-13 18:08:29 +00:00
Jon Cave
547117de7d Hide pointers introduced in 3.4 from new users. Fixes #20941.
git-svn-id: https://develop.svn.wordpress.org/trunk@21075 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-13 17:38:42 +00:00
Ryan Boren
1204c4ec66 RC4 bump
git-svn-id: https://develop.svn.wordpress.org/trunk@21074 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-13 00:48:35 +00:00
Ryan Boren
a0a36d35c9 Pass a post object instead of ID to help preserve ancestors. Props duck_. fixes #18536
git-svn-id: https://develop.svn.wordpress.org/trunk@21073 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 23:09:27 +00:00
bumpbot
36b3057a77 Compress scripts/styles: 3.4-RC3-21072.
git-svn-id: https://develop.svn.wordpress.org/trunk@21072 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 22:52:24 +00:00
Ryan Boren
b84f6e908c Customize: If the preview is not logged in but the admin is, perform a front page request to setup any mapped domain cookies and then retry loading the preview.
Props nacin, koopersmith
fixes #20926


git-svn-id: https://develop.svn.wordpress.org/trunk@21071 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 22:51:55 +00:00
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