Changeset 63379
- Timestamp:
- 08/27/2026 10:54:07 PM (6 weeks ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 4 edited
-
phpstan.neon.dist (modified) (1 diff)
-
src/wp-includes/class-wp-widget.php (modified) (1 diff)
-
src/wp-includes/general-template.php (modified) (6 diffs)
-
src/wp-includes/link-template.php (modified) (3 diffs)
-
tests/phpstan/baselines/return.missing.neon (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpstan.neon.dist
r63367 r63379 77 77 - tests/phpstan/baselines/property.private.neon 78 78 - tests/phpstan/baselines/property.protected.neon 79 - tests/phpstan/baselines/return.missing.neon80 79 - tests/phpstan/baselines/return.type.neon 81 80 - tests/phpstan/baselines/return.unusedType.neon -
trunk/src/wp-includes/class-wp-widget.php
r62178 r63379 139 139 * 140 140 * @param array $instance The settings for the particular instance of the widget. 141 * @return string|null Default return is 'noform'. A subclass may opt to return null. 141 * @return string|void Default return is 'noform'. A subclass which echoes its own 142 * form returns nothing. 142 143 */ 143 144 public function form( $instance ) { -
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 -
trunk/src/wp-includes/link-template.php
r63378 r63379 1165 1165 $link = $before . apply_filters( 'edit_term_link', $link, $term->term_id ) . $after; 1166 1166 1167 if ( $display ) { 1168 echo $link; 1169 } else { 1167 if ( ! $display ) { 1170 1168 return $link; 1171 1169 } 1170 1171 echo $link; 1172 1173 return null; 1172 1174 } 1173 1175 … … 2548 2550 $output = $link ? esc_url( $link ) : ''; 2549 2551 2550 if ( $display ) { 2551 echo $output; 2552 } else { 2552 if ( ! $display ) { 2553 2553 return $output; 2554 2554 } 2555 2556 echo $output; 2557 2558 return null; 2555 2559 } 2556 2560 … … 2658 2662 $output = $link ? esc_url( $link ) : ''; 2659 2663 2660 if ( $display ) { 2661 echo $output; 2662 } else { 2664 if ( ! $display ) { 2663 2665 return $output; 2664 2666 } 2667 2668 echo $output; 2669 2670 return null; 2665 2671 } 2666 2672
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)