[wp-trac] [WordPress Trac] #22406: adjacent_posts_rel_link ignores $excluded_categories argument

WordPress Trac noreply at wordpress.org
Sat Nov 10 13:16:32 UTC 2012


#22406: adjacent_posts_rel_link ignores $excluded_categories argument
-----------------------------+--------------------------
 Reporter:  adelval          |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:  3.4.2            |   Severity:  normal
 Keywords:  needs-patch      |
-----------------------------+--------------------------
 The ticket subject is pretty obvious, I think, just by looking at the
 source in link-template.php:

 {{{
 function adjacent_posts_rel_link($title = '%title', $in_same_cat = false,
 $excluded_categories = '') {
     echo get_adjacent_post_rel_link($title, $in_same_cat,
 $excluded_categories = '', true);
     echo get_adjacent_post_rel_link($title, $in_same_cat,
 $excluded_categories = '', false);
 }
 }}}

 The $excluded_categories should be passed to get_adjacent_post_rel_link
 just as they come, not as an empty string.

 Possible use cases of having the bug fixed:
 - want to exclude a category from almost everywhere (because it has a
 single place in the blog), but it keeps appearing in the rel links.
 - don't want to help robots discover posts from those categories through
 the rel links (robots.txt is not enforceable).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22406>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list