Changeset 17187
- Timestamp:
- 12/30/2010 09:10:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r17107 r17187 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 … … 635 634 */ 636 635 function single_post_title($prefix = '', $display = true) { 637 global $post; 638 639 if ( ! $post ) 640 $_post = get_queried_object(); 641 else 642 $_post = $post; 636 $_post = get_queried_object(); 643 637 644 638 if ( !isset($_post->post_title) )
Note: See TracChangeset
for help on using the changeset viewer.