mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 07:36:58 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@41829 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -17,6 +17,17 @@ if ( !defined('ABSPATH') )
|
||||
*/
|
||||
global $post_type, $post_type_object, $post;
|
||||
|
||||
if ( is_multisite() ) {
|
||||
add_action( 'admin_footer', '_admin_notice_post_locked' );
|
||||
} else {
|
||||
$check_users = get_users( array( 'fields' => 'ID', 'number' => 2 ) );
|
||||
|
||||
if ( count( $check_users ) > 1 )
|
||||
add_action( 'admin_footer', '_admin_notice_post_locked' );
|
||||
|
||||
unset( $check_users );
|
||||
}
|
||||
|
||||
wp_enqueue_script('post');
|
||||
$_wp_editor_expand = $_content_editor_dfw = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user