WordPress/wp-includes
Boone Gorges a224ff7d9b Improve 'orderby' syntax for WP_Comment_Query.
Since [29027], `WP_Query` has supported an array of values for the `$orderby`
parameter, with field names as array keys and ASC/DESC as the array values.
This changeset introduces the same syntax to `WP_Comment_Query`.

We leverage the new support for multiple ORDER BY clauses to fix a bug that
causes comments to be queried in an indeterminate order when sorting by the
default `comment_date_gmt` and comments share the same value for
`comment_date_gmt`. By always including a `comment_ID` subclause at the end of
the ORDER BY statement, we ensure that comments always have a unique fallback
for sorting.

This changeset also includes improvements paralleling those introduced to
`WP_Query` in [31312] and [31340], which allow `$orderby` to accept array keys
from specific `$meta_query` clauses. This change lets devs sort by multiple
clauses of an associated meta query. See #31045.

Fixes #30478. See #31265.
Built from https://develop.svn.wordpress.org/trunk@31467


git-svn-id: http://core.svn.wordpress.org/trunk@31448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-16 14:10:27 +00:00
..
certificates
css Update grunt-cssjanus to 0.2.4, we no longer need the fork. 2015-02-11 22:28:29 +00:00
fonts
ID3
images TwentyFifteen: 2014-11-25 06:12:22 +00:00
js TinyMCE wpView: fire nodeChanged when an embedded iframe is resized so we can adjust the editor height and other UI components. Props iseulde, fixes #30646. 2015-02-15 18:19:27 +00:00
pomo Add missing @params to src/wp-includes/pomo files. 2014-11-30 21:41:22 +00:00
SimplePie SimplePie: Fix use of DOMElement as array. 2013-09-11 04:02:10 +00:00
Text
theme-compat Improve various hook and filter docs so they are correctly parsed for the code reference. 2014-12-06 21:32:24 +00:00
admin-bar.php Toolbar: Remove title attributes from 'About WordPress', 'Add New', and 'My Account' items. 2015-02-13 20:20:27 +00:00
atomlib.php
author-template.php There are some random add_action() and add_filter() calls littered around some files in wp-includes/. These should be moved to wp-includes/default-filters.php with the rest of the registered hooks. It seems like this was the best practice for awhile and then we randomly stopped. This file loads way before any of the includes, so the hooks will be registered for any request that loads WordPress, even SHORTINIT - a lot of the hooks registered won't run anyways (that's already the case). 2015-01-12 16:40:23 +00:00
bookmark-template.php
bookmark.php
cache.php
canonical.php Replace hardcoded usage of comment-page with the comment pagination base. 2015-02-14 03:48:27 +00:00
capabilities.php [31210] broke Supportflow on dotorg, which declares these methods as protected. Switch to protected for the noop methods. The subclasses can make them more visible using public. 2015-01-16 18:37:24 +00:00
category-template.php Update the DocBlock for wp_dropdown_categories() to reflect that the entire $args parameter array is optional instead of individual arugments. 2015-02-06 09:04:22 +00:00
category.php Add inline @see tags to the docs for the get_categories_taxonomy hook. 2014-11-17 17:37:23 +00:00
class-feed.php In PHP 5.0.0, is_a() became deprecated in favour of the instanceof operator. Calling is_a() would result in an E_STRICT warning. 2015-01-16 01:06:24 +00:00
class-http.php HTTP API: Fix an issue where the limit_response_size parameter wasn't working properly with large documents and the cURL transport. 2015-01-29 03:58:23 +00:00
class-IXR.php XML-RPC: Send 405 Method Not Allowed for GET requests. 2014-12-30 20:41:23 +00:00
class-json.php
class-oembed.php Use RegEx instead of DOMDocument when protecting <pre> tags in WP_oEmbed::_strip_newlines(). It is incredibly difficult to maintain character encoding and whitespace when parsing via DOMDocument. 2015-02-11 22:18:53 +00:00
class-phpass.php
class-phpmailer.php
class-pop3.php
class-simplepie.php
class-smtp.php
class-snoopy.php
class-wp-admin-bar.php
class-wp-ajax-response.php
class-wp-customize-control.php
class-wp-customize-manager.php Customizer: Restore showing a login form inside the previewer if an user is logged out. 2015-02-11 22:13:25 +00:00
class-wp-customize-panel.php
class-wp-customize-section.php Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value. Constructors do not have meaningful return values, anything that is returned from here is discarded. 2015-01-10 06:54:23 +00:00
class-wp-customize-setting.php Customizer: Introduce an API to create WP_Customize_Settings for dynamically-created settings. 2015-02-08 23:11:25 +00:00
class-wp-customize-widgets.php Customizer: Introduce an API to create WP_Customize_Settings for dynamically-created settings. 2015-02-08 23:11:25 +00:00
class-wp-editor.php TinyMCE: add breaking out of blockquotes by pressing Enter twice. Togging blockquote on|off with the button and the shortcut is unchanged. Props avryl, fixes #23110. 2015-01-16 23:36:22 +00:00
class-wp-embed.php
class-wp-error.php In PHP 5.0.0, is_a() became deprecated in favour of the instanceof operator. Calling is_a() would result in an E_STRICT warning. 2015-01-16 01:06:24 +00:00
class-wp-http-ixr-client.php
class-wp-image-editor-gd.php
class-wp-image-editor-imagick.php
class-wp-image-editor.php Fix some @param docs that have chars too close them. 2015-01-10 06:57:22 +00:00
class-wp-theme.php In PHP 5.0.0, is_a() became deprecated in favour of the instanceof operator. Calling is_a() would result in an E_STRICT warning. 2015-01-16 01:06:24 +00:00
class-wp-walker.php
class-wp-xmlrpc-server.php Fix a typo in [30138]. 2015-01-25 09:48:21 +00:00
class-wp.php [31210] broke Supportflow on dotorg, which declares these methods as protected. Switch to protected for the noop methods. The subclasses can make them more visible using public. 2015-01-16 18:37:24 +00:00
class.wp-dependencies.php
class.wp-scripts.php Add support for IE conditional comments for WP_Scripts to match the functionality of WP_Styles, including unit tests. Props filosofo, aaroncampbell, ethitter, georgestephanis, valendesigns. Fixes #16024. 2015-01-17 01:37:22 +00:00
class.wp-styles.php
comment-template.php Replace hardcoded usage of comment-page with the comment pagination base. 2015-02-14 03:48:27 +00:00
comment.php Improve 'orderby' syntax for WP_Comment_Query. 2015-02-16 14:10:27 +00:00
compat.php In PHP 5.0.0, is_a() became deprecated in favour of the instanceof operator. Calling is_a() would result in an E_STRICT warning. 2015-01-16 01:06:24 +00:00
cron.php Improve various @param docs for src/wp-includes/*. 2014-12-01 01:34:24 +00:00
date.php Clarify inline documentation for WP_Date_Query to better explain the relationship between an individual clause's 'compare' argument and various integer-based date arguments. 2015-02-05 06:17:21 +00:00
default-constants.php
default-filters.php Split shared taxonomy terms on term update. 2015-02-11 19:42:25 +00:00
default-widgets.php Add 'widget_nav_menu_args' filter for Custom Menu widget arguments. 2015-02-03 02:56:23 +00:00
deprecated.php @param cleanup: 2015-01-16 19:03:23 +00:00
feed-atom-comments.php
feed-atom.php
feed-rdf.php
feed-rss2-comments.php
feed-rss2.php
feed-rss.php
feed.php
formatting.php Texturize: Add "em" as a cockney term, so that "'em" is texturized with an apostrophe, instead of an open quote. 2015-01-20 18:44:26 +00:00
functions.php Improve documentation for return value of wp_list_pluck(). 2015-02-13 16:52:27 +00:00
functions.wp-scripts.php Add support for IE conditional comments for WP_Scripts to match the functionality of WP_Styles, including unit tests. Props filosofo, aaroncampbell, ethitter, georgestephanis, valendesigns. Fixes #16024. 2015-01-17 01:37:22 +00:00
functions.wp-styles.php Make _wp_scripts_maybe_doing_it_wrong( $function ) "private". 2015-01-16 02:42:22 +00:00
general-template.php Provide a secondary sort order for wp_get_archives() when type=postbypost. 2015-02-13 17:00:27 +00:00
http.php
kses.php Add <s> to $allowedtags in KSES. 2015-01-16 16:07:23 +00:00
l10n.php Avoid a PHP notice in wp_install_language_form() and wp_dropdown_languages() if the language doesn't have a ISO 639-1 code. 2015-02-13 11:23:26 +00:00
link-template.php Replace hardcoded usage of comment-page with the comment pagination base. 2015-02-14 03:48:27 +00:00
load.php Add useremail and userslugs as global cache groups. fixes #31243. 2015-02-06 03:24:23 +00:00
locale.php
media-template.php
media.php Add changelog entries to the post_gallery and post_playlist hook docs for the $instance variable that was added in [31304]. 2015-01-31 00:33:22 +00:00
meta.php Modify `meta_query orderby syntax to use array keys as clause "handles". 2015-02-05 19:38:23 +00:00
ms-blogs.php Remove leading space from the definition of a global cache group. 2015-02-06 03:26:22 +00:00
ms-default-constants.php
ms-default-filters.php There are some random add_action() and add_filter() calls littered around some files in wp-includes/. These should be moved to wp-includes/default-filters.php with the rest of the registered hooks. It seems like this was the best practice for awhile and then we randomly stopped. This file loads way before any of the includes, so the hooks will be registered for any request that loads WordPress, even SHORTINIT - a lot of the hooks registered won't run anyways (that's already the case). 2015-01-12 16:40:23 +00:00
ms-deprecated.php [31210] broke Supportflow on dotorg, which declares these methods as protected. Switch to protected for the noop methods. The subclasses can make them more visible using public. 2015-01-16 18:37:24 +00:00
ms-files.php
ms-functions.php Replace generic "Dear user" greeting in email notifications with a more personalized one. 2015-02-10 07:47:27 +00:00
ms-load.php
ms-settings.php
nav-menu-template.php There are some random add_action() and add_filter() calls littered around some files in wp-includes/. These should be moved to wp-includes/default-filters.php with the rest of the registered hooks. It seems like this was the best practice for awhile and then we randomly stopped. This file loads way before any of the includes, so the hooks will be registered for any request that loads WordPress, even SHORTINIT - a lot of the hooks registered won't run anyways (that's already the case). 2015-01-12 16:40:23 +00:00
nav-menu.php
option.php Add $expiration as a parameter to the pre_set_transient_{$transient} filter. 2015-02-11 17:12:26 +00:00
pluggable-deprecated.php
pluggable.php Improve return and parameter documentation for check_admin_referer(), check_ajax_referer(), and wp_verify_nonce(). 2015-02-09 04:57:27 +00:00
plugin.php
post-formats.php There are some random add_action() and add_filter() calls littered around some files in wp-includes/. These should be moved to wp-includes/default-filters.php with the rest of the registered hooks. It seems like this was the best practice for awhile and then we randomly stopped. This file loads way before any of the includes, so the hooks will be registered for any request that loads WordPress, even SHORTINIT - a lot of the hooks registered won't run anyways (that's already the case). 2015-01-12 16:40:23 +00:00
post-template.php Always pass back the custom classes get_post_class() was called with, even if the post was not found. 2015-02-11 04:00:26 +00:00
post-thumbnail-template.php
post.php Update the descriptions for transition_post_status() and the {$new_stats}_{$post->post_type} hook with more information about the expected behavior of transitioning post statuses. 2015-02-14 09:11:28 +00:00
query.php More careful type conversion in WP_Query is_*() methods. 2015-02-14 02:09:25 +00:00
registration-functions.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
registration.php
revision.php
rewrite.php Replace hardcoded usage of comment-page with the comment pagination base. 2015-02-14 03:48:27 +00:00
rss-functions.php
rss.php
script-loader.php Shiny Updates: Replace $.post() calls with wp.ajax.post(), and clean up a bunch of the now unnecessary code. 2015-02-11 05:06:28 +00:00
session.php Fix some internal types that are passed to functions to avoid changing the acceptable types passed as arguments to those functions: 2015-01-16 22:51:21 +00:00
shortcodes.php Remove a stray period introduced in [31242]. 2015-01-19 08:47:24 +00:00
taxonomy.php Return a WP_Error if an empty name is provided when registering a taxonomy. 2015-02-13 16:27:26 +00:00
template-loader.php
template.php In PHP 5.0.0, is_a() became deprecated in favour of the instanceof operator. Calling is_a() would result in an E_STRICT warning. 2015-01-16 01:06:24 +00:00
theme.php Introduce has_header_image() to check whether a header image is set. 2015-01-17 06:34:23 +00:00
update.php Revert [30696] pending further investigation. 2015-02-09 21:50:29 +00:00
user.php Add orderby=meta_value_num support to WP_User_Query. 2015-02-08 16:59:22 +00:00
vars.php
version.php Improve 'orderby' syntax for WP_Comment_Query. 2015-02-16 14:10:27 +00:00
widgets.php In PHP 5.0.0, is_a() became deprecated in favour of the instanceof operator. Calling is_a() would result in an E_STRICT warning. 2015-01-16 01:06:24 +00:00
wlwmanifest.xml
wp-db.php WPDB: When checking to see if we can use utf8mb4, we also need to make sure PHP's MySQL client library is capable of using utf8mb4. 2015-02-09 22:28:28 +00:00
wp-diff.php Add a missing description for the $_diff_threshold property in the WP_Text_Diff_Renderer_Table class. 2015-01-29 11:36:22 +00:00