Formatting cleanups. Props Viper007Bond. fixes #8703
git-svn-id: http://svn.automattic.com/wordpress/trunk@11062 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7fd61e13df
commit
4789a46bfe
|
@ -940,7 +940,7 @@ function get_adjacent_post_rel_link($title = '%title', $in_same_cat = false, $ex
|
|||
$title = apply_filters('the_title', $title, $post);
|
||||
|
||||
$link = $previous ? "<link rel='prev' title='" : "<link rel='next' title='";
|
||||
$link .= $title;
|
||||
$link .= attribute_escape( $title );
|
||||
$link .= "' href='" . get_permalink($post) . "' />\n";
|
||||
|
||||
$adjacent = $previous ? 'previous' : 'next';
|
||||
|
@ -1016,14 +1016,12 @@ function get_boundary_post($in_same_cat = false, $excluded_categories = '', $sta
|
|||
if ( !empty($excluded_categories) ) {
|
||||
$excluded_categories = array_map('intval', explode(',', $excluded_categories));
|
||||
|
||||
if ( !empty($cat_array) ) {
|
||||
if ( !empty($cat_array) )
|
||||
$excluded_categories = array_diff($excluded_categories, $cat_array);
|
||||
}
|
||||
|
||||
$inverse_cats = array();
|
||||
foreach ( $excluded_categories as $excluded_category) {
|
||||
foreach ( $excluded_categories as $excluded_category)
|
||||
$inverse_cats[] = $excluded_category * -1;
|
||||
}
|
||||
$excluded_categories = $inverse_cats;
|
||||
}
|
||||
}
|
||||
|
@ -1066,7 +1064,7 @@ function get_boundary_post_rel_link($title = '%title', $in_same_cat = false, $ex
|
|||
$title = apply_filters('the_title', $title, $post);
|
||||
|
||||
$link = $start ? "<link rel='start' title='" : "<link rel='end' title='";
|
||||
$link .= $title;
|
||||
$link .= attribute_escape($title);
|
||||
$link .= "' href='" . get_permalink($post) . "' />\n";
|
||||
|
||||
$boundary = $start ? 'start' : 'end';
|
||||
|
@ -1129,7 +1127,7 @@ function get_parent_post_rel_link($title = '%title') {
|
|||
$title = apply_filters('the_title', $title, $post);
|
||||
|
||||
$link = "<link rel='up' title='";
|
||||
$link .= $title;
|
||||
$link .= attribute_escape( $title );
|
||||
$link .= "' href='" . get_permalink($post) . "' />\n";
|
||||
|
||||
return apply_filters( "parent_post_rel_link", $link );
|
||||
|
|
Loading…
Reference in New Issue