From 5fffb5e91111fce3257d24cfb904df4666942ef7 Mon Sep 17 00:00:00 2001 From: Konstantin Kovshenin Date: Thu, 26 Jun 2014 11:44:29 +0400 Subject: [PATCH] Add a non-breaking space to _s_post_nav(). Sometimes the title length of a previous or next post would cause the arrow (larr/rarr) in the link to be wrapped to the next line. Adding a non-breaking space between the title and the arrow will stick it to the last word in the title. --- inc/template-tags.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index 0ff39e25..41907712 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -52,8 +52,8 @@ function _s_post_nav() {

', _x( ' %title', 'Previous post link', '_s' ) ); - next_post_link( '', _x( '%title ', 'Next post link', '_s' ) ); + previous_post_link( '', _x( ' %title', 'Previous post link', '_s' ) ); + next_post_link( '', _x( '%title ', 'Next post link', '_s' ) ); ?>