Changeset 56303 for branches/6.3
- Timestamp:
- 07/25/2023 02:33:58 PM (16 months ago)
- Location:
- branches/6.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.3
-
branches/6.3/src/wp-admin/menu.php
r55881 r56303 211 211 __( 'Template Parts' ), 212 212 'edit_theme_options', 213 'site-editor.php?p ostType=wp_template_part&path=/wp_template_part/all',213 'site-editor.php?path=/wp_template_part/all', 214 214 ); 215 215 } -
branches/6.3/src/wp-admin/site-editor.php
r56206 r56303 24 24 } 25 25 26 $is_template_part_editor = isset( $_GET['postType'] ) && 'wp_template_part' === sanitize_key( $_GET['postType'] ); 26 $is_template_part = isset( $_GET['postType'] ) && 'wp_template_part' === sanitize_key( $_GET['postType'] ); 27 $is_template_part_path = isset( $_GET['path'] ) && 'wp_template_partall' === sanitize_key( $_GET['path'] ); 28 $is_template_part_editor = $is_template_part || $is_template_part_path; 29 27 30 if ( ! wp_is_block_theme() && ! $is_template_part_editor ) { 28 31 wp_die( __( 'The theme you are currently using is not compatible with the Site Editor.' ) );
Note: See TracChangeset
for help on using the changeset viewer.