Make WordPress Core

Changeset 43916 for branches/5.0


Ignore:
Timestamp:
11/21/2018 02:10:18 PM (8 years ago)
Author:
danielbachhuber
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.
Fixes #45375.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-admin/edit-form-blocks.php

    r43901 r43916  
    274274        'styles'                 => $styles,
    275275        'imageSizes'             => $available_image_sizes,
     276        'richEditingEnabled'     => user_can_richedit(),
    276277        'postLock'               => $lock_details,
    277278        'postLockUtils'          => array(
Note: See TracChangeset for help on using the changeset viewer.