$initial_edits['content'
] =
$post->post_content;
} if ( post_type_supports( $post->post_type, 'excerpt'
) ) { $initial_edits['excerpt'
] =
$post->post_excerpt;
}}// Preload server-registered block schemas.
wp_add_inline_script( 'wp-blocks',
'wp.blocks.unstable__bootstrapServerSideBlockDefinitions(' .
wp_json_encode( get_block_editor_server_block_settings() ) . ');'
);
// Get admin url for handling meta boxes.
$meta_box_url =
admin_url( 'post.php'
);
$meta_box_url =
add_query_arg( array
( 'post' =>
$post->ID,
'action' => 'edit',
'meta-box-loader' => true,
'meta-box-loader-nonce' =>
wp_create_nonce( 'meta-box-loader'
),
),