Changeset 48590 for trunk/src/wp-includes/class-wp-theme.php
- Timestamp:
- 07/23/2020 09:09:04 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme.php
r48115 r48590 182 182 * @global array $wp_theme_directories 183 183 * 184 * @param string $theme_dirDirectory of the theme within the theme_root.185 * @param string $theme_root Theme root.184 * @param string $theme_dir Directory of the theme within the theme_root. 185 * @param string $theme_root Theme root. 186 186 * @param WP_Theme|null $_child If this theme is a parent theme, the child may be passed for validation purposes. 187 187 */ … … 682 682 * @since 3.4.0 683 683 * 684 * @param string $keyType of data to store (theme, screenshot, headers, post_templates)684 * @param string $key Type of data to store (theme, screenshot, headers, post_templates) 685 685 * @param array|string $data Data to store 686 686 * @return bool Return value from wp_cache_add() … … 774 774 * @since 3.4.0 775 775 * 776 * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags.777 * @param bool $markupOptional. Whether to mark up the header. Defaults to true.778 * @param bool $translate Optional. Whether to translate the header. Defaults to true.776 * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags. 777 * @param bool $markup Optional. Whether to mark up the header. Defaults to true. 778 * @param bool $translate Optional. Whether to translate the header. Defaults to true. 779 779 * @return string|array|false Processed header. An array for Tags if `$markup` is false, string otherwise. 780 780 * False on failure. … … 1160 1160 * @since 3.4.0 1161 1161 * 1162 * @param string[]|string $type Optional. Array of extensions to find, string of a single extension,1163 * or null for all extensions. Default null.1164 * @param int $depth Optional. How deep to search for files. Defaults to a flat scan (0 depth).1165 * -1 depth is infinite.1166 * @param bool $search_parent Optional. Whether to return parent files. Default false.1162 * @param string[]|string $type Optional. Array of extensions to find, string of a single extension, 1163 * or null for all extensions. Default null. 1164 * @param int $depth Optional. How deep to search for files. Defaults to a flat scan (0 depth). 1165 * -1 depth is infinite. 1166 * @param bool $search_parent Optional. Whether to return parent files. Default false. 1167 1167 * @return string[] Array of files, keyed by the path to the file relative to the theme's directory, with the values 1168 1168 * being absolute paths. … … 1388 1388 * @since 3.4.0 1389 1389 * 1390 * @param string $check Optional. Whether to check only the 'network'-wide settings, the 'site'1391 * settings, or 'both'. Defaults to 'both'.1392 * @param int $blog_id Optional. Ignored if only network-wide settings are checked. Defaults to current site.1390 * @param string $check Optional. Whether to check only the 'network'-wide settings, the 'site' 1391 * settings, or 'both'. Defaults to 'both'. 1392 * @param int $blog_id Optional. Ignored if only network-wide settings are checked. Defaults to current site. 1393 1393 * @return bool Whether the theme is allowed for the network. Returns true in single-site. 1394 1394 */ … … 1637 1637 * @since 3.4.0 1638 1638 * 1639 * @param string $a First name.1640 * @param string $b Second name.1639 * @param WP_Theme $a First theme. 1640 * @param WP_Theme $b Second theme. 1641 1641 * @return int Negative if `$a` falls lower in the natural order than `$b`. Zero if they fall equally. 1642 1642 * Greater than 0 if `$a` falls higher in the natural order than `$b`. Used with usort(). … … 1651 1651 * @since 3.4.0 1652 1652 * 1653 * @param string $a First name.1654 * @param string $b Second name.1653 * @param WP_Theme $a First theme. 1654 * @param WP_Theme $b Second theme. 1655 1655 * @return int Negative if `$a` falls lower in the natural order than `$b`. Zero if they fall equally. 1656 1656 * Greater than 0 if `$a` falls higher in the natural order than `$b`. Used with usort().
Note: See TracChangeset
for help on using the changeset viewer.