Mark Jaquith
898a2f371b
Update some of the TinyMCE help text to be more accurate. Props SergeyBiryukov. fixes #21108
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21182 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 17:47:41 +00:00
Andrew Nacin
42c8c7b5fe
Add back an empty line removed in [21180].
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21181 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 15:16:36 +00:00
Andrew Nacin
9283b786be
Add note to get_allowed_mime_types() about the upload_mimes filter. props JustinSainton. fixes #20990 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21180 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 15:13:53 +00:00
Andrew Nacin
9db38e39ab
Correctly identify queries where a line break follows a keyword, rather than a space. props GeertDD, fixes #19467 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21178 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 15:08:17 +00:00
Andrew Nacin
a9643d617a
Take the original slug passed into wp_unique_post_slug() and pass it to the wp_unique_post_slug filter. props johnbillion. fixes #20480 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21177 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 13:57:02 +00:00
Mark Jaquith
f4ef59ebdc
Google Gears is dead. Long live its HTML5 replacement that does not in any way work for our purposes. props azaozz. fixes #20981
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21176 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 03:34:02 +00:00
bumpbot
7d0fd688b8
Compress scripts/styles: 3.5-alpha-21175.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21175 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:58:22 +00:00
Mark Jaquith
016b10f1f1
More reliably replace $home_root in $request in get_pagenum_link(). props SergeyBiryukov. fixes #18034
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21174 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:54:20 +00:00
Andrew Nacin
309ae4c917
install_blog() should not be polluting the siteurl and home options with the trailing slash that comes from get_blogaddress_by_id().
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21172 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:38:16 +00:00
Mark Jaquith
bfd2e57437
Allow tel: and fax: protocols. Wrangle the last hardcoded protocol enumeration so that it uses wp_allowed_protocols(). fixes #21081
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21170 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:30:10 +00:00
Andrew Nacin
898fd19d0e
Add a post_link_category filter to the permalink generation process.
...
This allows a plugin to easily change which category gets represented
in the URL. Previously, it went off the category with the smallest ID.
props aaroncampbell
fixes #18752
git-svn-id: https://develop.svn.wordpress.org/trunk@21169 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:28:57 +00:00
Andrew Nacin
b74c0203d9
s/inval/intval/. props PeteMall. see #14889 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21168 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:24:50 +00:00
Andrew Nacin
a0f7d641b7
Allow protocol-relative URLs when registering/enqueueing scripts and styles.
...
props mimecine, TobiasBg, georgestephanis.
props kurtpayne for the test coverage.
fixes #16560 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21166 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:18:38 +00:00
Andrew Nacin
900829b986
Respect -1 as a memory limit setting.
...
Don't override memory_limit = -1 with a fixed value.
Know that WP_MEMORY_LIMIT = -1 can override a fixed value.
props aaroncampbell
fixes #14889
git-svn-id: https://develop.svn.wordpress.org/trunk@21165 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:14:39 +00:00
Andrew Nacin
6727ee1a21
Add do_parse_request filter to WP::parse_request() to allow short-circuiting. props andy, mikeschinkel. fixes #16692 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21163 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:03:03 +00:00
Andrew Nacin
57eb45641e
Handle localized floats in $wpdb->prepare(). props kurtpayne. fixes #19861 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21161 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 19:57:31 +00:00
Mark Jaquith
8e48096fcf
Do not store post_excerpt in a temporary variable when we can just return it directly. props niallkennedy. fixes #21041
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21159 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 19:26:06 +00:00
Andrew Nacin
604f79dac0
Initialize a variable. props maxcutler. fixes #21058 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21158 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 19:04:42 +00:00
Andrew Nacin
801daca85c
3.5-alpha-21157
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21157 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-27 19:43:08 +00:00
Andrew Nacin
ffababf000
Remove 'fall through' points in map_meta_cap() as they can hide bugs.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21152 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-27 19:27:54 +00:00
bumpbot
02a1ccd56b
Compress scripts/styles: 3.5-alpha-21148.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21148 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 21:50:58 +00:00
Andrew Nacin
a2c8ec790d
Update the version numbers for wp_explain_nonce() deprecation. see #21076 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21146 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 21:26:42 +00:00
Andrew Nacin
af13f116a3
Use set_post_format(), not wp_set_post_terms(), in XML-RPC mw_newPost and mw_editPost. props koke. see #20697 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21145 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 21:07:12 +00:00
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
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
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
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
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
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 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
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
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
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
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
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
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
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
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
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
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
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
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
Ryan Boren
9c2fe1c948
Load the customize preview over ssl if the customize admin page is loaded over ssl and the frontend and admin are on the same domain. This avoids insecure content warnings and allows a more complete preview in browsers such as Chrome that block loading of css until user confirmation allows mixed content loading. see #20702
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20829 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-18 20:09:53 +00:00
Ryan Boren
c7b61a2a57
Introduce set_url_scheme(). Includes get_site_url() logic for determining when to use http vs. https. Use this to rerite urls to obey is_ssl(). Props jkudish. fixes #18017
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20828 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-18 20:04:59 +00:00
bumpbot
3474f26526
Compress scripts/styles: 3.4-beta4-20825.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20825 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-17 21:58:27 +00:00
Daryl Koopersmith
5ebe631a77
Theme Customizer: RTL fixes. props ocean90, fixes #20585 , see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20824 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-17 21:37:00 +00:00
bumpbot
4ec3e44488
Compress scripts/styles: 3.4-beta4-20823.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20823 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-17 17:22:40 +00:00
Daryl Koopersmith
b2f795b43a
Theme Customizer: Sidebar RTL fixes. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20822 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-17 17:08:20 +00:00
bumpbot
afc016874f
Compress scripts/styles: 3.4-beta4-20821.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20821 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-17 15:58:23 +00:00
Daryl Koopersmith
d2b1637a9d
Theme Customizer: Ensure image control tabs are full-width to prevent floating bugs. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20820 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-17 15:56:18 +00:00
bumpbot
b739ea4152
Compress scripts/styles: 3.4-beta4-20819.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20819 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-17 01:58:25 +00:00
bumpbot
0c555027ba
Compress scripts/styles: 3.4-beta4-20817.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20817 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-17 00:58:25 +00:00
Daryl Koopersmith
0e3b3a7555
Theme Customizer: Add 'ready' event to customize-controls. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20816 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-17 00:00:57 +00:00
bumpbot
2f156a8756
Compress scripts/styles: 3.4-beta4-20815.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20815 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-16 23:58:26 +00:00
Andrew Ozz
a3033f1506
Retina display icons: add 2x sprite for the toolbar, props chexee, fixes #20293
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20814 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-16 23:55:38 +00:00
Daryl Koopersmith
621e3c1fc6
Theme Customizer: Properly escape customize settings when sending values to JS. Add WP_Customize_Setting->js_value(). fixes #20687 , see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20809 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-16 20:59:02 +00:00
Ryan Boren
cf58f72258
Fix wp.getPages response when fetching pages the current user does not have caps for. Props maxcutler, redsweater. fixes #20629
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20807 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-16 18:06:34 +00:00
bumpbot
8471a0947c
Compress scripts/styles: 3.4-beta4-20805. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20805 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-16 07:58:24 +00:00
Andrew Ozz
136f951922
DFW: another attempt to get auto-resize working right, see #20608 , see #20684
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20804 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-16 07:02:55 +00:00
bumpbot
ed5c4343f0
Compress scripts/styles: 3.4-beta4-20803.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20803 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-16 05:58:24 +00:00
Daryl Koopersmith
5c77fcc30b
Theme Customizer: Properly change state when theme is switched. fixes #20610 , see #19910 .
...
* Causes the Manage Themes page to refresh if the customizer is closed after the active theme is switched.
* Changes the text of the 'Save and Activate' button once the theme has been activated.
* Improves the naming of the customize control settings.
* Add events to customize.Loader and make callbacks more flexible.
* Makes the customize-loader l10n compatible with non-admin settings.
* Adds WP_Customize->is_current_theme_active().
* Minor style corrections, including jQuery.attr/prop changes.
git-svn-id: https://develop.svn.wordpress.org/trunk@20802 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-16 05:55:54 +00:00
Daryl Koopersmith
47d5d564b4
Theme Customizer: Make the wp.customize.Events methods chainable. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20801 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-16 05:17:26 +00:00
bumpbot
45919db511
Compress scripts/styles: 3.4-beta4-20800.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20800 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-15 22:58:23 +00:00
Daryl Koopersmith
b010685cd2
Theme Customizer: Add the wp.customize.Events mixin to wp.customize.Values. Provide 'add', 'remove', and 'change' events by default. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20799 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-15 22:43:49 +00:00
Daryl Koopersmith
1a2375b4ee
Theme Customizer: Clarify wp.customize.Values API by removing Values.pass and all methods that passed through to the wp.customize.Value objects it contained. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20798 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-15 22:14:46 +00:00
Daryl Koopersmith
10cf296150
Theme Customizer: Make wp.customize.Values.when return a jQuery.Deferred.promise() object, to add additional flexibility. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20797 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-15 22:01:36 +00:00
bumpbot
b2a616cc17
Compress scripts/styles: 3.4-beta4-20796.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20796 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-15 21:58:21 +00:00
Daryl Koopersmith
6ad7ce44d6
Theme Customizer: Add an Events mixin to wp.customize, used by default in wp.customize.Messenger. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20795 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-15 21:28:21 +00:00
Ryan Boren
4e1861e2a8
API for allowing cross origin resource sharing.
...
* Allowed origin whitelist that can be altered by plugins
* Validation of the request origin against the whitelist
* Send Access-Control-Allow-Origin if origin allowed
* get_http_origin(), get_allowed_http_origins(), is_allowed_http_origin(), send_origin_headers()
See #20681
git-svn-id: https://develop.svn.wordpress.org/trunk@20794 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-15 18:46:03 +00:00
Ryan Boren
b5156f1b47
Don't force frontend scheme to match backend. This fails if the frontend doesn't have proper SSL certs. Access-Control-Allow-Origin handles this without the need to make the schemes match. see #20507
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20793 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-15 15:45:40 +00:00
bumpbot
2e1a9bc4a4
Compress scripts/styles: 3.4-beta4-20792.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20792 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-15 01:58:21 +00:00
Daryl Koopersmith
ecf6940ffb
Theme Customizer: Prevent sidebar scrollbar from overlapping sidebar header or footer. fixes #20649 , #20650 , see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20791 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-15 01:03:31 +00:00
bumpbot
376a2485c1
Compress scripts/styles: 3.4-beta4-20790.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20790 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-14 19:58:19 +00:00
Ryan Boren
ab8a4b7844
Exclude admin pot files when calculating the list of installed languages in get_available_languages(). fixes #20676
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20788 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-14 17:58:06 +00:00
Ryan Boren
bb5afe1aaf
Remove accidental bits in [20784]
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20785 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-14 17:01:35 +00:00
Ryan Boren
8dfae17319
Call filters for default option values only as needed to reduce number of filter calls. Props Ott042. see #20448
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20784 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-14 17:00:13 +00:00
Ryan Boren
7e4b88ad24
Add filters for the default to get_option() and get_site_option(). Provide default overrides in the customizer. Props Otto42. see #20448
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20783 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-14 16:45:32 +00:00
Jon Cave
7e2e034b64
Minor XML-RPC documentation improvements. See #20566 .
...
Also make newly introduced _is_greater_than_one() private.
git-svn-id: https://develop.svn.wordpress.org/trunk@20782 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-14 10:10:01 +00:00
Jon Cave
ab22e8ed87
get_post_stati() returns post statuses not types. Props jeremyfelt. Fixes #20664 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20779 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-13 07:41:47 +00:00
bumpbot
4211ac7104
Compress scripts/styles: 3.4-beta4-20778.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20778 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-12 00:58:21 +00:00
Daryl Koopersmith
daad27aeef
Theme Customizer: Flex-width friendly UI, improved typographical hierarchy. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20777 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-12 00:48:20 +00:00
Ryan Boren
5c2590bbd0
Remove extra underscore from XML-RPC filter. props maxcutler. fixes #20549
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20775 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-11 21:04:47 +00:00
bumpbot
54ea6cb17a
Compress scripts/styles: 3.4-beta4-20773.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20773 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-11 19:58:22 +00:00
Andrew Nacin
bd4441edc6
display_header_text() should only return true if the theme mod value is not 'blank'. An empty string is valid -- there is no requirement for it to be truthy. see #18887 . see #20600 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20772 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-11 19:55:07 +00:00
Ryan Boren
9b8b0bffac
Collect intermediate images before deleting an attachment and its meta. Fixes thumbnail deletion. Props SergeyBiryukov. fixes #20658
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20770 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-11 18:47:32 +00:00
Ryan Boren
5e6ed7574c
Handle relative urls when processing redirects. Introduce WP_Http::make_absolute_url(). Props dd32. fixes #20434
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20767 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-10 21:32:02 +00:00
bumpbot
4584d4022b
Compress scripts/styles: 3.4-beta4-20766.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20766 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-10 20:58:24 +00:00
bumpbot
9ce7cbaf4d
Compress scripts/styles: 3.4-beta4-20764.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20764 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-10 19:58:25 +00:00
bumpbot
5b4edeb721
Compress scripts/styles: 3.4-beta4-20762.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20762 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-10 00:58:25 +00:00
Daryl Koopersmith
476314ad8b
Theme Customizer: Add a fallback UI for browsers that do not support drag and drop upload. see #19910 , #20452 , #20582 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20761 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-10 00:15:53 +00:00
bumpbot
243ecb7b13
Compress scripts/styles: 3.4-beta4-20760.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20760 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-09 21:58:31 +00:00
Daryl Koopersmith
971dc88583
Uploader & Theme Customizer: Refresh uploader flash/silverlight shims when the mouse enters the browse button. Add class to body based on uploader's drag/drop support. Properly assign customize image uploader containers (so flash shims are positioned correctly when scrolled). see #19910 , #20452 , #20582 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20758 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-09 21:26:19 +00:00
Ryan Boren
3c00653719
Set split_the_query to false if more than 500 rows requested. Props SergeyBiryukov. fixes #20628
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20756 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-09 17:20:22 +00:00
bumpbot
d50aba69e4
Compress scripts/styles: 3.4-beta4-20755.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20755 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-09 16:58:29 +00:00
bumpbot
81918eaf4a
Compress scripts/styles: 3.4-beta4-20750.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20750 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-09 03:58:27 +00:00
bumpbot
d454d3a0f3
Compress scripts/styles: 3.4-beta4-20746.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20746 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-09 00:58:22 +00:00
Daryl Koopersmith
7739e9186d
Theme Customizer: Maintain scrolled position when preview performs a full refresh. Allow wp.customize.Messenger to send/receive falsy values. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20745 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-09 00:23:05 +00:00
bumpbot
d16b4050ad
Compress scripts/styles: 3.4-beta4-20744.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20744 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-08 23:58:24 +00:00
Daryl Koopersmith
e1e949728c
Theme Customizer: Add basic loading indicator when loading the customizer inside an iframe. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20743 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-08 23:37:05 +00:00
bumpbot
9116865432
Compress scripts/styles: 3.4-beta4-20742.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20742 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-08 20:58:20 +00:00
Daryl Koopersmith
320916cc53
Theme Customizer: Add cross-domain handling for when the admin and front-end are different origins. Handles both ajax and postMessage calls. props rboren, mdawaffe, nacin. see #20507 , #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20741 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-08 20:13:34 +00:00
Ryan Boren
6f90e8abd6
Don't split the main query if there is no limit. This helps avoid extremely long query strings that could cause segfaults. Allow plugins to control splitting via split_the_query filter. see #20628
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20740 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-08 20:01:47 +00:00
Ryan Boren
0de14403bf
Don't delete nav menu items when the user that owns them is deleted.
...
* Introduce delete_with_user flag to register_post_type
* Set delete_with_user to false for the nav_menu_item post type
* Set it to true for all other core post types
* If delete_with_user is not set, fallback to post_type_supports('author')
Props nacin
Fixes #16358
git-svn-id: https://develop.svn.wordpress.org/trunk@20739 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-08 17:01:50 +00:00
bumpbot
597d44e837
Compress scripts/styles: 3.4-beta4-20738.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20738 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-07 20:58:22 +00:00
Daryl Koopersmith
7fde7c1904
Theme Customizer: Use a internal global _wpCustomizeSettings object for wp.customize.settings to prevent script race conditions in IE (which blocked interaction with the preview). see #20582 , #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20737 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-07 20:03:39 +00:00
Ryan Boren
a38242a366
phpdoc updates for register_post_type(). Props jeremyfelt. fixes #20622
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20734 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-07 16:25:06 +00:00
Andrew Nacin
e531502231
Add version numbers to Plupload in the script-loader.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20732 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-07 04:43:30 +00:00
bumpbot
40f3bd8d9c
Compress scripts/styles: 3.4-beta4-20731.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20731 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-06 23:58:23 +00:00
Ryan Boren
76c1cad16a
phpdoc fix for register_post_status(). Props yoavf. fixes #20616
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20726 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-05 19:04:34 +00:00
bumpbot
c661174958
Compress scripts/styles: 3.4-beta4-20725. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20725 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-04 03:58:20 +00:00
Andrew Ozz
3afdcf2113
Remove unneeded var added in [20723], see #20608
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20724 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-04 03:28:35 +00:00
Andrew Ozz
0ad0b4d829
DFW: fix auto-resize in WebKit, fixes #20608
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20723 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-04 03:23:01 +00:00
Andrew Ozz
b8c71ce2ad
Update jQuery UI version strings in script-loader, props niallkennedy, fixes #20611
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20721 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-04 01:11:28 +00:00
bumpbot
d108fa8ee3
Compress scripts/styles: 3.4-beta4-20717.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20717 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-03 17:58:27 +00:00
Ryan Boren
8c50f982ea
Pinking shears
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20715 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-03 16:41:59 +00:00
Jon Cave
86280c6d68
Declare visibility of _prepare_post_type() as protected. See #20566 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20714 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-03 15:59:50 +00:00
Andrew Nacin
dd57074aed
Make admin-head-callback optional for custom headers. Reverts part of [20684]. fixes #20603 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20712 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-03 13:30:55 +00:00
Ryan Boren
1d35a7b1db
Beta 4 bump
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20711 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-03 02:08:43 +00:00
bumpbot
0569761737
Compress scripts/styles: 3.4-beta3-20709.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20709 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 22:58:29 +00:00
bumpbot
5f3e663586
Compress scripts/styles: 3.4-beta3-20707.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20707 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 21:58:30 +00:00
Andrew Nacin
0ebf7aec8b
We indent with spaces, not tabs. props sivel. fixes #20394 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20703 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 21:13:08 +00:00
Andrew Nacin
26ff22c7a2
In image_resize(), do not force the destination filename to *.jpg when we are dealing with a *.jpeg.
...
props SergeyBiryukov.
fixes #16458 .
git-svn-id: https://develop.svn.wordpress.org/trunk@20701 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 20:58:57 +00:00
Ryan Boren
1f3ca85ab5
Rolling upgrade to set the welcome_user_email network-wide option via the welcome_user_msg_filter() callback. Fixes ability to save the welcome user email when no entry exists in the database. see #20116
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20697 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 20:31:37 +00:00
Andrew Nacin
9f57ec7c6c
Have the $fields argument for XML-RPC's wp.getPostType, getPostTypes, wp.getTaxonomy and wp.getTaxonomies take the names of the post type or taxonomy object keys that will be returned.
...
* capabilities becomes cap
* object_types becomes object_type
fixes #17626 .
git-svn-id: https://develop.svn.wordpress.org/trunk@20696 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 20:29:34 +00:00
Andrew Nacin
f2c495e011
Add filter to image_resize_dimensions() so plugins can perform this calculation on their own. props ebababi. fixes #15989 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20694 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 20:15:44 +00:00
bumpbot
5a5975a641
Compress scripts/styles: 3.4-beta3-20693.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20693 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 19:58:23 +00:00
Andrew Nacin
c4f902f4c0
Remove $wp_secret_key_default.
...
With the duplicate key checks, this is isn't necessary. It could also cause problems when you
temporarily update to an English translation of a new version before going back to the locale.
see #19599 .
git-svn-id: https://develop.svn.wordpress.org/trunk@20691 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 19:29:39 +00:00
bumpbot
c6f7bb0af1
Compress scripts/styles: 3.4-beta3-20690.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20690 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 17:58:25 +00:00
Andrew Nacin
cf6ce55d51
Only look for public post types in redirect_guess_404_permalink() when no post type query var is present. props jeremyfelt. fixes #19693 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20688 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 17:39:43 +00:00
Andrew Nacin
b4f82d87b0
Add Vietnamese vowels to remove_accents(). props SergeyBiryukov. fixes #17738 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20687 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 16:55:16 +00:00
Andrew Nacin
61602af9c1
Add characters to be stripped or replaced in sanitize_title_with_dashes().
...
* Replace times (multiplication sign) with x.
* Strip low quotation marks and other curly quotes we don't already deal with.
props SergeyBiryukov. fixes #19820 .
git-svn-id: https://develop.svn.wordpress.org/trunk@20686 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 16:37:42 +00:00
Andrew Nacin
ad1de1abe6
Always escape the output of get_pagenum_link(). fixes #14556 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20685 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 16:29:39 +00:00
Andrew Nacin
bf5decbacf
Require both wp-head-callback and admin-head-callback for custom header theme support. fixes #20603 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20684 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 15:16:48 +00:00
Andrew Nacin
fa3427a99a
Update phpdoc for WP_User::has_cap(). props nunomorgadinho. see #19756 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20683 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 14:17:04 +00:00
bumpbot
93a7eaf328
Compress scripts/styles: 3.4-beta3-20681. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20681 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 01:58:25 +00:00
Andrew Ozz
95808e088f
Change the image caption shortcode format to [caption ...]<a><img /></a> caption text + html[/caption]. That way HTML tags in captions are better supported and the shortcode wouldn't break when using the wrong quotes. Props sushkov, nacin, fixes #18311
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20679 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 01:14:52 +00:00
bumpbot
19a3e3799e
Compress scripts/styles: 3.4-beta3-20678.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20678 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 22:58:23 +00:00
Andrew Nacin
869f8217ff
Replace commas with periods when converting ratings float values to strings, to avoid issues with localized decimal points.
...
In these cases, we want a period because it is going to be used by CSS.
props SergeyBiryukov.
fixes #19593 .
git-svn-id: https://develop.svn.wordpress.org/trunk@20675 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 22:09:55 +00:00
Ryan Boren
defdae610e
RTL style fixes for the Theme Customizer. Props ocean90, helenyhou.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20674 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 22:06:53 +00:00
Mark Jaquith
68616250c5
Ignore this. Just need an un-synced-to-GitHub commit so I can switch to using the new core.svn.wordpress.org URL.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20672 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 21:05:02 +00:00
Andrew Nacin
9761a56833
Kill all notices in XML-RPC found when running the test suite with WP_DEBUG. see [UT706], [UT707]. see #20566 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20671 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 21:03:50 +00:00
Andrew Nacin
8868595fd4
Fix copy-paste issues in XML-RPC's _prepare_taxonomy(). see #20566 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20670 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 20:33:06 +00:00
Jon Cave
9426067fbc
Prevent a notice: don't attempt to parse the query string if it doesn't exist. Props johnjamesjacoby. Fixes #20528 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20669 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 18:26:38 +00:00
Andrew Nacin
5fd3048d0a
Don't try to translate tags in WP_Theme::translate_header() if we are not in the admin and get_theme_feature_list() isn't defined. see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20668 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 18:02:40 +00:00
Ryan Boren
52dea56cbe
Add a link to the Customizer from the Admin Bar appearance menu. Props sabreuse. fixes #20575
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20666 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 12:47:46 +00:00
Andrew Nacin
be1c42cf7a
Use correct variables. props batmoo. fixes #20566 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20665 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 01:11:18 +00:00
Andrew Nacin
0a15d9f966
Use correct variables. props batmoo. fixes #20566 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20664 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 23:45:01 +00:00
bumpbot
25463b343f
Compress scripts/styles: 3.4-beta3-20663.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20663 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:58:31 +00:00
Andrew Nacin
ac2e5ae1e0
jQuery UI 1.8.20. fixes #20559 .
...
Fixes placeholder sizes when sorting post and dashboard meta boxes.
git-svn-id: https://develop.svn.wordpress.org/trunk@20660 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:53:09 +00:00
Andrew Nacin
29fcfe6c1c
Explicitly set the dimensions of the avatar in the toolbar's profile menu. Avoids issues where overridden avatars could result in images that don't fit. props andrewryno. fixes #19539 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20657 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:38:39 +00:00
Ryan Boren
267871e166
Escape term links output in category-template.php functions. Props SergeyBiryukov, solarissmoke, alex-ye. fixes #20106
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20656 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:36:43 +00:00
Ryan Boren
ac3e71ac63
Don't escape anchor text as an attributein wp_get_attachment_link(). Props SergeyBiryukov. fixes #19282
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20654 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:22:58 +00:00
Andrew Nacin
0d53bba473
Properly convert two special Z characters in convert_chars(). props Namely, SergeyBiryukov. fixes #20503 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20653 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:20:50 +00:00
Ryan Boren
3f793e457c
Fire the wp_cron action from init instead of sanitize_comment_cookies so that cron handlers can rely on a fully initialized env. Props SergeyBiryukov, norocketsurgeon. fixes #19818
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20652 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:02:54 +00:00
bumpbot
baa8fa8a0f
Compress scripts/styles: 3.4-beta3-20651.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20651 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 20:58:24 +00:00