mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Editor: rename sync_status and move it to top level.
Renames sync_status to wp_pattern_sync_status and moves it to top level field of wp_block post type. Props glendaviesnz, aaronrobertshaw, mukesh27, peterwilsoncc. Fixes 58677. git-svn-id: https://develop.svn.wordpress.org/trunk@56160 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -8041,14 +8041,14 @@ function use_block_editor_for_post_type( $post_type ) {
|
||||
/**
|
||||
* Registers any additional post meta fields.
|
||||
*
|
||||
* @since 6.3.0 Adds sync_status meta field to the wp_block post type so an unsynced option can be added.
|
||||
* @since 6.3.0 Adds `wp_pattern_sync_status` meta field to the wp_block post type so an unsynced option can be added.
|
||||
*
|
||||
* @link https://github.com/WordPress/gutenberg/pull/51144
|
||||
*/
|
||||
function wp_create_initial_post_meta() {
|
||||
register_post_meta(
|
||||
'wp_block',
|
||||
'sync_status',
|
||||
'wp_pattern_sync_status',
|
||||
array(
|
||||
'sanitize_callback' => 'sanitize_text_field',
|
||||
'single' => true,
|
||||
|
||||
Reference in New Issue
Block a user