mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 11:46:27 +09:00
TODO: fix JS errors
This commit is contained in:
@@ -265,8 +265,15 @@ if ( ! class_exists( 'um\admin\core\Admin_Enqueue' ) ) {
|
||||
wp_register_style( 'um_admin_modal', $this->css_url . 'um-admin-modal.css', array( 'wp-color-picker' ), ultimatemember_version );
|
||||
wp_enqueue_style( 'um_admin_modal' );
|
||||
|
||||
wp_register_script( 'um_admin_modal', $this->js_url . 'um-admin-modal.js', array( 'jquery', 'wp-util', 'wp-color-picker' ), ultimatemember_version, true );
|
||||
wp_register_script( 'um_admin_modal', $this->js_url . 'um-admin-modal.js', array( 'jquery', 'editor', 'wp-util', 'wp-color-picker', 'wp-tinymce' ), ultimatemember_version, true );
|
||||
wp_enqueue_script( 'um_admin_modal' );
|
||||
|
||||
if ( ! class_exists( '_WP_Editors', false ) ) {
|
||||
require_once( ABSPATH . WPINC . '/class-wp-editor.php' );
|
||||
}
|
||||
if ( ! did_action( 'print_default_editor_scripts' ) ) {
|
||||
\_WP_Editors::editor_js();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1180,6 +1180,15 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// echo '<pre>';;
|
||||
// echo '<br>$screen<br>';
|
||||
// var_dump($screen);
|
||||
// echo '<br>$this->is_loaded<br>';
|
||||
// var_dump($this->is_loaded);
|
||||
// echo '</pre>';
|
||||
|
||||
|
||||
// needed on forms only
|
||||
if ( ! isset( $this->is_loaded ) && isset( $screen->id ) && strstr( $screen->id, 'um_form' ) ) {
|
||||
$settings['textarea_rows'] = 8;
|
||||
|
||||
Reference in New Issue
Block a user