WordPress.org

Make WordPress Core

Ticket #22406: 22406.patch

File 22406.patch, 1.6 KB (added by SergeyBiryukov, 6 years ago)
  • wp-includes/link-template.php

     
    12461246 * @param array|string $excluded_categories Optional. Array or comma-separated list of excluded category IDs.
    12471247 */
    12481248function adjacent_posts_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '') {
    1249         echo get_adjacent_post_rel_link($title, $in_same_cat, $excluded_categories = '', true);
    1250         echo get_adjacent_post_rel_link($title, $in_same_cat, $excluded_categories = '', false);
     1249        echo get_adjacent_post_rel_link($title, $in_same_cat, $excluded_categories, true);
     1250        echo get_adjacent_post_rel_link($title, $in_same_cat, $excluded_categories, false);
    12511251}
    12521252
    12531253/**
     
    12731273 * @param array|string $excluded_categories Optional. Array or comma-separated list of excluded category IDs.
    12741274 */
    12751275function next_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '') {
    1276         echo get_adjacent_post_rel_link($title, $in_same_cat, $excluded_categories = '', false);
     1276        echo get_adjacent_post_rel_link($title, $in_same_cat, $excluded_categories, false);
    12771277}
    12781278
    12791279/**
     
    12861286 * @param array|string $excluded_categories Optional. Array or comma-separated list of excluded category IDs.
    12871287 */
    12881288function prev_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '') {
    1289         echo get_adjacent_post_rel_link($title, $in_same_cat, $excluded_categories = '', true);
     1289        echo get_adjacent_post_rel_link($title, $in_same_cat, $excluded_categories, true);
    12901290}
    12911291
    12921292/**