Commit Graph

10065 Commits

Author SHA1 Message Date
bumpbot 29d657c8a0 Compress scripts/styles: 3.5-alpha-21190.
git-svn-id: https://develop.svn.wordpress.org/trunk@21190 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 08:58:22 +00:00
Mark Jaquith 0b294b9481 urldecode() search strings that come in from /search/foo. props SergeyBiryukov. fixes #13961
git-svn-id: https://develop.svn.wordpress.org/trunk@21187 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 07:47:22 +00:00
Andrew Nacin e1b03b4fd4 Remove old code unsetting a few variables in wp-settings.php. fixes #21115.
git-svn-id: https://develop.svn.wordpress.org/trunk@21186 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 20:57:09 +00:00
Andrew Nacin 9fd4c1cb9b Add NOT EXISTS to meta queries, allowing you to query for the non-existence of a meta key.
You could already use EXISTS by omitting a value to check.

props georgestephanis, scribu
fixes #18158



git-svn-id: https://develop.svn.wordpress.org/trunk@21185 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 19:59:29 +00:00
Andrew Nacin 96f9446e11 Check if array key exists in wp_list_filter(). props wpsmith. fixes #20929.
git-svn-id: https://develop.svn.wordpress.org/trunk@21184 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 19:42:27 +00:00
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