Changeset 42876 for trunk/src/wp-includes/class-wp-theme.php
- Timestamp:
- 03/25/2018 07:32:24 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme.php
r42875 r42876 1192 1192 * @since 4.7.0 Added the `$post_type` parameter. 1193 1193 * 1194 * @param array$post_templates Array of page templates. Keys are filenames,1194 * @param string[] $post_templates Array of page templates. Keys are filenames, 1195 1195 * values are translated names. 1196 1196 * @param WP_Theme $this The theme object. … … 1240 1240 * @since 4.7.4 1241 1241 * 1242 * @param array$exclusions Array of excluded directories and files.1242 * @param string[] $exclusions Array of excluded directories and files. 1243 1243 */ 1244 1244 $exclusions = (array) apply_filters( 'theme_scandir_exclusions', array( 'CVS', 'node_modules', 'vendor', 'bower_components' ) ); … … 1357 1357 * 1358 1358 * @param int $blog_id Optional. ID of the site. Defaults to the current site. 1359 * @return arrayArray of stylesheet names.1359 * @return string[] Array of stylesheet names. 1360 1360 */ 1361 1361 public static function get_allowed( $blog_id = null ) { … … 1368 1368 * @since 4.5.0 1369 1369 * 1370 * @param array$allowed_themes An array of theme stylesheet names.1371 * @param int $blog_id ID of the site.1370 * @param string[] $allowed_themes An array of theme stylesheet names. 1371 * @param int $blog_id ID of the site. 1372 1372 */ 1373 1373 $network = (array) apply_filters( 'network_allowed_themes', self::get_allowed_on_network(), $blog_id ); … … 1382 1382 * @staticvar array $allowed_themes 1383 1383 * 1384 * @return arrayArray of stylesheet names.1384 * @return string[] Array of stylesheet names. 1385 1385 */ 1386 1386 public static function get_allowed_on_network() { … … 1395 1395 * @since MU (3.0.0) 1396 1396 * 1397 * @param array$allowed_themes An array of theme stylesheet names.1397 * @param string[] $allowed_themes An array of theme stylesheet names. 1398 1398 */ 1399 1399 $allowed_themes = apply_filters( 'allowed_themes', $allowed_themes ); … … 1410 1410 * 1411 1411 * @param int $blog_id Optional. ID of the site. Defaults to the current site. 1412 * @return arrayArray of stylesheet names.1412 * @return string[] Array of stylesheet names. 1413 1413 */ 1414 1414 public static function get_allowed_on_site( $blog_id = null ) { … … 1425 1425 * @since 4.5.0 1426 1426 * 1427 * @param array$allowed_themes An array of theme stylesheet names.1428 * @param int $blog_id ID of the site. Defaults to current site.1427 * @param string[] $allowed_themes An array of theme stylesheet names. 1428 * @param int $blog_id ID of the site. Defaults to current site. 1429 1429 */ 1430 1430 return (array) apply_filters( 'site_allowed_themes', $allowed_themes[ $blog_id ], $blog_id ); … … 1487 1487 * @since 4.6.0 1488 1488 * 1489 * @param string| array$stylesheets Stylesheet name or array of stylesheet names.1489 * @param string|string[] $stylesheets Stylesheet name or array of stylesheet names. 1490 1490 */ 1491 1491 public static function network_enable_theme( $stylesheets ) { … … 1511 1511 * @since 4.6.0 1512 1512 * 1513 * @param string| array$stylesheets Stylesheet name or array of stylesheet names.1513 * @param string|string[] $stylesheets Stylesheet name or array of stylesheet names. 1514 1514 */ 1515 1515 public static function network_disable_theme( $stylesheets ) {
Note: See TracChangeset
for help on using the changeset viewer.