From 973e6ccec7b6cdd2b9b92f31c867883406e5ab1d Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Fri, 27 Mar 2026 22:46:43 +0000 Subject: [PATCH] Exports: Exclude `wp_sync_storage` post type from exports. Configured the Real Time Collaboration post type to be excluded from exports by default. The data is considered ephemeral and includes data on post IDs that may not match the IDs of posts on the importing site. Introduces a test to the export test suite to ensure that post types set to be excluded from exports are, in fact, excluded from exports. Props peterwilsoncc, desrosj, westonruter, jorbin, mukesh27, czarate. Fixes #64964. Built from https://develop.svn.wordpress.org/trunk@62168 git-svn-id: http://core.svn.wordpress.org/trunk@61450 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 88deb1090f..215fa153f7 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -687,6 +687,7 @@ function create_initial_post_types() { 'show_in_menu' => false, 'show_in_rest' => false, 'show_ui' => false, + 'can_export' => false, 'supports' => array( 'custom-fields' ), ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 57889fa1d0..da24761486 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '7.1-alpha-62167'; +$wp_version = '7.1-alpha-62168'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.