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 |
|
Andrew Nacin
|
4079183e42
|
Document the event hook in wp-cron.php. see #25229.
Built from https://develop.svn.wordpress.org/trunk@25290
git-svn-id: http://core.svn.wordpress.org/trunk@25254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 20:52:10 +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 |
|
Andrew Nacin
|
74092c3960
|
Correct @since in admin-footer. see #25229.
Built from https://develop.svn.wordpress.org/trunk@25288
git-svn-id: http://core.svn.wordpress.org/trunk@25252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 17:38: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 |
|
Scott Taylor
|
a4841da471
|
Use get_the_title() when dealing with post_type -like items in the admin.
Props nacin, DrewAPicture.
Fixes #14975.
Built from https://develop.svn.wordpress.org/trunk@25285
git-svn-id: http://core.svn.wordpress.org/trunk@25249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 17:08:08 +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 |
|
Andrew Nacin
|
e17beb58f7
|
Mark the hooks in custom-background.php as duplicates.
* image_size_names_choose should be documented in wp-includes/media.php
* wp_create_file_in_uploads should be documented in custom-header.php
see #25229.
Built from https://develop.svn.wordpress.org/trunk@25283
git-svn-id: http://core.svn.wordpress.org/trunk@25247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 17:05:09 +00:00 |
|
Andrew Nacin
|
090e0e24b9
|
Document comment_edit_redirect.
props dustyf.
see #25229.
Built from https://develop.svn.wordpress.org/trunk@25282
git-svn-id: http://core.svn.wordpress.org/trunk@25246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 17:01:09 +00:00 |
|
Andrew Nacin
|
8b91d32f98
|
Inline documentation for hooks in xmlrpc.php.
The old link for RSD is dead; update to the new one.
props bftrick.
see #25229.
Built from https://develop.svn.wordpress.org/trunk@25281
git-svn-id: http://core.svn.wordpress.org/trunk@25245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 16:56: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 |
|
Andrew Nacin
|
5e0040a6ca
|
Add new ajax_query_attachments_args filter.
props alex-ye.
fixes #24285.
Built from https://develop.svn.wordpress.org/trunk@25279
git-svn-id: http://core.svn.wordpress.org/trunk@25243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 15:18:09 +00:00 |
|
Sergey Biryukov
|
897ddbd76c
|
Use correct array key for filling the attachment title in image_attachment_fields_to_save(). props pross.
Use wp_basename() to avoid issues with UTF-8 characters.
fixes #25236.
Built from https://develop.svn.wordpress.org/trunk@25277
git-svn-id: http://core.svn.wordpress.org/trunk@25242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 14:10: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 |
|
Dion Hulse
|
db6cf37f91
|
WP_Filesystem: FTP Sockets: Avoid using the file_exists() / is_exists() / exists() PemFTP functionality as it's buggy on ncFTPd servers, switching to listing the file instead which is what we use for the FTP Extension transport. Fixes #14049
Built from https://develop.svn.wordpress.org/trunk@25274
git-svn-id: http://core.svn.wordpress.org/trunk@25240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-06 08:29: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 |
|
Lance Willett
|
20594f082e
|
Twenty Fourteen: further styling for medialement players, props iamtakashi. Fixes #25209.
Built from https://develop.svn.wordpress.org/trunk@25267
git-svn-id: http://core.svn.wordpress.org/trunk@25233 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 22:15: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 |
|
Andrew Nacin
|
5cb01f0b9b
|
Stop using get_blogaddress_by_domain() when updating the siteurl/homeurl from the network admin.
props jeremyfelt, SergeyBiryukov.
fixes #18242. see #25235.
Built from https://develop.svn.wordpress.org/trunk@25261
git-svn-id: http://core.svn.wordpress.org/trunk@25229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 18:49:09 +00:00 |
|
Lance Willett
|
3971e0980e
|
Twenty Fourteen: add styling for medialement players, props celloexpressions. See #25209.
Built from https://develop.svn.wordpress.org/trunk@25260
git-svn-id: http://core.svn.wordpress.org/trunk@25228 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 17:51:09 +00:00 |
|
Lance Willett
|
a94b0de749
|
Twenty Fourteen: break long words in comment content (not just anchor text). Fixes #24890, props rickalee.
Built from https://develop.svn.wordpress.org/trunk@25259
git-svn-id: http://core.svn.wordpress.org/trunk@25227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 17:45:08 +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
|
bb0761e475
|
Remove redundant checks in some update functions. Adds some readability/coding standards cleanup.
Props miqrogroove, azaozz.
Fixes #22828.
Built from https://develop.svn.wordpress.org/trunk@25256
git-svn-id: http://core.svn.wordpress.org/trunk@25224 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 17:05:15 +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
|
31f26dc3ce
|
Remove lingering instances of call time pass-by-reference, limited to instances of callable - use $this instead of &$this .
Props jdgrimes.
See #25160.
Built from https://develop.svn.wordpress.org/trunk@25254
git-svn-id: http://core.svn.wordpress.org/trunk@25222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 16:34:09 +00:00 |
|
Andrew Nacin
|
747e022460
|
Document the trackback_post hook in wp-trackback.php.
props bananastalktome.
see #25229.
Built from https://develop.svn.wordpress.org/trunk@25253
git-svn-id: http://core.svn.wordpress.org/trunk@25221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 16:23:09 +00:00 |
|
Andrew Nacin
|
5a1109b40b
|
Hook docs for admin-footer.php.
props natejacobs.
see #25229.
Built from https://develop.svn.wordpress.org/trunk@25252
git-svn-id: http://core.svn.wordpress.org/trunk@25220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 16:21:09 +00:00 |
|
Andrew Nacin
|
5432d10c58
|
Fixes for hook inline docs in wp-comments-post.php. see #25229.
Built from https://develop.svn.wordpress.org/trunk@25251
git-svn-id: http://core.svn.wordpress.org/trunk@25219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 16:12:09 +00:00 |
|
Andrew Nacin
|
4bb33bf19c
|
Inline documentation for the welcome_panel hook.
props natejacobs.
see #25229.
Built from https://develop.svn.wordpress.org/trunk@25250
git-svn-id: http://core.svn.wordpress.org/trunk@25218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 16:07:09 +00:00 |
|
Andrew Nacin
|
e5646d21e6
|
Inline documentation for hooks in wp-comments-post.php.
props rzen.
see #25229.
Built from https://develop.svn.wordpress.org/trunk@25249
git-svn-id: http://core.svn.wordpress.org/trunk@25217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-05 16:05:09 +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
|
ffe8f1b13a
|
Remove unnecessary checks before setting $wp_settings_* arrays. Adds unit test for setting a nonexistent variable to a multi-dimensional array .
Props scribu.
Fixes #17884.
Built from https://develop.svn.wordpress.org/trunk@25240
git-svn-id: http://core.svn.wordpress.org/trunk@25210 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-04 19:07:09 +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 |
|
Scott Taylor
|
3b1b03e4c4
|
Convert category__and to category__in (less expensive) and unset it when only one category is passed. Adds unit tests.
Fixes #24245.
Built from https://develop.svn.wordpress.org/trunk@25238
git-svn-id: http://core.svn.wordpress.org/trunk@25208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-04 18:17:09 +00:00 |
|
Andrew Nacin
|
4e30ca031b
|
Clarify a database upgrade string, for 3.7.
props SergeyBiryukov.
fixes #24845.
Built from https://develop.svn.wordpress.org/trunk@25237
git-svn-id: http://core.svn.wordpress.org/trunk@25207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-04 17:50:09 +00:00 |
|
Andrew Nacin
|
71b640dfa4
|
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.
Built from https://develop.svn.wordpress.org/trunk@25235
git-svn-id: http://core.svn.wordpress.org/trunk@25205 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2013-09-04 17:44:09 +00:00 |
|