Ticket #16041: 16041.001.diff
File 16041.001.diff, 941 bytes (added by , 14 years ago) |
---|
-
wp-includes/general-template.php
620 620 * Display or retrieve page title for post. 621 621 * 622 622 * This is optimized for single.php template file for displaying the post title. 623 * Only useful for posts, does not support pages for example.624 623 * 625 624 * It does not support placing the separator after the title, but by leaving the 626 625 * prefix parameter empty, you can set the title separator manually. The prefix … … 634 633 * @return string|null Title when retrieving, null when displaying or failure. 635 634 */ 636 635 function single_post_title($prefix = '', $display = true) { 637 global $post;636 $_post = get_queried_object(); 638 637 639 if ( ! $post )640 $_post = get_queried_object();641 else642 $_post = $post;643 644 638 if ( !isset($_post->post_title) ) 645 639 return; 646 640