Skip to content

Commit

Permalink
Block Editor: Expose value of user_can_richedit().
Browse files Browse the repository at this point in the history
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.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43916 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
danielbachhuber committed Nov 21, 2018
1 parent f02568a commit 8e8dca6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wp-admin/edit-form-blocks.php
Expand Up @@ -273,6 +273,7 @@
'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 ),
Expand Down

0 comments on commit 8e8dca6

Please sign in to comment.