Make WordPress Core


Ignore:
Timestamp:
12/17/2018 05:08:10 PM (6 years ago)
Author:
desrosj
Message:

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, danielbachhuber.

Merges [43916] into trunk.

Fixes #45375.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-admin/edit-form-blocks.php

    r44262 r44267  
    284284    'styles'                 => $styles,
    285285    'imageSizes'             => $available_image_sizes,
     286    'richEditingEnabled'     => user_can_richedit(),
    286287    'postLock'               => $lock_details,
    287288    'postLockUtils'          => array(
Note: See TracChangeset for help on using the changeset viewer.