Scott Taylor
|
6fb5ef65c0
|
Avoid a notice by casting `$args['rewrite']` to `array()` before adding a `slug` property and running `array_merge()`.
Fixes #23668.
Built from https://develop.svn.wordpress.org/trunk@25351
git-svn-id: http://core.svn.wordpress.org/trunk@25313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-11 17:17:11 +00:00 |
Dion Hulse
|
fc1fc39a89
|
Fix the action that `set_site_transient()` fires so as not to include the private option prefix. This brings set_site_transient() back in line with it's documented behaviour, and the behaviour of all other transient functions. Fixes #25213
Built from https://develop.svn.wordpress.org/trunk@25350
git-svn-id: http://core.svn.wordpress.org/trunk@25312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-11 08:46:10 +00:00 |
Dion Hulse
|
c93eb27bb2
|
Switch WP_HTTP over to using the mbstring.func_overload helper functions. This change moves the check from within the Streaming-handling function to wrap the individual request, this fixes it for both cURL and Streams and any future changes to the transports which use strlen() on binary data. See #25259 See #16057
Built from https://develop.svn.wordpress.org/trunk@25348
git-svn-id: http://core.svn.wordpress.org/trunk@25310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-11 08:13:10 +00:00 |
Dion Hulse
|
ca008522f3
|
Add a set of helpers to turn the behaviour of mbstring.func_overload off when needed. Fixes #25259
Built from https://develop.svn.wordpress.org/trunk@25346
git-svn-id: http://core.svn.wordpress.org/trunk@25308 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-11 07:23:08 +00:00 |
Andrew Nacin
|
1536779aaf
|
Avoid error in ms-files.php after [25317].
Built from https://develop.svn.wordpress.org/trunk@25344
git-svn-id: http://core.svn.wordpress.org/trunk@25306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-11 04:49:10 +00:00 |
Andrew Nacin
|
1d27a97756
|
Bump version in trunk.
Built from https://develop.svn.wordpress.org/trunk@25343
git-svn-id: http://core.svn.wordpress.org/trunk@25305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-11 04:20:09 +00:00 |
Andrew Nacin
|
7320c14dc4
|
SimplePie: Fix use of DOMElement as array.
props MikeSchinkel.
fixes #25274.
Built from https://develop.svn.wordpress.org/trunk@25342
git-svn-id: http://core.svn.wordpress.org/trunk@25304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-11 04:02:10 +00:00 |
Andrew Nacin
|
b302f84b49
|
Avoid string offset notices in [25319].
Built from https://develop.svn.wordpress.org/trunk@25340
git-svn-id: http://core.svn.wordpress.org/trunk@25302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-11 03:57:09 +00:00 |
Andrew Nacin
|
89c57124da
|
Improve clarity and speed of [25320].
Built from https://develop.svn.wordpress.org/trunk@25338
git-svn-id: http://core.svn.wordpress.org/trunk@25300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-11 03:23:08 +00:00 |
Andrew Nacin
|
d637330d43
|
Bump TinyMCE version for [25132]. See #25131.
Built from https://develop.svn.wordpress.org/trunk@25337
git-svn-id: http://core.svn.wordpress.org/trunk@25299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-11 02:44:08 +00:00 |
Scott Taylor
|
cb982c66ac
|
Don't call `sanitize_title_with_dashes( $taxonomy )` in `register_taxonomy()` unless `$args['rewrite']['slug']` is empty.
Props SergeyBiryukov.
Fixes #23668.
Built from https://develop.svn.wordpress.org/trunk@25335
git-svn-id: http://core.svn.wordpress.org/trunk@25297 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-11 00:09:10 +00:00 |
Scott Taylor
|
7c2e7f8995
|
Add `term_taxonomy_id` to available fields in `get_term_by()`. Adds unit test.
Props jchristopher.
Fixes #21651.
Built from https://develop.svn.wordpress.org/trunk@25334
git-svn-id: http://core.svn.wordpress.org/trunk@25296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-11 00:02:08 +00:00 |
Scott Taylor
|
02757de9d8
|
Remove dead code in `add_query_arg()`.
Props hakre, c3mdigital.
Fixes #16942.
Built from https://develop.svn.wordpress.org/trunk@25333
git-svn-id: http://core.svn.wordpress.org/trunk@25295 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-10 23:38:09 +00:00 |
Scott Taylor
|
569bcc5dad
|
Use `wp_get_nav_menus()` instead of `get_terms('nav_menu')` in `WP_Nav_Menu_Widget` to preserve use of `wp_get_nav_menus' filter.
Props Frank Klein.
Fixes #25263.
Built from https://develop.svn.wordpress.org/trunk@25332
git-svn-id: http://core.svn.wordpress.org/trunk@25294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-10 23:30:10 +00:00 |
Scott Taylor
|
dbec80b469
|
Support `orderby => meta_value` in `WP_User_Query`. Adds unit test.
Props wpsmith.
Fixes #21581.
Built from https://develop.svn.wordpress.org/trunk@25331
git-svn-id: http://core.svn.wordpress.org/trunk@25293 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-10 23:10:09 +00:00 |
Scott Taylor
|
cb70e277af
|
Add an additional available param (the `WP_User` instance) to the `user_has_cap` filter.
Props Viper007Bond.
Fixes #24490.
Built from https://develop.svn.wordpress.org/trunk@25329
git-svn-id: http://core.svn.wordpress.org/trunk@25291 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-10 22:23:10 +00:00 |
Scott Taylor
|
2f267f6a2a
|
Add filter `flush_rewrite_rules_hard` to give devs chance to prevent writing to file when hard-flushing rewrite rules.
Props jeremyfelt, nacin.
Fixes #23491.
Built from https://develop.svn.wordpress.org/trunk@25328
git-svn-id: http://core.svn.wordpress.org/trunk@25290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-10 22:19:09 +00:00 |
Scott Taylor
|
3f5ec88eda
|
Introduce `get_previous_post_link()`, `get_next_post_link()`, and `get_adjacent_post_link()`. Allows developers to retrieve the value without `echo`ing.
Props yoavf, markjaquith, SergeyBiryukov.
Fixes #17302.
Built from https://develop.svn.wordpress.org/trunk@25327
git-svn-id: http://core.svn.wordpress.org/trunk@25289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-10 22:12:10 +00:00 |
Andrew Nacin
|
a461a25d76
|
Loose validation for is_serialized() in maybe_serialize().
Built from https://develop.svn.wordpress.org/trunk@25320
git-svn-id: http://core.svn.wordpress.org/trunk@25282 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-10 18:10:09 +00:00 |
Andrew Nacin
|
3e41af8489
|
Better protocol validation in set_url_scheme().
Built from https://develop.svn.wordpress.org/trunk@25319
git-svn-id: http://core.svn.wordpress.org/trunk@25281 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-10 18:08:11 +00:00 |
Andrew Nacin
|
cf3fddde96
|
Validate referrers to prevent off-domain redirects.
Built from https://develop.svn.wordpress.org/trunk@25318
git-svn-id: http://core.svn.wordpress.org/trunk@25280 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-10 18:07:10 +00:00 |
Andrew Nacin
|
c8a7b53c65
|
Tighten allowed upload file types.
Built from https://develop.svn.wordpress.org/trunk@25317
git-svn-id: http://core.svn.wordpress.org/trunk@25279 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-10 18:04:09 +00:00 |
Scott Taylor
|
d39c01d30e
|
Consistently wrap `author` and `excerpt` nodes with `CDATA` in feeds.
Fixes #18056.
Built from https://develop.svn.wordpress.org/trunk@25315
git-svn-id: http://core.svn.wordpress.org/trunk@25277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-10 16:55:09 +00:00 |
Scott Taylor
|
a563a5b2fa
|
Replace the ancient `phpfreaks.com` RegEx to extract urls to ping with a more robust matcher. URLs with commas and things like `&` were not being pinged. The new matcher even works for most IDN URLs. Adds unit tests.
Fixes #9064.
Built from https://develop.svn.wordpress.org/trunk@25313
git-svn-id: http://core.svn.wordpress.org/trunk@25275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-10 03:18:08 +00:00 |
Scott Taylor
|
8bd9659d0d
|
Move checks for `post_type` being an array inline. See [25291], [25292], #18614.
Built from https://develop.svn.wordpress.org/trunk@25312
git-svn-id: http://core.svn.wordpress.org/trunk@25274 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-10 03:02:10 +00:00 |
Scott Taylor
|
7af06e7ab3
|
Add an action at the end of `WP_Query::parse_tax_query()` called (wait for it...) `parse_tax_query` which will enable developers to alter `$this->tax_query->queries` before SQL is generated. `pre_get_posts` is too early for many scenarios.
Built from https://develop.svn.wordpress.org/trunk@25311
git-svn-id: http://core.svn.wordpress.org/trunk@25273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-10 02:36:09 +00:00 |
Scott Taylor
|
d24a3940de
|
Make sure the queried object is non-null before accessing its properties.
Props markoheijnen, ryan.
Fixes #21394.
Built from https://develop.svn.wordpress.org/trunk@25310
git-svn-id: http://core.svn.wordpress.org/trunk@25272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-10 02:28:11 +00:00 |
Dion Hulse
|
3514c7d1c4
|
WP_HTTP: Correct the @since, and, @deprecated PHPDoc tags to reflect the class history. See #25007
Built from https://develop.svn.wordpress.org/trunk@25309
git-svn-id: http://core.svn.wordpress.org/trunk@25271 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-09 08:10:10 +00:00 |
Dion Hulse
|
068df26686
|
Switch to using HTTPS connections for Plugin and Theme API requests when SSL is available. See #18577
Built from https://develop.svn.wordpress.org/trunk@25308
git-svn-id: http://core.svn.wordpress.org/trunk@25270 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-09 07:54:11 +00:00 |
Dion Hulse
|
f66f154ced
|
WP_HTTP: When streaming to file, ensure that fwrite() suceeds and correctly writes the file to disk. Fixes #16057
Built from https://develop.svn.wordpress.org/trunk@25303
git-svn-id: http://core.svn.wordpress.org/trunk@25265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-09 01:18:08 +00:00 |
Sergey Biryukov
|
b85814e48c
|
Inline documentation for hooks in http.php.
props tw2113.
see #25229.
Built from https://develop.svn.wordpress.org/trunk@25302
git-svn-id: http://core.svn.wordpress.org/trunk@25264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-08 22:04:09 +00:00 |
Sergey Biryukov
|
6e5a5d21e0
|
Document 'wp_link_query_args' and 'wp_link_query' filters. props DrewAPicture. fixes #18042.
Built from https://develop.svn.wordpress.org/trunk@25299
git-svn-id: http://core.svn.wordpress.org/trunk@25262 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-07 19:47:10 +00:00 |
Sergey Biryukov
|
05d55a400b
|
Avoid PHP notices when configuring the Incoming Links dashboard widget. fixes #25250.
Built from https://develop.svn.wordpress.org/trunk@25298
git-svn-id: http://core.svn.wordpress.org/trunk@25261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-07 18:17:10 +00:00 |
Sergey Biryukov
|
b2ce0b4f93
|
Add 'wp_link_query_args' and 'wp_link_query' filters to allow for customizing the internal linking dialog. props CoenJacobs, goldenapples. fixes #18042.
Built from https://develop.svn.wordpress.org/trunk@25293
git-svn-id: http://core.svn.wordpress.org/trunk@25257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-07 12:21:12 +00:00 |
Scott Taylor
|
d7704991b3
|
Check the value passed to `get_post_type_object()`. If it's an array, use the first item. `get_query_var( 'post_type' )` can be an array if the query has been altered via filters/actions. There are several places in core that pass the query var. Adds unit tests.
In `template-loader.php`, move `is_post_type_archive()` and `is_tax()` directly below `is_home()`.
See #18614, [25291].
Built from https://develop.svn.wordpress.org/trunk@25292
git-svn-id: http://core.svn.wordpress.org/trunk@25256 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 23:39:09 +00:00 |
Scott Taylor
|
a67d551dac
|
Ensure that the post type object is the queried object when a post type has been registered with `has_archive => true`. Ensure it is not stomped when decorated with `tax_query`. Adds unit tests.
Props nacin.
Fixes #18614.
Built from https://develop.svn.wordpress.org/trunk@25291
git-svn-id: http://core.svn.wordpress.org/trunk@25255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 22:07:09 +00:00 |
Scott Taylor
|
d7cc1f506a
|
Introduce `wp_using_ext_object_cache()` - mimic `wp_suspend_cache_invalidation()` and discourage direct access to `$_wp_using_ext_object_cache`, cleaning up importing of globals in functions and provides function to modify that global. Loads the packaged object cache when an external cache hasn't been loaded or doesn't contain `wp_cache_init()`.
Fixes #21401.
Built from https://develop.svn.wordpress.org/trunk@25289
git-svn-id: http://core.svn.wordpress.org/trunk@25253 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 18:10:09 +00:00 |
Scott Taylor
|
bfdc55b24d
|
Allow `is_tag()` to accept `term_id`, `slug`, 'term_name` or array of any. Many other `is_*()` funcs already do this. Adds unit tests.
Props ramiy.
Fixes #18746.
Built from https://develop.svn.wordpress.org/trunk@25287
git-svn-id: http://core.svn.wordpress.org/trunk@25251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 17:27:08 +00:00 |
Andrew Nacin
|
3a28152826
|
Inline docs for hooks in MagPie.
props natejacobs.
see #25229.
Built from https://develop.svn.wordpress.org/trunk@25286
git-svn-id: http://core.svn.wordpress.org/trunk@25250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 17:19:09 +00:00 |
Andrew Nacin
|
20b0153753
|
Document the 'query' filter in wp-db.
props natejacobs.
see #25229.
Built from https://develop.svn.wordpress.org/trunk@25284
git-svn-id: http://core.svn.wordpress.org/trunk@25248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 17:07:09 +00:00 |
Scott Taylor
|
b22bc5e389
|
Check bad dates and redirect, instead of 404ing, as necessary and appropriate.
Adds query, conditional, and canonical Unit Tests.
Props kovshenin, SergeyBiryukov, DrewAPicture.
Fixes #10935.
Built from https://develop.svn.wordpress.org/trunk@25280
git-svn-id: http://core.svn.wordpress.org/trunk@25244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 16:36:09 +00:00 |
Sergey Biryukov
|
14308c0d41
|
Deprecate get_blogaddress_by_domain(), unused since [25261]. props jeremyfelt. fixes #25235.
Built from https://develop.svn.wordpress.org/trunk@25276
git-svn-id: http://core.svn.wordpress.org/trunk@25241 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 11:41:09 +00:00 |
Andrew Nacin
|
9fdfa7ef5c
|
Short descriptions for inline docs should end with a period, per the vast majority of core. see #25229.
Built from https://develop.svn.wordpress.org/trunk@25273
git-svn-id: http://core.svn.wordpress.org/trunk@25239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 01:38:09 +00:00 |
Dion Hulse
|
443aa35cfc
|
Upgrader: Make clearing the Plugin and Theme update caches optional during install and upgrade proceedures. See #22704
Built from https://develop.svn.wordpress.org/trunk@25272
git-svn-id: http://core.svn.wordpress.org/trunk@25238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 01:33:09 +00:00 |
Andrew Nacin
|
4b40e7a646
|
More adjustments and improvements for inline documentation for get_pages(). see #25186.
Built from https://develop.svn.wordpress.org/trunk@25271
git-svn-id: http://core.svn.wordpress.org/trunk@25237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 01:21:09 +00:00 |
Scott Taylor
|
54c5a75e68
|
Simplify the check for false-y `child_of` arg.
Props SergeyBiryukov.
See #25230, [25245].
Built from https://develop.svn.wordpress.org/trunk@25270
git-svn-id: http://core.svn.wordpress.org/trunk@25236 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 23:36:10 +00:00 |
Scott Taylor
|
8038d7f9e8
|
Move `get_meta_type()` into the `WP_Meta_Query` class as `get_cast_for_type()`. `WP_Query` can then access it like: `$this->meta_query->get_cast_for_type()`.
See #21621, [25255].
Built from https://develop.svn.wordpress.org/trunk@25269
git-svn-id: http://core.svn.wordpress.org/trunk@25235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 23:32:09 +00:00 |
Scott Taylor
|
cc41e7d04a
|
Fix spacing in docs for `get_pages()`.
Props DrewAPicture.
See #25186.
Built from https://develop.svn.wordpress.org/trunk@25268
git-svn-id: http://core.svn.wordpress.org/trunk@25234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 23:21:10 +00:00 |
Scott Taylor
|
1855f97a2c
|
Add docs to the woefully under-documented `get_pages()`.
Props DrewAPicture.
Fixes #25186.
Built from https://develop.svn.wordpress.org/trunk@25266
git-svn-id: http://core.svn.wordpress.org/trunk@25232 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 22:13:09 +00:00 |
Scott Taylor
|
dd7a6d66af
|
Only variables should be passed by reference.
Props Askapache.
Fixes #23032.
Built from https://develop.svn.wordpress.org/trunk@25263
git-svn-id: http://core.svn.wordpress.org/trunk@25231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 21:53:09 +00:00 |