Changeset 12457
- Timestamp:
- 12/19/2009 09:21:00 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r12395 r12457 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 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; 1121 1122 if ( empty($post->post_title) ) 1123 $post->post_title = $start ? __('First Post') : __('Last Post'); 1123 if ( empty($post->post_title) ) 1124 $post->post_title = $start ? __('First Post') : __('Last Post'); 1124 1125 1125 1126 $date = mysql2date(get_option('date_format'), $post->post_date);
Note: See TracChangeset
for help on using the changeset viewer.