| 1 |
<?php |
| 2 |
/** |
| 3 |
* Contains the placeholder class to replace the default `_WP_Editors`. |
| 4 |
* |
| 5 |
* @package gutenberg |
| 6 |
* @since 6.3.0 |
| 7 |
*/ |
| 8 |
|
| 9 |
// phpcs:disable PEAR.NamingConventions.ValidClassName.StartWithCapital |
| 10 |
|
| 11 |
if ( ! class_exists( '_WP_Editors' ) ) { |
| 12 |
|
| 13 |
/** |
| 14 |
* Placeholder class. |
| 15 |
* Used to disable loading of TinyMCE assets. |
| 16 |
* |
| 17 |
* @access public |
| 18 |
*/ |
| 19 |
final class _WP_Editors { |
| 20 |
/** |
| 21 |
* Necessary to ensure no additional TinyMCE assets are enqueued. |
| 22 |
*/ |
| 23 |
public static function enqueue_default_editor() {} |
| 24 |
|
| 25 |
/** |
| 26 |
* Necessary for wp admin dashboard. |
| 27 |
*/ |
| 28 |
public static function editor() {} |
| 29 |
} |
| 30 |
} |
| 31 |
|