From c06c2fe2d6871720cc7b458aec9f981cc9c473fe Mon Sep 17 00:00:00 2001 From: danielbachhuber Date: Wed, 21 Nov 2018 14:11:48 +0000 Subject: [PATCH] Block Editor: Expose value of `user_can_richedit()`. In order for the Block Editor to know whether to allow visual editing, it needs to know the value of `user_can_richedit()`. Props youknowriad. Fixes #45375. Built from https://develop.svn.wordpress.org/branches/5.0@43916 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43748 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-blocks.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/edit-form-blocks.php b/wp-admin/edit-form-blocks.php index 1e46900093..63d48e381c 100644 --- a/wp-admin/edit-form-blocks.php +++ b/wp-admin/edit-form-blocks.php @@ -273,6 +273,7 @@ $editor_settings = array( 'allowedMimeTypes' => get_allowed_mime_types(), 'styles' => $styles, 'imageSizes' => $available_image_sizes, + 'richEditingEnabled' => user_can_richedit(), 'postLock' => $lock_details, 'postLockUtils' => array( 'nonce' => wp_create_nonce( 'lock-post_' . $post->ID ), diff --git a/wp-includes/version.php b/wp-includes/version.php index 2f180d9874..d7744f2c21 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-beta5-43915'; +$wp_version = '5.0-beta5-43916'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.