Scott Taylor
89997e4c80
Introduce description__like
arg to get_terms()
. Make description__like
and name__like
perform LIKE
s with a wildcard on both sides of passed string. Previously, strings had to match the beginning of the name, so searching for burrito
in This is a burrito
would fail. Adds unit tests.
...
Props aaroncampbell for the original patch, 5 years ago.
Fixes #8214 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25241 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-04 19:40:17 +00:00
Scott Taylor
24bf60bb4f
Kill the query in the following edge case: post_type => 'any'
but exclude_from_search => false
returns no valid post types. Adds unit tests.
...
Props mitchoyoshitaka.
Fixes #19198 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25239 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-04 18:50:04 +00:00
Scott Taylor
0d0b17b617
Convert category__and
to category__in
(less expensive) and unset it when only one category is passed. Adds unit tests.
...
Fixes #24245 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25238 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-04 18:16:31 +00:00
Andrew Nacin
db5f9800d4
add_theme_support( 'html5' ) now defaults to comment-list, comment-form, and search-form.
...
This was the implicit case in 3.6.0, modified in [25193].
see #24932 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25235 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-04 17:43:29 +00:00
Scott Taylor
1e0d32406d
Allow int
to be passed in lieu of array
, add append
arg to wp_set_post_categories()
. Adds more extensive unit tests for wp_set_post_categories()
.
...
Props ptahdunbar for initial patch.
Fixes #16550 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25234 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-04 17:41:03 +00:00
Sergey Biryukov
67500203f9
Move check_password_reset_key(), reset_password(), and register_new_user() from wp-login.php to wp-includes/user.php, to make them reusable. props beaulebens for initial patch. fixes #20279 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25231 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-04 08:58:41 +00:00
Sergey Biryukov
7aa0fd9a78
Add phpdoc for 'wp_redirect' and 'wp_redirect_status' filters. props DrewAPicture. fixes #25215 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25230 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-04 08:30:37 +00:00
Sergey Biryukov
f5770d15c1
Update phpdoc for get_current_site(). props jeremyfelt. fixes #25040 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25229 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-04 08:25:57 +00:00
Dion Hulse
d18ca83a2d
WP_HTTP: Re-enable curl, it was accidentally left out of [25224]. See #25007 See #16606
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25225 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-04 04:49:40 +00:00
Dion Hulse
5d57f260ed
WP_HTTP: Replacing the Fsockopen & Streams Transports with a new Streams transport which fully supports HTTPS communication.
...
This changeset also bundles ca-bundle.crt from the Mozilla project to allow for us to verify SSL certificates on hosts which have an incomplete, outdated, or invalid local SSL configuration.
Props rmccue for major assistance getting this this far. See #25007 for discussion, also Fixes #16606
git-svn-id: https://develop.svn.wordpress.org/trunk@25224 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-04 04:48:21 +00:00
Dion Hulse
a2a7f08b1b
WP_HTTP: Add a filter for the available HTTP Transports to allow plugins to alter the order which HTTP Transports are tried, or to add their own.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25222 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-03 08:38:56 +00:00
Dion Hulse
cbf4ed3a68
WP_HTTP: Clean up some comments style and remove outdated information.
...
The change to the proxy block here is for consistency, WP_HTTP_Proxy::block_request() is never called before parse_url() has successfully operated on the URL, and in the event we cannot read the URL, it shouldn't be requested.
git-svn-id: https://develop.svn.wordpress.org/trunk@25221 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-03 08:36:05 +00:00
Dion Hulse
ac84f12d0e
Core Updates: Ensure that the system supports outgoing HTTPS requests before making an update check over HTTPS. Fixes a typo in [25219]. See #22704
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25220 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-03 07:11:35 +00:00
Dion Hulse
2da41fa7f0
Core Updates: Switch to using a new 1.7 version check API which will return extra auto-update packages when requested over SSL. The new API has switched to returning JSON. See #22704
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25219 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-03 03:21:59 +00:00
Sergey Biryukov
ba667f56d8
Escape URLs in feed_links(). props Chouby. fixes #25212 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25207 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-02 10:10:09 +00:00
Sergey Biryukov
52c050254f
Use an array as a default value for $meta in multisite signup-related functions. fixes #25149 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25205 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-02 03:32:49 +00:00
Sergey Biryukov
6bef163456
Update phpdoc for get_user_to_edit(), get_userdata(), and get_user_by(). props tivnet. fixes #24992 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25204 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-02 03:24:33 +00:00
Sergey Biryukov
43c76d1751
Prevent WP_Styles::do_item() from adding its own style tags when concatenation is disabled. props stephenharris. fixes #24813 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25202 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-01 13:14:49 +00:00
Andrew Nacin
788973ffb2
Case insensitivity for is_email_address_unsafe().
...
props jkudish.
fixes #25046 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25197 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-31 04:35:15 +00:00
Andrew Nacin
d25d2a812b
Use get_nav_menu_locations() in wp_delete_nav_menu().
...
props nofearinc.
see #25064 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25196 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-31 01:38:11 +00:00
Andrew Nacin
751fdfbc47
Remove display of 'Previously restored by' in the revisions meta box as it is busted.
...
Fixes invalid markup (missing closing ul tag) when there was no previously restored revision.
see #25051 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@25194 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-31 01:32:06 +00:00
Andrew Nacin
afe7f94304
Fix 'html5' theme support.
...
* Require it to have a second argument when adding.
* Merge, rather than replace, on second add.
* Make current_theme_supports() work when two arguments are passed.
Adds unit tests.
props nathanrice for initial patch.
see #24932 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@25193 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-31 01:29:08 +00:00
Andrew Nacin
ee2baada7b
Be less verbose when erroring out in do_feed() for an invalid feed template. fixes #24874 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25190 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-30 23:36:58 +00:00
Andrew Nacin
dc3df4d410
Remove wp-tinymce.js.gz from develop.svn, as this is now part of the build process.
...
see #25159 and [25188].
git-svn-id: https://develop.svn.wordpress.org/trunk@25189 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-30 22:24:15 +00:00
Andrew Nacin
924a3227d8
Revert [23307] so new users in multisite are not automatically subscribers on the main site.
...
props duck_.
fixes #25166 for trunk.
see #15627 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25183 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-30 16:28:59 +00:00
Jon Cave
a0940de83d
Correct rewrite tag for hierarchical post types without a query_var.
...
Hierarchical rewrite rules operate via the 'pagename' query variable which is
passed to get_page_by_path(). However, the current rewrite rules use the 'name'
query variable for hierarchical types without a custom query_var.
Fixes #16323 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25182 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-30 08:07:06 +00:00
Andrew Nacin
21b61a9e6f
Add signup_id primary key to $wpdb->signups, and add better indexes.
...
props josephscott, pento, barry.
see #15004 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25179 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-30 04:29:06 +00:00
Andrew Nacin
3749745c3d
Don't set up $post_author_data in map_meta_cap() as we don't need it.
...
props duck_.
fixes #25177 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25177 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-30 04:00:06 +00:00
Dion Hulse
e9a8ae1acf
WP_HTTP: Make the new 2nd parameter to WP_HTP::processHeaders() as optional. See #21182 . Fixes #25179
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25176 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-30 02:10:34 +00:00
Scott Taylor
59b9a3a6f8
No need to re-map the return values of wp_parse_id_list()
to int.
...
See #22074 , #11823 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25169 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 18:53:03 +00:00
Scott Taylor
f458d16c01
Improve the include / exclude SQL generation in get_pages()
by using IN
and NOT IN
where applicable. Adds unit tests for include / exclude.
...
Fixes #22074 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25168 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 18:48:29 +00:00
Scott Taylor
d34baebc1d
Search term name
and slug
when the search
arg is passed to get_terms()
. Adds unit test.
...
Props wojtek.szkutnik.
Fixes #13992 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25164 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 16:49:43 +00:00
Scott Taylor
9e96365b8e
Pass the taxonomy around to relevant nav menu actions to avoid arbitrarily deleting all items with menu-item-type
of taxonomy
. Adds unit test for wp_get_associated_nav_menu_items()
.
...
Props garyc40, SergeyBiryukov.
Fixes #15264 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25163 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 16:44:36 +00:00
Scott Taylor
a4a765c5fd
Improve the include / exclude SQL generation in get_terms()
by using IN
and NOT IN
where applicable. Adds unit tests for include / exclude.
...
Props sirzooro, duck_.
Fixes #11823 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25162 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 16:23:30 +00:00
Scott Taylor
69785902db
Support id=>name
and id=>slug
values for fields
arg in get_terms()
. Adds unit tests.
...
Props mikeschinkel.
Fixes #13661 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25161 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 15:18:08 +00:00
Scott Taylor
744a4a80a4
Respect the fields
arg when passed to get_children()
.
...
Fixes #22208 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25160 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 15:07:59 +00:00
Jon Cave
95cab73341
zxcvbn: Apply ROT13 when building the dynamic user_inputs dictionary.
...
The modified matcher assumes that the dictionaries are ROT13 encoded.
All of the static dictionaries were, but user_inputs wasn't. See #21737 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25159 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 08:40:51 +00:00
Andrew Nacin
444d333872
Use Dropbox's zxcvbn library for our password meter.
...
The library was added in [25156].
props duck_.
see #21737 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25157 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 16:08:19 +00:00
Andrew Nacin
b9f05488aa
Add Dropbox's zxcvbn library for realistic password strength estimation.
...
Upstream: https://github.com/lowe/zxcvbn . MIT License.
Modified for WordPress with a rot13 of the included word dictionaries, for PG-ness.
props duck_.
see #21737 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25156 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 16:02:53 +00:00
Dion Hulse
a044fcf1ae
WP_HTTP: Fix a variable typo in [25153] See #23463
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25155 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 07:29:09 +00:00
Dion Hulse
de7d430280
WP_HTTP: Update the documentation regarding HTTP/1.1 support. Props leewillis77 Fixes #25074
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25154 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 06:54:22 +00:00
Dion Hulse
2785826961
WP_HTTP: Improve WP_HTTP::chunkTransferDecode() to properly handle binary data and chunked responses which include data in the page that looks like a chunked response.
...
This also fixes a case where the gzip'd data would become corrupt after chunked decoding as \r\n was replaced with \n in the data stream. Fixes #23463
git-svn-id: https://develop.svn.wordpress.org/trunk@25153 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 06:52:09 +00:00
Sergey Biryukov
1d00e1d88a
Make sure $args is an array before treating it as such. fixes #25151 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25151 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 05:27:03 +00:00
Dion Hulse
7f0891c1a1
WP_HTTP: When requesting a document with HTTP/1.1 include the 'Connection: Close' header (unless a Connection header is already specified) to prevent the connection being held open and hanging the request process. See #23463
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25150 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 04:58:51 +00:00
Dion Hulse
4f410dc9f3
WP_HTTP: More relaxed host matching for WP_PROXY_BYPASS_HOSTS and WP_ACCESSIBLE_HOSTS, allowing for subdomains in wildcards to include dashes (and anything else which [\w.] didn't catch). Fixes #24201
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25149 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 04:53:41 +00:00
Andrew Nacin
022e5c2227
The main site of a secondary network should not use the original wp-content/uploads upload path.
...
props jeremyfelt.
fixes #25030 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25148 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 03:35:44 +00:00
Andrew Nacin
dc0d29b59b
Introduce is_main_network().
...
By default, a network ID of 1 is assumed to be the main network.
Otherwise, it is the first network listed in the wp_site table.
If PRIMARY_NETWORK_ID is defined, it is considered main network.
props jeremyfelt.
see #25030 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25147 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 03:34:50 +00:00
Dion Hulse
d9bd6e7039
Use a better variable name in antispambot() introduced with [25055]. Props duck_ Fixes #16754
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25146 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 01:46:57 +00:00
Andrew Nacin
713c6cfb88
Pass $taxonomies to the get_terms_orderby filter.
...
props johnbillion.
fixes #18754 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25142 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-27 21:05:03 +00:00
Andrew Nacin
c637de7316
WP_Date_Query.
...
props Viper007Bond.
see #18694 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25139 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-27 16:38:32 +00:00
Andrew Nacin
86f5f6ac78
Don't cast the 'm' query variable to an integer as the value can exceed the range of a 32-bit signed integer.
...
props Viper007Bond.
fixes #24884 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25138 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-27 15:19:54 +00:00
Andrew Nacin
2b280c5761
Ensure a user exists in get_comment_author().
...
props azaozz.
see #24084 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25136 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-27 13:16:34 +00:00
Andrew Nacin
eb1485529f
Remove unnecessary loops in default-filters.php.
...
props Jayjdk.
fixes #25011 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25134 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-27 11:58:03 +00:00
Dominik Schilling (ocean90)
ad422b8366
Introduce show_in_menu for register_taxonomy.
...
Accepts boolean: true to show, false to hide. If not set, the default is inherited from show_ui.
fixes #20930 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25133 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 22:34:56 +00:00
Andrew Ozz
afe41b9134
TinyMCE: fix editor focus issues after ontouchstart event on the parent document in iOS Safari. Fixes #25131 for 3.7.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25132 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 21:23:58 +00:00
Dominik Schilling (ocean90)
d0365d1383
Improve inline docs for register_post_type() and register_taxonomy().
...
* register_taxonomy: Use the same doc format for the associative array arg as used for register_post_type()
* register_taxonomy: Improve docs for _builtin, capabilities, hierarchical and rewrite args
* register_taxonomy: Use the same order in $defaults as in docblock
* register_taxonomy: Replace is_null with null ===, to be consistent
* register_post_type: Use the same order in $defaults as in docblock
* register_post_type: Improve docs for @uses and default fallbacks
And while we're on it: Whitespaces.
fixes #25150 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25130 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 20:23:34 +00:00
Sergey Biryukov
6d050b262f
Ignore case differences when checking file extension in wp_audio_shortcode() and wp_video_shortcode(). props nofearinc, bhengh. fixes #25140 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25128 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 19:20:36 +00:00
Sergey Biryukov
35e43e187d
Avoid a PHP notice in wpmu_create_blog() if $meta is not passed. props duck_, jeremyfelt, SergeyBiryukov. fixes #20793 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25127 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 18:56:32 +00:00
Andrew Nacin
7bc3ebf033
Return 1 from get_comment_pages_count() when pagination is disabled.
...
props obenland.
fixes #17778 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25126 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 18:51:53 +00:00
Andrew Nacin
512c12ba55
Network Admin toolbar menu: Add Plugins and Themes, remove Visit Network.
...
props Ipstenu, SergeyBiryukov.
fixes #21674 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25120 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-26 15:21:42 +00:00
Sergey Biryukov
65d047cde2
Make in_category() an alias of has_category(). fixes #16718 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25119 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-24 22:53:39 +00:00
Sergey Biryukov
d2a1a80683
Avoid a fatal error in WP_Http::request() if $response is a WP_Error instance. props dllh, nacin. fixes #24987 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25114 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-24 03:10:16 +00:00
Sergey Biryukov
086c5a8ab8
Deprecate $network_id argument in get_blog_count(). props jeremyfelt. fixes #25129 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25113 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-24 02:41:11 +00:00
Andrew Nacin
3f130cd103
Correct phpdoc for WP_Query::$post. props lgedeon, fixes #25130 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25110 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 22:01:59 +00:00
Andrew Ozz
a380ed51f7
User state settings:
...
- Allow empty cookie value to be saved.
- Use get_current_user_id() instead of wp_get_current_user().
- Use is_user_member_of_blog().
- Sanitize both name and value in wp_set_all_user_settings().
- Some var names and code formatting cleanup.
Fixes #24921 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25109 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 21:42:23 +00:00
Scott Taylor
46c24c3cf2
Use reset()
to grab the first taxonomy in an array, not by numerical index. Cleans up whitespace. Props webord, nbachiyski. Fixes #23506 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25108 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 21:28:34 +00:00
Andrew Ozz
961bbcb780
Logging in: when the Remember Me checkbox is checked, make sure the browser continues to send the expired cookies so the "login grace period" for POST and AJAX requests works. Fixes #24735 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25107 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 21:26:58 +00:00
Scott Taylor
39171d7527
Check term_id
against the $term
object, not the non-existent var $args
. Props rboren. Fixes #12729 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25106 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 21:04:22 +00:00
Sergey Biryukov
ad94ffb64d
Use correct variable. see #22922 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25105 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 20:56:50 +00:00
Andrew Nacin
1f24e6d76b
Add filters to the recipients of emails sent by wp_notify_postauthor() and wp_notify_moderator().
...
The new filters are called comment_notification_recipients and comment_moderation_recipients.
Add the context of $comment_id to the comment_moderation_headers filter, to match the comment_notification_headers filter.
props chipbennett.
fixes #22922 , #20353 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25104 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 19:35:04 +00:00
Helen Hou-Sandi
08cf55b76a
Actually display customizer section descriptions in a meaningful way. props obenland, helen. fixes #24392 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25102 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 16:17:48 +00:00
Sergey Biryukov
d6ea70e296
Add description for _wp_timezone_choice_usort_callback(). props neoxx. fixes #25125 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25101 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 13:56:35 +00:00
Sergey Biryukov
2bbbc466eb
Fix typo in phpdoc. props jamescollins. fixes #25092 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25097 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 23:47:56 +00:00
Andrew Nacin
d5c7150913
Format WordPress in <title> tags produced by wp_title().
...
props evansolomon.
fixes #19211 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25093 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 21:58:30 +00:00
Andrew Nacin
e99047ff95
Multisite: Add a filter to get_space_allowed() and increase its internal default value to the network default.
...
props jkudish for initial patch.
fixes #23650 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25092 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 20:54:09 +00:00
Andrew Nacin
562b65d822
PHPDoc for WP_Post properties. fixes #25092 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25086 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 15:57:31 +00:00
Ryan Boren
c8889d984f
Pinking shears
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25085 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 15:55:07 +00:00
Sergey Biryukov
8af525762c
Declare args as a local variable. props greuben. fixes #25078 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25080 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 02:11:00 +00:00
Sergey Biryukov
a38af28d35
Use correct order of arguments when calling edit_term_link() from edit_tag_link(). Correct $tag parameter description. props pbiron. fixes #25116 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25079 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 00:48:09 +00:00
Andrew Ozz
27e5aea61e
Heartbeat: better queue functionality: improve enqueue() and isQueued(), introduce dequeue() and getQueuedItem(). Props evansolomon, fixes #25047 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25078 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-21 22:54:09 +00:00
Sergey Biryukov
0fd35a7e7d
Update phpdoc for get_permalink(). props tivnet. fixes #25115 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25077 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-21 22:12:01 +00:00
Scott Taylor
20fa8b87b4
Improve inline docs for function params that can be serialized when non-scalar. Fixes #18488 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25076 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-21 21:10:23 +00:00
Jon Cave
790f9feb68
Pass false returned for timed out transients through transient_$transient filter.
...
This brings the same behaviour as external object caches to the default database
backend.
Props johnbillion. Fixes #24685 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25075 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-21 19:13:35 +00:00
Andrew Nacin
d71f11bdd7
Remove sourceMappingURL from jquery.min.js.
...
props Jayjdk.
fixes #24994 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25072 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-21 15:40:35 +00:00
Andrew Nacin
8984b71035
Allow for plugin translations to be loaded from WP_LANG_DIR/plugins/$domain-$locale.mo.
...
props dimadin.
see #18200 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25059 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 12:33:07 +00:00
Dion Hulse
4049977b50
Correct a typo in a docblock in [25055]. Props buffler. See #16754
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25058 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 07:09:35 +00:00
Dion Hulse
114974f156
Remove some PHP4-ness from the antispambot() function, and update it to match some modern coding standards. Props hakre and crrobi01 for initial patches. Fixes #16754
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25055 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 06:07:50 +00:00
Dion Hulse
3bcbd35fd9
Simplify _deep_replace() by removing it's obscure looping and replacement checking logic, and instead, using the PHP5 $count parameter of str_replace(). Props hakre. Fixes #16903
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25054 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 05:56:22 +00:00
Dion Hulse
cff05f9997
WP_HTTP: Curl: When using Stream-to-file on servers using mbstring.func_overload ensure that the file is written out correctly. Props DrProtocols. See #25061 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25051 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-18 08:17:48 +00:00
Dominik Schilling (ocean90)
6262af65df
Introduce save_post_{$post_type} hook.
...
The hook is fired before the general save_post hook and has the same args as save_post.
props bmb, SergeyBiryukov, ocean90, fixes #16176 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25050 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-17 20:20:24 +00:00
Dominik Schilling (ocean90)
b308cdbd87
Flush the cache in Recent Comments widget on edit_comment. props pento, fixes #24779 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25049 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-17 09:29:52 +00:00
Dion Hulse
cd9e0814e6
Make use of the recursive option in mkdir() in wp_mkdir_p(). Avoids a bunch of silenced PHP Notices being logged. Fixes #23196
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25047 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-17 03:08:50 +00:00
Dion Hulse
b5b118558e
WP_HTTP: Cookies: When following redirects, include the request cookies in the redirected requests. Fixes #24987
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25046 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-17 01:19:04 +00:00
Dion Hulse
fcc9006ef5
WP_HTTP: Cookies: Fill the defaults for the Cookie object based on the current requested URL. Fixes #21182
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25044 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-17 00:33:39 +00:00
Jon Cave
5be5a1412e
Introduce a notoptions cache for site options.
...
Props wonderboymusic. Fixes #19008 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25043 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-16 22:41:23 +00:00
Andrew Nacin
09e8223871
Obey $prefix when $display = false in single_term_title(), single_post_title(), and post_type_archive_title(). props yoavf, fixes #16632 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25041 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-16 20:53:37 +00:00
Jon Cave
97dfd85d30
Search for wp-util.min.js in the correct directory when auto-defining SCRIPT_DEBUG.
...
See #24976 , [25005].
git-svn-id: https://develop.svn.wordpress.org/trunk@25040 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-16 20:32:59 +00:00
Andrew Nacin
9aa5512e94
Add a function to return an empty string, for filters. props wpsmith, trepmal. fixes #20357 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25037 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-16 20:01:06 +00:00
Andrew Nacin
a2008aa773
Return esc_url_raw(), not esc_url(), from get_blogaddress_by_domain(). props tlovett1, fixes #25057 . #wcpvd
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25033 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-16 19:41:59 +00:00
Helen Hou-Sandi
123b419481
Only set and run internal search for linking selected text if the panel is open. Make sure the focus is in the URL field whenever opening the linking modal to preserve previous behavior. props greuben. fixes #16276 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25031 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-15 21:43:29 +00:00