| @@ -59,9 +59,9 @@ | ||
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | // Load templates into the zip file. |
| 63 | - $templates = get_block_templates(); | |
| 63 | + $templates = gutenberg_get_block_templates(); | |
| 64 | 64 | foreach ( $templates as $template ) { |
| 65 | 65 | $template->content = traverse_and_serialize_blocks( |
| 66 | 66 | parse_blocks( $template->content ), |
| 67 | 67 | '_remove_theme_attribute_from_template_part_block' |
| @@ -73,9 +73,9 @@ | ||
| 73 | 73 | ); |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | // Load template parts into the zip file. |
| 77 | - $template_parts = get_block_templates( array(), 'wp_template_part' ); | |
| 77 | + $template_parts = gutenberg_get_block_templates( array(), 'wp_template_part' ); | |
| 78 | 78 | foreach ( $template_parts as $template_part ) { |
| 79 | 79 | $zip->addFromString( |
| 80 | 80 | 'parts/' . $template_part->slug . '.html', |
| 81 | 81 | $template_part->content |