diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php index d326782f15..297249497b 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php @@ -53,7 +53,7 @@ class WP_REST_Edit_Site_Export_Controller extends WP_REST_Controller { * @return true|WP_Error True if the request has access, or WP_Error object. */ public function permissions_check() { - if ( current_user_can( 'edit_theme_options' ) ) { + if ( current_user_can( 'export' ) ) { return true; } diff --git a/wp-includes/version.php b/wp-includes/version.php index e3cd01f2aa..42a917a33f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59923'; +$wp_version = '6.8-alpha-59924'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.