Changeset 55168 for trunk/src/wp-includes/block-patterns.php
- Timestamp:
- 01/31/2023 04:47:58 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/block-patterns.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-patterns.php
r55098 r55168 303 303 * - Block Types (comma-separated values) 304 304 * - Post Types (comma-separated values) 305 * - Template Types (comma-separated values) 305 306 * - Inserter (yes/no) 306 307 * … … 319 320 'postTypes' => 'Post Types', 320 321 'inserter' => 'Inserter', 322 'templateTypes' => 'Template Types', 321 323 ); 322 324 … … 389 391 390 392 // For properties of type array, parse data as comma-separated. 391 foreach ( array( 'categories', 'keywords', 'blockTypes', 'postTypes' ) as $property ) {393 foreach ( array( 'categories', 'keywords', 'blockTypes', 'postTypes', 'templateTypes' ) as $property ) { 392 394 if ( ! empty( $pattern_data[ $property ] ) ) { 393 395 $pattern_data[ $property ] = array_filter(
Note: See TracChangeset
for help on using the changeset viewer.