Ticket #1835: 1835.diff
File 1835.diff, 987 bytes (added by , 18 years ago) |
---|
-
link-template.php
387 387 if ( !$post ) 388 388 return; 389 389 390 $title = apply_filters('the_title', $post->post_title, $post); 390 $title = $post->post_title; 391 392 if ( empty($post->post_title) ) 393 $title = 'Previous Post'; 394 395 $title = apply_filters('the_title', $title, $post); 391 396 $string = '<a href="'.get_permalink($post->ID).'">'; 392 397 $link = str_replace('%title', $title, $link); 393 398 $link = $pre . $string . $link . '</a>'; … … 403 408 if ( !$post ) 404 409 return; 405 410 406 $title = apply_filters('the_title', $post->post_title, $post); 411 $title = $post->post_title; 412 413 if ( empty($post->post_title) ) 414 $title = 'Next Post'; 415 416 $title = apply_filters('the_title', $title, $post); 407 417 $string = '<a href="'.get_permalink($post->ID).'">'; 408 418 $link = str_replace('%title', $title, $link); 409 419 $link = $string . $link . '</a>';