Changeset 53197 for trunk/src/wp-admin/edit-form-blocks.php
- Timestamp:
- 04/17/2022 03:05:10 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-blocks.php
r53155 r53197 58 58 add_query_arg( 59 59 array( 60 'context' => 'edit',60 'context' => 'edit', 61 61 'per_page' => -1, 62 62 ), … … 189 189 190 190 $editor_settings = array( 191 'availableTemplates' 192 'disablePostFormats' 191 'availableTemplates' => $available_templates, 192 'disablePostFormats' => ! current_theme_supports( 'post-formats' ), 193 193 /** This filter is documented in wp-admin/edit-form-advanced.php */ 194 'titlePlaceholder' 195 'bodyPlaceholder' 196 'autosaveInterval' 197 'richEditingEnabled' 198 'postLock' 199 'postLockUtils' 194 'titlePlaceholder' => apply_filters( 'enter_title_here', __( 'Add title' ), $post ), 195 'bodyPlaceholder' => $body_placeholder, 196 'autosaveInterval' => AUTOSAVE_INTERVAL, 197 'richEditingEnabled' => user_can_richedit(), 198 'postLock' => $lock_details, 199 'postLockUtils' => array( 200 200 'nonce' => wp_create_nonce( 'lock-post_' . $post->ID ), 201 201 'unlockNonce' => wp_create_nonce( 'update-post_' . $post->ID ), 202 202 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 203 203 ), 204 'supportsLayout' 205 'supportsTemplateMode' 204 'supportsLayout' => WP_Theme_JSON_Resolver::theme_has_support(), 205 'supportsTemplateMode' => current_theme_supports( 'block-templates' ), 206 206 207 207 // Whether or not to load the 'postcustom' meta box is stored as a user meta 208 208 // field so that we're not always loading its assets. 209 'enableCustomFields' 209 'enableCustomFields' => (bool) get_user_meta( get_current_user_id(), 'enable_custom_fields', true ), 210 210 ); 211 211
Note: See TracChangeset
for help on using the changeset viewer.