Andrew Nacin
4c406cc8ad
Add initial support for browser-based uploads in iOS 6. see #20923 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21141 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 20:39:04 +00:00
Andrew Nacin
58cb1bce66
Check XML-RPC cap before running the query. props maxcutler. see #20991 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21137 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 19:04:10 +00:00
Andrew Nacin
26f8f3e504
Refresh nonces in the customizer. props koopersmith. see #20876 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21135 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 18:48:18 +00:00
Andrew Nacin
5b9214124c
Deprecate wp_explain_nonce(). fixes #21076 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21133 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 06:10:07 +00:00
Andrew Nacin
b57365f7ff
If a plugin triggers the WP_Scripts constructor prior to init, fire wp_default_scripts()
...
then and again on init.
Only add our localized strings once we've fired init, in case we do have the situation
where we fire wp_default_scripts() twice.
Fixes issues where plugins or themes try to enqueue a default script handle prior to
init. Does not allow #19959 to regress.
see #20971 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@21132 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 05:33:19 +00:00
Andrew Nacin
f3e45be558
Allow switch_theme() to take a single $stylesheet argument.
...
It now effectively has two function definitions:
function switch_theme( $stylesheet )
function switch_theme( $template, $stylesheet )
fixes #21075 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21131 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 05:21:04 +00:00
Andrew Nacin
cf2b99340f
Do not pass mail() a fourth argument when safe_mode is in effect.
...
Fixes the sending of mail when in safe_mode. There is a bug report being addressed upstream with PHPMailer.
props sumindmitriy. see #20970 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@21128 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 03:54:17 +00:00
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