WordPress.org

Make WordPress Core

Changeset 27754


Ignore:
Timestamp:
03/26/2014 10:31:04 PM (6 years ago)
Author:
nacin
Message:

Fix excluded_terms passed to get_adjacent_posts_rel_link().

props adelval.
fixes #22406.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r27692 r27754  
    16051605 */
    16061606function adjacent_posts_rel_link( $title = '%title', $in_same_term = false, $excluded_terms = '', $taxonomy = 'category' ) {
    1607     echo get_adjacent_post_rel_link( $title, $in_same_term, $excluded_terms = '', true, $taxonomy );
    1608     echo get_adjacent_post_rel_link( $title, $in_same_term, $excluded_terms = '', false, $taxonomy );
     1607    echo get_adjacent_post_rel_link( $title, $in_same_term, $excluded_terms, true, $taxonomy );
     1608    echo get_adjacent_post_rel_link( $title, $in_same_term, $excluded_terms, false, $taxonomy );
    16091609}
    16101610
     
    16331633 */
    16341634function next_post_rel_link( $title = '%title', $in_same_term = false, $excluded_terms = '', $taxonomy = 'category' ) {
    1635     echo get_adjacent_post_rel_link( $title, $in_same_term, $excluded_terms = '', false, $taxonomy );
     1635    echo get_adjacent_post_rel_link( $title, $in_same_term, $excluded_terms, false, $taxonomy );
    16361636}
    16371637
     
    16471647 */
    16481648function prev_post_rel_link( $title = '%title', $in_same_term = false, $excluded_terms = '', $taxonomy = 'category' ) {
    1649     echo get_adjacent_post_rel_link( $title, $in_same_term, $excluded_terms = '', true, $taxonomy );
     1649    echo get_adjacent_post_rel_link( $title, $in_same_term, $excluded_terms, true, $taxonomy );
    16501650}
    16511651
Note: See TracChangeset for help on using the changeset viewer.