Changeset 63379 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 08/27/2026 10:54:07 PM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/general-template.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r63378 r63379 1674 1674 1675 1675 // Send it out. 1676 if ( $display ) { 1677 echo $title; 1678 } else { 1676 if ( ! $display ) { 1679 1677 return $title; 1680 1678 } 1679 1680 echo $title; 1681 1682 return null; 1681 1683 } 1682 1684 … … 1713 1715 */ 1714 1716 $title = apply_filters( 'single_post_title', $_post->post_title, $_post ); 1715 if ( $display ) { 1716 echo $prefix . $title; 1717 } else { 1717 1718 if ( ! $display ) { 1718 1719 return $prefix . $title; 1719 1720 } 1721 1722 echo $prefix . $title; 1723 1724 return null; 1720 1725 } 1721 1726 … … 1754 1759 $title = apply_filters( 'post_type_archive_title', $post_type_obj->labels->name, $post_type ); 1755 1760 1756 if ( $display ) { 1757 echo $prefix . $title; 1758 } else { 1761 if ( ! $display ) { 1759 1762 return $prefix . $title; 1760 1763 } 1764 1765 echo $prefix . $title; 1766 1767 return null; 1761 1768 } 1762 1769 … … 1850 1857 } 1851 1858 1852 if ( $display ) { 1853 echo $prefix . $term_name; 1854 } else { 1859 if ( ! $display ) { 1855 1860 return $prefix . $term_name; 1856 1861 } 1862 1863 echo $prefix . $term_name; 1864 1865 return null; 1857 1866 } 1858 1867 … … 2914 2923 $the_date = apply_filters( 'the_date', $the_date, $format, $before, $after ); 2915 2924 2916 if ( $display ) { 2917 echo $the_date; 2918 } else { 2925 if ( ! $display ) { 2919 2926 return $the_date; 2920 2927 } 2928 2929 echo $the_date; 2930 2931 return null; 2921 2932 } 2922 2933 … … 2982 2993 $the_modified_date = apply_filters( 'the_modified_date', $the_modified_date, $format, $before, $after ); 2983 2994 2984 if ( $display ) { 2985 echo $the_modified_date; 2986 } else { 2995 if ( ! $display ) { 2987 2996 return $the_modified_date; 2988 2997 } 2998 2999 echo $the_modified_date; 3000 3001 return null; 2989 3002 } 2990 3003
Note:
See TracChangeset
for help on using the changeset viewer.