Making WordPress.org


Ignore:
Timestamp:
12/11/2018 12:17:34 AM (5 years ago)
Author:
dd32
Message:

Gutenberg theme: All users can richedit, even if their browsers don't support it.

This avoids having a page get cached where the original browser couldn't richedit.

See https://github.com/WordPress/gutenberg/issues/12772

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php

    r7966 r7970  
    176176    add_filter( 'show_post_locked_dialog', '__return_false' );
    177177
     178    // Everyone can richedit! This avoids a case where a page can be cached where a user can't richedit.
     179    $GLOBALS['wp_rich_edit'] = true;
     180    add_filter( 'user_can_richedit', '__return_true', 1000 );
     181
    178182    // Homepage is always locked by @wordpressdotorg
    179183    // This prevents other logged-in users taking a lock of the post on the front-end.
Note: See TracChangeset for help on using the changeset viewer.