Changeset 36078 for trunk/src/wp-includes/link-template.php
- Timestamp:
- 12/23/2015 07:56:32 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/link-template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r36011 r36078 1569 1569 $join = ''; 1570 1570 $where = ''; 1571 $adjacent = $previous ? 'previous' : 'next'; 1571 1572 1572 1573 if ( $in_same_term || ! empty( $excluded_terms ) ) { … … 1600 1601 $where .= " AND tt.term_id IN (" . implode( ',', $term_array ) . ")"; 1601 1602 } 1603 1604 /** 1605 * Filter the IDs of terms excluded from adjacent post queries. 1606 * 1607 * The dynamic portion of the hook name, `$adjacent`, refers to the type 1608 * of adjacency, 'next' or 'previous'. 1609 * 1610 * @since 4.4.0 1611 * 1612 * @param string $excluded_terms Array of excluded term IDs. 1613 */ 1614 $excluded_terms = apply_filters( "get_{$adjacent}_post_excluded_terms", $excluded_terms ); 1602 1615 1603 1616 if ( ! empty( $excluded_terms ) ) { … … 1636 1649 } 1637 1650 1638 $adjacent = $previous ? 'previous' : 'next';1639 1651 $op = $previous ? '<' : '>'; 1640 1652 $order = $previous ? 'DESC' : 'ASC'; 1641 1642 /**1643 * Filter the excluded term ids1644 *1645 * The dynamic portion of the hook name, `$adjacent`, refers to the type1646 * of adjacency, 'next' or 'previous'.1647 *1648 * @since 4.4.01649 *1650 * @param string $excluded_terms Array of excluded term IDs.1651 */1652 $excluded_terms = apply_filters( "get_{$adjacent}_post_excluded_terms", $excluded_terms );1653 1653 1654 1654 /**
Note: See TracChangeset
for help on using the changeset viewer.