Changeset 63487
- Timestamp:
- 09/05/2026 12:36:18 AM (2 months ago)
- Location:
- trunk/src
- Files:
-
- 12 edited
-
wp-content/themes/twentytwenty/inc/template-tags.php (modified) (1 diff)
-
wp-includes/author-template.php (modified) (1 diff)
-
wp-includes/bookmark-template.php (modified) (1 diff)
-
wp-includes/category-template.php (modified) (2 diffs)
-
wp-includes/class-wpdb.php (modified) (4 diffs)
-
wp-includes/comment-template.php (modified) (2 diffs)
-
wp-includes/functions.php (modified) (1 diff)
-
wp-includes/general-template.php (modified) (9 diffs)
-
wp-includes/l10n.php (modified) (1 diff)
-
wp-includes/link-template.php (modified) (3 diffs)
-
wp-includes/post-template.php (modified) (4 diffs)
-
wp-includes/user.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/inc/template-tags.php
r63441 r63487 108 108 * 109 109 * @param bool $display Display or return the HTML. 110 * @return string| void The HTML when `$display` is false, null when the site has no111 * description. Nothing otherwise.110 * @return string|null|void The HTML when `$display` is false, null when the site has no 111 * description. Nothing otherwise. 112 112 * @phpstan-return ( $display is true ? void : string|null ) 113 113 */ -
trunk/src/wp-includes/author-template.php
r63441 r63487 454 454 * $args is array{ echo: false|0|''|'0', ... } 455 455 * ? string 456 * : ( $args is ''| array ? void : string|null )456 * : ( $args is ''|'0'|array ? void : string|null ) 457 457 * ) 458 458 */ -
trunk/src/wp-includes/bookmark-template.php
r63441 r63487 211 211 * $args is array{ echo: false|0|''|'0', ... } 212 212 * ? string 213 * : ( $args is ''| array ? void : string|null )213 * : ( $args is ''|'0'|array ? void : string|null ) 214 214 * ) 215 215 */ -
trunk/src/wp-includes/category-template.php
r63441 r63487 711 711 * @type bool $echo Whether or not to echo the return value. Default true. 712 712 * } 713 * @return string|string[]| void Tag cloud as a string, or as an array when the 'format' argument714 * is 'array'. Null on failure. Nothing when 'echo' is true and715 * 'format' is not 'array'.713 * @return string|string[]|null|void Tag cloud as a string, or as an array when the 'format' 714 * argument is 'array'. Null on failure. Nothing when 'echo' is 715 * true and 'format' is not 'array'. 716 716 * @phpstan-return ( 717 717 * $args is array{ format: 'array', ... } … … 719 719 * : ( $args is array{ echo: false|0|''|'0', ... } 720 720 * ? string|null 721 * : ( $args is ''| array ? void : string|string[]|null ) )721 * : ( $args is ''|'0'|array ? void : string|string[]|null ) ) 722 722 * ) 723 723 */ -
trunk/src/wp-includes/class-wpdb.php
r63420 r63487 1795 1795 * 1796 1796 * @param string $str The error to display. 1797 * @return null|false Nullif the showing of errors is enabled, false if disabled.1797 * @return void|false Void if the showing of errors is enabled, false if disabled. 1798 1798 */ 1799 1799 public function print_error( $str = '' ) { … … 1856 1856 ); 1857 1857 } 1858 1859 return null;1860 1858 } 1861 1859 … … 4069 4067 * 4070 4068 * @global string $required_mysql_version The minimum required MySQL version string. 4071 * @return WP_Error|null4069 * @return void|WP_Error Void if the server meets the minimum version, WP_Error if not. 4072 4070 */ 4073 4071 public function check_database_version() { … … 4080 4078 return new WP_Error( 'database_version', sprintf( __( '<strong>Error:</strong> WordPress %1$s requires MySQL %2$s or higher' ), $wp_version, $required_mysql_version ) ); 4081 4079 } 4082 4083 return null;4084 4080 } 4085 4081 -
trunk/src/wp-includes/comment-template.php
r63441 r63487 1245 1245 * @see get_trackback_url() 1246 1246 * 1247 * @param bool$deprecated_echo Deprecated. Use {@see get_trackback_url()}. Echo the URL or1247 * @param true $deprecated_echo Deprecated. Use {@see get_trackback_url()}. Echo the URL or 1248 1248 * return it. Default true. 1249 1249 * @return string|void The trackback URL when `$deprecated_echo` is false, nothing otherwise. 1250 1250 * @phpstan-return ( $deprecated_echo is true ? void : string ) 1251 * 1252 * @phpstan-ignore conditionalType.alwaysTrue (Typed `true` to flag the deprecated argument.) 1251 1253 */ 1252 1254 function trackback_url( $deprecated_echo = true ) { … … 2234 2236 * } 2235 2237 * @param WP_Comment[] $comments Optional. Array of WP_Comment objects. Default null. 2236 * @return string| void HTML list of comments when 'echo' is false, null when there are no2237 * comments to list. Nothing otherwise.2238 * @return string|null|void HTML list of comments when 'echo' is false, null when there are 2239 * no comments to list. Nothing otherwise. 2238 2240 * @phpstan-return ( 2239 2241 * $args is array{ echo: false|0|''|'0', ... } 2240 2242 * ? string|null 2241 * : ( $args is ''| array ? void : string|null )2243 * : ( $args is ''|'0'|array ? void : string|null ) 2242 2244 * ) 2243 2245 */ -
trunk/src/wp-includes/functions.php
r63461 r63487 8746 8746 * @param string $after Markup to output after the annotation. Default `</p>`. 8747 8747 * @param bool $display Whether to echo or return the markup. Default `true` for echo. 8748 * @return string| void Update PHP page annotation when `$display` is false, null when no8749 * annotation is available. Nothing otherwise.8748 * @return string|null|void Update PHP page annotation when `$display` is false, null when 8749 * no annotation is available. Nothing otherwise. 8750 8750 * @phpstan-return ( $display is true ? void : string|null ) 8751 8751 */ -
trunk/src/wp-includes/general-template.php
r63441 r63487 1706 1706 * @param string $prefix Optional. What to display before the title. 1707 1707 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1708 * @return string| void Title when retrieving, null on failure.1709 * Nothing when displaying.1708 * @return string|null|void Title when retrieving, null on failure. 1709 * Nothing when displaying. 1710 1710 * @phpstan-return ( $display is true ? void : string|null ) 1711 1711 */ … … 1744 1744 * @param string $prefix Optional. What to display before the title. 1745 1745 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1746 * @return string| void Title when retrieving, null on failure.1747 * Nothing when displaying.1746 * @return string|null|void Title when retrieving, null on failure. 1747 * Nothing when displaying. 1748 1748 * @phpstan-return ( $display is true ? void : string|null ) 1749 1749 */ … … 1788 1788 * @param string $prefix Optional. What to display before the title. 1789 1789 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1790 * @return string| void Title when retrieving, null on failure.1791 * Nothing when displaying.1790 * @return string|null|void Title when retrieving, null on failure. 1791 * Nothing when displaying. 1792 1792 * @phpstan-return ( $display is true ? void : string|null ) 1793 1793 */ … … 1811 1811 * @param string $prefix Optional. What to display before the title. 1812 1812 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1813 * @return string| void Title when retrieving, null on failure.1814 * Nothing when displaying.1813 * @return string|null|void Title when retrieving, null on failure. 1814 * Nothing when displaying. 1815 1815 * @phpstan-return ( $display is true ? void : string|null ) 1816 1816 */ … … 1834 1834 * @param string $prefix Optional. What to display before the title. 1835 1835 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1836 * @return string| void Title when retrieving, null on failure.1837 * Nothing when displaying.1836 * @return string|null|void Title when retrieving, null on failure. 1837 * Nothing when displaying. 1838 1838 * @phpstan-return ( $display is true ? void : string|null ) 1839 1839 */ … … 2236 2236 * @type string $w Week. Default current week. 2237 2237 * } 2238 * @return string| void Archive links when 'echo' is false, null when the post type is2239 * not viewable. Nothing otherwise.2238 * @return string|null|void Archive links when 'echo' is false, null when the post type is 2239 * not viewable. Nothing otherwise. 2240 2240 * @phpstan-return ( 2241 2241 * $args is array{ echo: false|0|''|'0', ... } 2242 2242 * ? string|null 2243 * : ( $args is ''| array ? void : string|null )2243 * : ( $args is ''|'0'|array ? void : string|null ) 2244 2244 * ) 2245 2245 */ … … 2512 2512 * @type string $post_type Optional. Post type. Default 'post'. 2513 2513 * } 2514 * @return string| void Calendar HTML when `$display` is false, null when the site has2515 * no posts. Nothing otherwise.2514 * @return string|null|void Calendar HTML when `$display` is false, null when the site has 2515 * no posts. Nothing otherwise. 2516 2516 * @phpstan-return ( $args is array{ display: false|0|''|'0', ... } ? string|null : void ) 2517 2517 */ … … 2928 2928 * @param string $after Optional. Output after the date. Default empty. 2929 2929 * @param bool $display Optional. Whether to echo the date or return it. Default true. 2930 * @return string|void String if retrieving. 2930 * @return string|void The date when `$display` is false, or an empty string when the post's 2931 * date matches the previously output one. Nothing otherwise. 2931 2932 * @phpstan-return ( $display is true ? void : string ) 2932 2933 */ … … 3004 3005 * @param string $after Optional. Output after the date. Default empty. 3005 3006 * @param bool $display Optional. Whether to echo the date or return it. Default true. 3006 * @return string|void String if retrieving.3007 * @return string|void The modified date when `$display` is false, nothing otherwise. 3007 3008 * @phpstan-return ( $display is true ? void : string ) 3008 3009 */ -
trunk/src/wp-includes/l10n.php
r63441 r63487 1737 1737 * } 1738 1738 * @return string|void HTML dropdown list of languages. Always returned, whether or not 1739 * 'echo' is true; nothing is returned when the required `id` or `name` 1740 * argument is missing. 1739 * 'echo' is true; nothing is returned when the 'id' or 'name' 1740 * argument is empty. 1741 * @phpstan-return ( 1742 * $args is array{ id: ''|'0', ... } 1743 * ? void 1744 * : ( $args is array{ name: ''|'0', ... } 1745 * ? void 1746 * : ( $args is array ? string : string|void ) ) 1747 * ) 1741 1748 */ 1742 1749 function wp_dropdown_languages( $args = array() ) { -
trunk/src/wp-includes/link-template.php
r63441 r63487 1132 1132 * @param int|WP_Term|null $term Optional. Term ID or object. If null, the queried object will be inspected. Default null. 1133 1133 * @param bool $display Optional. Whether or not to echo the return. Default true. 1134 * @return string| void HTML content when retrieving, null on failure or without the1135 * capability to edit the term. Nothing when displaying.1134 * @return string|null|void HTML content when retrieving, null on failure or without the 1135 * capability to edit the term. Nothing when displaying. 1136 1136 * @phpstan-return ( $display is true ? void : string|null ) 1137 1137 */ … … 3269 3269 * 3270 3270 * @param string|array $args Optional args. See paginate_links(). Default empty array. 3271 * @return string|string[]| void Markup for comment page links, or an array of them when the 'type'3272 * argument is 'array'. Null if the query is not for an existing single3273 * post of any post type. Nothing when 'echo' is true and 'type' is not3274 * 'array'.3271 * @return string|string[]|null|void Markup for comment page links, or an array of them when 3272 * the 'type' argument is 'array'. Null if the query is not for 3273 * an existing single post of any post type. Nothing when 'echo' 3274 * is true and 'type' is not 'array'. 3275 3275 * @phpstan-return ( 3276 3276 * $args is array{ type: 'array', ... } … … 3278 3278 * : ( $args is array{ echo: false|0|''|'0', ... } 3279 3279 * ? string|null 3280 * : ( $args is ''| array ? void : string|string[]|null ) )3280 * : ( $args is ''|'0'|array ? void : string|string[]|null ) ) 3281 3281 * ) 3282 3282 */ -
trunk/src/wp-includes/post-template.php
r63441 r63487 38 38 * @param string $after Optional. Markup to append to the title. Default empty. 39 39 * @param bool $display Optional. Whether to echo or return the title. Default true for echo. 40 * @return string| void Current post title when `$display` is false, null when the title41 * is empty. Nothing otherwise.40 * @return string|null|void Current post title when `$display` is false, null when the 41 * title is empty. Nothing otherwise. 42 42 * @phpstan-return ( $display is true ? void : string|null ) 43 43 */ … … 78 78 * @type WP_Post $post Current post object to retrieve the title for. 79 79 * } 80 * @return string| void The title attribute when 'echo' is false, null when the title is81 * empty. Nothing otherwise.80 * @return string|null|void The title attribute when 'echo' is false, null when the title 81 * is empty. Nothing otherwise. 82 82 * @phpstan-return ( 83 83 * $args is array{ echo: false|0|''|'0', ... } 84 84 * ? string|null 85 * : ( $args is ''| array ? void : string|null )85 * : ( $args is ''|'0'|array ? void : string|null ) 86 86 * ) 87 87 */ … … 1310 1310 * $args is array{ echo: false|0|''|'0', ... } 1311 1311 * ? string 1312 * : ( $args is ''| array ? void : string|null )1312 * : ( $args is ''|'0'|array ? void : string|null ) 1313 1313 * ) 1314 1314 */ … … 1438 1438 * $args is array{ echo: false|0|''|'0', ... } 1439 1439 * ? string 1440 * : ( $args is ''| array ? void : string|null )1440 * : ( $args is ''|'0'|array ? void : string|null ) 1441 1441 * ) 1442 1442 */ -
trunk/src/wp-includes/user.php
r63441 r63487 912 912 * $args is array{ echo: false|0|''|'0', ... } 913 913 * ? string 914 * : ( $args is ''| array ? void : string|null )914 * : ( $args is ''|'0'|array ? void : string|null ) 915 915 * ) 916 916 */
Note:
See TracChangeset
for help on using the changeset viewer.