Browse Source

Remove MCE editor changes

main
Nathan DeGruchy 4 months ago
parent
commit
363a9ae1fb
  1. 12
      degruchy-core.php

12
degruchy-core.php

@ -212,7 +212,9 @@
* Remove Ancient Custom Fields metabox from post editor
* because it uses a very slow query meta_key sort query
* so on sites with large postmeta tables it is super slow
* and is rarely useful anymore on any site
* and is rarely useful anymore on any site.
*
* @return void Removes the metabox
**/
function degruchy_core_custom_fields_metabox(): Void
{
@ -222,10 +224,8 @@
}
}
}
/*
* Adds the removal of the metabox features function from anywhere
* where the admin menu would appear
*/
// Adds the removal of the metabox features function from anywhere
// where the admin menu would appear
add_action('admin_menu', 'degruchy_core_custom_fields_metabox');
/**
@ -295,8 +295,6 @@
remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
// Remove WP emoji from TinyMCE
add_filter( 'tiny_mce_plugins', 'r34nono_remove_wp_emoji_from_tinymce', 10, 1 );
// Remove WP emoji DNS prefetch
add_filter( 'emoji_svg_url', '__return_false' );
}

Loading…
Cancel
Save