Changeset 47122 for trunk/src/wp-admin/edit-form-blocks.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/edit-form-blocks.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-blocks.php
r46823 r47122 9 9 */ 10 10 11 // don't load directly11 // Don't load directly. 12 12 if ( ! defined( 'ABSPATH' ) ) { 13 13 die( '-1' ); … … 149 149 $allowed_block_types = apply_filters( 'allowed_block_types', true, $post ); 150 150 151 // Get all available templates for the post/page attributes meta-box. 152 // The "Default template" array element should only be added if the array is 153 // not empty so we do not trigger the template select element without any options 154 // besides the default value. 151 /* 152 * Get all available templates for the post/page attributes meta-box. 153 * The "Default template" array element should only be added if the array is 154 * not empty so we do not trigger the template select element without any options 155 * besides the default value. 156 */ 155 157 $available_templates = wp_get_theme()->get_page_templates( get_post( $post->ID ) ); 156 158 $available_templates = ! empty( $available_templates ) ? array_merge(
Note: See TracChangeset
for help on using the changeset viewer.