Changeset 41589 for trunk/src/wp-includes/link-template.php
- Timestamp:
- 09/24/2017 11:00:08 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r41584 r41589 1708 1708 * @since 4.4.0 Added the `$taxonomy` and `$post` parameters. 1709 1709 * 1710 * @param string $where The `WHERE` clause in the SQL.1711 * @param bool $in_same_term Whether post should be in a same taxonomy term.1712 * @param array $excluded_terms Array of excluded term IDs.1713 * @param string $taxonomy Taxonomy. Used to identify the term used when `$in_same_term` is true.1710 * @param string $where The `WHERE` clause in the SQL. 1711 * @param bool $in_same_term Whether post should be in a same taxonomy term. 1712 * @param array $excluded_terms Array of excluded term IDs. 1713 * @param string $taxonomy Taxonomy. Used to identify the term used when `$in_same_term` is true. 1714 1714 * @param WP_Post $post WP_Post object. 1715 1715 */ … … 1724 1724 * @since 2.5.0 1725 1725 * @since 4.4.0 Added the `$post` parameter. 1726 * @since 4.9.0 Added the `$order` parameter. 1726 1727 * 1727 1728 * @param string $order_by The `ORDER BY` clause in the SQL. 1728 1729 * @param WP_Post $post WP_Post object. 1729 */ 1730 $sort = apply_filters( "get_{$adjacent}_post_sort", "ORDER BY p.post_date $order LIMIT 1", $post ); 1730 * @param string $order Sort order. 'DESC' for previous post, 'ASC' for next. 1731 */ 1732 $sort = apply_filters( "get_{$adjacent}_post_sort", "ORDER BY p.post_date $order LIMIT 1", $post, $order ); 1731 1733 1732 1734 $query = "SELECT p.ID FROM $wpdb->posts AS p $join $where $sort";
Note: See TracChangeset
for help on using the changeset viewer.