WordPress at a glance
function is not described

_WP_Editors::force_uncompressed_tinymce() public WP 5.0.0

Force uncompressed TinyMCE when a custom theme has been defined.

The compressed TinyMCE file cannot deal with custom themes, so this makes sure that we use the uncompressed TinyMCE file if a theme is defined. Even if we are on a production environment.

{} It's a method of the class: _WP_Editors{}

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Return

````. Null. Nothing.

Usage

$result = _WP_Editors::force_uncompressed_tinymce();

Changelog

Since 5.0.0 Introduced.

Code of _WP_Editors::force_uncompressed_tinymce() WP 5.7

<?php
public static function force_uncompressed_tinymce() {
	$has_custom_theme = false;
	foreach ( self::$mce_settings as $init ) {
		if ( ! empty( $init['theme_url'] ) ) {
			$has_custom_theme = true;
			break;
		}
	}

	if ( ! $has_custom_theme ) {
		return;
	}

	$wp_scripts = wp_scripts();

	$wp_scripts->remove( 'wp-tinymce' );
	wp_register_tinymce_scripts( $wp_scripts, true );
}