Changeset 52317
- Timestamp:
- 12/03/2021 10:08:31 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template-utils.php
r52286 r52317 93 93 * @since 5.9.0 94 94 * 95 * @param array $default_area s An array of supported area objects.95 * @param array $default_area_definitions An array of supported area objects. 96 96 */ 97 97 return apply_filters( 'default_wp_template_part_areas', $default_area_definitions ); … … 189 189 * Returns the input if supported, otherwise returns the 'uncategorized' value. 190 190 * 191 * @ access private192 * @ since 5.9.0191 * @since 5.9.0 192 * @access private 193 193 * 194 194 * @param string $type Template part area name. … … 220 220 * Finds all nested template part file paths in a theme's directory. 221 221 * 222 * @ access private223 * @ since 5.9.0222 * @since 5.9.0 223 * @access private 224 224 * 225 225 * @param string $base_directory The theme's file path. … … 241 241 * Retrieves the template file from the theme for a given slug. 242 242 * 243 * @ access private244 * @ since 5.9.0245 * 246 * @param string $template_type wp_template or wp_template_part.247 * @param string $slug template slug.243 * @since 5.9.0 244 * @access private 245 * 246 * @param string $template_type 'wp_template' or 'wp_template_part'. 247 * @param string $slug Template slug. 248 248 * 249 249 * @return array|null Template. … … 285 285 286 286 /** 287 * Retrieves the template files from 288 * 289 * @ access private290 * @ since 5.9.0291 * 292 * @param string $template_type wp_template or wp_template_part.287 * Retrieves the template files from the theme. 288 * 289 * @since 5.9.0 290 * @access private 291 * 292 * @param string $template_type 'wp_template' or 'wp_template_part'. 293 293 * 294 294 * @return array Template. … … 339 339 * Attempts to add custom template information to the template item. 340 340 * 341 * @ access private342 * @ since 5.9.0341 * @since 5.9.0 342 * @access private 343 343 * 344 344 * @param array $template_item Template to add information to (requires 'slug' field). 345 * @return array Template 345 * @return array Template item. 346 346 */ 347 347 function _add_block_template_info( $template_item ) { … … 362 362 * Attempts to add the template part's area information to the input template. 363 363 * 364 * @ access private365 * @ since 5.9.0364 * @since 5.9.0 365 * @access private 366 366 * 367 367 * @param array $template_info Template to add information to (requires 'type' and 'slug' fields). 368 368 * 369 * @return array Template .369 * @return array Template info. 370 370 */ 371 371 function _add_block_template_part_area_info( $template_info ) { … … 388 388 * the passed blocks and their inner blocks. 389 389 * 390 * @ access private391 * @ since 5.9.0390 * @since 5.9.0 391 * @access private 392 392 * 393 393 * @param array $blocks array of blocks. … … 421 421 * stylesheet as a theme attribute into each wp_template_part 422 422 * 423 * @ access private424 * @ since 5.9.0423 * @since 5.9.0 424 * @access private 425 425 * 426 426 * @param string $template_content serialized wp_template content. 427 427 * 428 * @return string Updated wp_templatecontent.428 * @return string Updated 'wp_template' content. 429 429 */ 430 430 function _inject_theme_attribute_in_block_template_content( $template_content ) { … … 458 458 * Parses a block template and removes the theme attribute from each template part. 459 459 * 460 * @ access private461 * @ since 5.9.0460 * @since 5.9.0 461 * @access private 462 462 * 463 463 * @param string $template_content Serialized block template content. … … 491 491 * Build a unified template object based on a theme file. 492 492 * 493 * @ access private494 * @ since 5.9.0493 * @since 5.9.0 494 * @access private 495 495 * 496 496 * @param array $template_file Theme file. 497 * @param array $template_type wp_template or wp_template_part.497 * @param array $template_type 'wp_template' or 'wp_template_part'. 498 498 * 499 499 * @return WP_Block_Template Template. … … 536 536 * Build a unified template object based a post Object. 537 537 * 538 * @ access private539 * @ since 5.9.0538 * @since 5.9.0 539 * @access private 540 540 * 541 541 * @param WP_Post $post Template post. … … 604 604 * @type string $post_type Post type to get the templates for. 605 605 * } 606 * @param array $template_type wp_template or wp_template_part.606 * @param array $template_type 'wp_template' or 'wp_template_part'. 607 607 * 608 608 * @return array Templates.
Note: See TracChangeset
for help on using the changeset viewer.