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 |
|
Scott Taylor
|
d1a40562eb
|
Add check to make sure a valid argument was passed to get_page_uri() .
Props Viper007Bond.
Fixes #24491.
Built from https://develop.svn.wordpress.org/trunk@25262
git-svn-id: http://core.svn.wordpress.org/trunk@25230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 21:42:10 +00:00 |
|
Scott Taylor
|
d03b6f9df5
|
Avoids incorrect results when url_to_postid() checking is not strict enough. Adds a bunch of Unit Tests for `url_to_postid()', which is currently only tested lightly in some XML-RPC tests.
Props gcorne, gradyetc.
Fixes #20560.
Built from https://develop.svn.wordpress.org/trunk@25258
git-svn-id: http://core.svn.wordpress.org/trunk@25226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 17:29:13 +00:00 |
|
Scott Taylor
|
d041c830bc
|
Avoid database error when include or exclude is not really a term_id . Adds more unit tests.
Props kovshenin.
Fixes #11823.
Built from https://develop.svn.wordpress.org/trunk@25257
git-svn-id: http://core.svn.wordpress.org/trunk@25225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 17:15:09 +00:00 |
|
Scott Taylor
|
4be84bbdfb
|
When meta_type is passed with orderby => meta_value , orderby must also use CAST() to avoid scenarios like: SELECT ing by UNSIGNED and then ordering by CHAR . Adds unit test.
Fixes #21621.
Built from https://develop.svn.wordpress.org/trunk@25255
git-svn-id: http://core.svn.wordpress.org/trunk@25223 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 16:57:08 +00:00 |
|
Scott Taylor
|
aa480a25e2
|
Introduce author__in and author__not_in query vars. Fixes issue with multiple author exclusion when comma-separated string is passed for author . Adds a bunch of missing unit tests.
Props pollett for initial patch.
Fixes #16854.
Built from https://develop.svn.wordpress.org/trunk@25248
git-svn-id: http://core.svn.wordpress.org/trunk@25216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-04 21:33:09 +00:00 |
|
Andrew Nacin
|
365a78db7c
|
Ensure zxcvbn.min.js loads when we are guessing the wp-includes URL.
props iandunn, SergeyBiryukov.
fixes #25201.
Built from https://develop.svn.wordpress.org/trunk@25246
git-svn-id: http://core.svn.wordpress.org/trunk@25214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-04 21:16:09 +00:00 |
|
Scott Taylor
|
6253183ffc
|
Set hierarchical to false when parent is passed to get_pages() and child_of is not.
Fixes #25230.
Built from https://develop.svn.wordpress.org/trunk@25245
git-svn-id: http://core.svn.wordpress.org/trunk@25213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-04 21:00:09 +00:00 |
|
Scott Taylor
|
bf6da40cfc
|
Allow get_pages() to accept an array for the arg parent . Adds unit tests, some will fail until the next commit.
Fixes #9470.
Built from https://develop.svn.wordpress.org/trunk@25244
git-svn-id: http://core.svn.wordpress.org/trunk@25212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-04 20:56:09 +00:00 |
|
Scott Taylor
|
6895dc9f8e
|
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.
Built from https://develop.svn.wordpress.org/trunk@25241
git-svn-id: http://core.svn.wordpress.org/trunk@25211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-04 19:41:08 +00:00 |
|
Scott Taylor
|
4a2c4c8f01
|
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.
Built from https://develop.svn.wordpress.org/trunk@25239
git-svn-id: http://core.svn.wordpress.org/trunk@25209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-04 18:51:10 +00:00 |
|