Changeset 61768
- Timestamp:
- 02/27/2026 11:28:17 PM (5 days ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/general-template.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r61719 r61768 1339 1339 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1340 1340 * @param string $seplocation Optional. Location of the separator (either 'left' or 'right'). 1341 * @return string| void String when `$display` is false, nothingotherwise.1341 * @return string| otherwise. 1342 1342 */ 1343 1343 function wp_title( $sep = '»', $display = true, $seplocation = '' ) { … … 1490 1490 * @param string $prefix Optional. What to display before the title. 1491 1491 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1492 * @return string| voidTitle when retrieving.1492 * @return string| Title when retrieving. 1493 1493 */ 1494 1494 function single_post_title( $prefix = '', $display = true ) { … … 1496 1496 1497 1497 if ( ! isset( $_post->post_title ) ) { 1498 return ;1498 return; 1499 1499 } 1500 1500 … … 1525 1525 * @param string $prefix Optional. What to display before the title. 1526 1526 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1527 * @return string| void Title when retrieving, null when displaying orfailure.1527 * @return string| failure. 1528 1528 */ 1529 1529 function post_type_archive_title( $prefix = '', $display = true ) { 1530 1530 if ( ! is_post_type_archive() ) { 1531 return ;1531 return; 1532 1532 } 1533 1533 … … 1567 1567 * @param string $prefix Optional. What to display before the title. 1568 1568 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1569 * @return string| voidTitle when retrieving.1569 * @return string| Title when retrieving. 1570 1570 */ 1571 1571 function single_cat_title( $prefix = '', $display = true ) { … … 1584 1584 * @param string $prefix Optional. What to display before the title. 1585 1585 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1586 * @return string| voidTitle when retrieving.1586 * @return string| Title when retrieving. 1587 1587 */ 1588 1588 function single_tag_title( $prefix = '', $display = true ) { … … 1601 1601 * @param string $prefix Optional. What to display before the title. 1602 1602 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1603 * @return string| voidTitle when retrieving.1603 * @return string| Title when retrieving. 1604 1604 */ 1605 1605 function single_term_title( $prefix = '', $display = true ) { … … 1607 1607 1608 1608 if ( ! $term ) { 1609 return ;1609 return; 1610 1610 } 1611 1611 … … 1638 1638 $term_name = apply_filters( 'single_term_title', $term->name ); 1639 1639 } else { 1640 return ;1640 return; 1641 1641 } 1642 1642 1643 1643 if ( empty( $term_name ) ) { 1644 return ;1644 return; 1645 1645 } 1646 1646 … … 1666 1666 * @param string $prefix Optional. What to display before the title. 1667 1667 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1668 * @return string|false| voidFalse if there's no valid title for the month. Title when retrieving.1668 * @return string|false| False if there's no valid title for the month. Title when retrieving. 1669 1669 */ 1670 1670 function single_month_title( $prefix = '', $display = true ) { … … 2682 2682 * @param string $after Optional. Output after the date. Default empty. 2683 2683 * @param bool $display Optional. Whether to echo the date or return it. Default true. 2684 * @return string| voidString if retrieving.2684 * @return string| String if retrieving. 2685 2685 */ 2686 2686 function the_date( $format = '', $before = '', $after = '', $display = true ) { … … 2757 2757 * @param string $after Optional. Output after the date. Default empty. 2758 2758 * @param bool $display Optional. Whether to echo the date or return it. Default true. 2759 * @return string| voidString if retrieving.2759 * @return string| String if retrieving. 2760 2760 */ 2761 2761 function the_modified_date( $format = '', $before = '', $after = '', $display = true ) { … … 5167 5167 * 5168 5168 * @param string $type The type of generator to return - (html|xhtml|atom|rss2|rdf|comment|export). 5169 * @return string| voidThe HTML content for the generator.5169 * @return string| The HTML content for the generator. 5170 5170 */ 5171 5171 function get_the_generator( $type = '' ) { … … 5174 5174 $current_filter = current_filter(); 5175 5175 if ( empty( $current_filter ) ) { 5176 return ;5176 return; 5177 5177 } 5178 5178
Note: See TracChangeset
for help on using the changeset viewer.