Make WordPress Core


Ignore:
Timestamp:
10/11/2017 12:05:21 PM (9 years ago)
Author:
pento
Message:

Editor: Add the replace_editor filter.

This filter allows the Core editor to be replaced by an entirely different editor (coughcoughGUTENBERGcough).

Props azaozz, who is supposed to be on sabbatical right now.
Fixes #42119.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r41783 r41829  
    1717 */
    1818global $post_type, $post_type_object, $post;
     19
     20if ( is_multisite() ) {
     21    add_action( 'admin_footer', '_admin_notice_post_locked' );
     22} else {
     23    $check_users = get_users( array( 'fields' => 'ID', 'number' => 2 ) );
     24
     25    if ( count( $check_users ) > 1 )
     26        add_action( 'admin_footer', '_admin_notice_post_locked' );
     27
     28    unset( $check_users );
     29}
    1930
    2031wp_enqueue_script('post');
Note: See TracChangeset for help on using the changeset viewer.