Changeset 63941 for trunk/src/wp-includes/class-wp-theme.php
- Timestamp:
- 09/26/2026 02:43:56 AM (6 weeks ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-theme.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme.php
r63507 r63941 6 6 * @subpackage Theme 7 7 * @since 3.4.0 8 * 9 * @phpstan-type Theme_Key 'Name'|'Version'|'Status'|'Title'|'Author'|'Author Name'|'Author URI'|'Description'|'Template'|'Stylesheet'|'Template Files'|'Stylesheet Files'|'Template Dir'|'Stylesheet Dir'|'Screenshot'|'Tags'|'Theme Root'|'Theme Root URI'|'Parent Theme' 8 10 */ 9 11 #[AllowDynamicProperties] … … 655 657 * @param mixed $offset 656 658 * @return bool 659 * 660 * @phpstan-return ( $offset is Theme_Key ? true : false ) 657 661 */ 658 662 #[ReturnTypeWillChange] … … 697 701 * @param mixed $offset 698 702 * @return mixed 703 * 704 * @phpstan-return ( $offset is Theme_Key ? mixed : null ) 699 705 */ 700 706 #[ReturnTypeWillChange] … … 917 923 * @return string|array|false Processed header. An array for Tags if `$markup` is false, string otherwise. 918 924 * False on failure. 925 * 926 * @phpstan-return ( 927 * $markup is false 928 * ? ( $header is 'Tags' 929 * ? string[]|false 930 * : string|false ) 931 * : string|false 932 * ) 919 933 */ 920 934 public function display( $header, $markup = true, $translate = true ) { … … 950 964 * 'UpdateURI'. 951 965 * @param string $value Value to sanitize. 952 * @return string|array An array for Tags header, string otherwise. 966 * @return string|string[] An array for Tags header, string otherwise. 967 * 968 * @phpstan-return ( $header is 'Tags' ? string[] : string ) 953 969 */ 954 970 private function sanitize_header( $header, $value ) { … … 1054 1070 * @since 3.4.0 1055 1071 * 1056 * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags. 1057 * @param string|array $value Value to translate. An array for Tags header, string otherwise. 1058 * @return string|array Translated value. An array for Tags header, string otherwise. 1072 * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags. 1073 * @param string|string[] $value Value to translate. An array for Tags header, string otherwise. 1074 * @return string|string[] Translated value. An array for Tags header, string otherwise. 1075 * 1076 * @phpstan-return ( $value is string ? string : string[] ) 1059 1077 */ 1060 1078 private function translate_header( $header, $value ) {
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)