Changeset 52275 for trunk/src/wp-includes/block-template-utils.php
- Timestamp:
- 11/30/2021 12:22:30 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/block-template-utils.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template-utils.php
r52247 r52275 526 526 null !== _get_block_template_file( $post->post_type, $post->post_name ); 527 527 528 $origin = get_post_meta( $post->ID, 'origin', true ); 529 528 530 $template = new WP_Block_Template(); 529 531 $template->wp_id = $post->ID; … … 533 535 $template->slug = $post->post_name; 534 536 $template->source = 'custom'; 537 $template->origin = ! empty( $origin ) ? $origin : null; 535 538 $template->type = $post->post_type; 536 539 $template->description = $post->post_excerpt; … … 539 542 $template->has_theme_file = $has_theme_file; 540 543 $template->is_custom = true; 544 $template->author = $post->post_author; 541 545 542 546 if ( 'wp_template' === $post->post_type && isset( $default_template_types[ $template->slug ] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.