Ticket #11490: 11490.diff
File 11490.diff, 971 bytes (added by , 15 years ago) |
---|
-
link-template.php
1113 1113 */ 1114 1114 function get_boundary_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '', $start = true) { 1115 1115 $posts = get_boundary_post($in_same_cat,$excluded_categories,$start); 1116 // If there is no post exist, stop. 1117 if ( empty($posts) ) 1118 return; 1119 1116 1120 // Even though we limited get_posts to return only 1 item it still returns an array of objects. 1117 1121 $post = $posts[0]; 1118 1122 1119 if ( empty($post ) )1120 return;1123 if ( empty($post->post_title) ) 1124 $post->post_title = $start ? __('First Post') : __('Last Post'); 1121 1125 1122 if ( empty($post->post_title) )1123 $post->post_title = $start ? __('First Post') : __('Last Post');1124 1125 1126 $date = mysql2date(get_option('date_format'), $post->post_date); 1126 1127 1127 1128 $title = str_replace('%title', $post->post_title, $title);