wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



rich_edit_exists › WordPress Function

Depuis2.1.0
Dépréciée3.9.0
rich_edit_exists ( Pas de paramètres )
Retourne:
  • (bool) Whether TinyMCE exists.
Défini(e) dans:
Codex:

Determine if TinyMCE is available.

Checks to see if the user has deleted the tinymce files to slim down their WordPress installation.


Source

function rich_edit_exists() {
	global $wp_rich_edit_exists;
	_deprecated_function( __FUNCTION__, '3.9.0' );

	if ( ! isset( $wp_rich_edit_exists ) )
		$wp_rich_edit_exists = file_exists( ABSPATH . WPINC . '/js/tinymce/tinymce.js' );

	return $wp_rich_edit_exists;
}