- removed Install Info handlers;

- updated handlers for the wp-admin settings;
- avoid double generate sections (hidden process);
- nav tabs and subtabs using WordPress native CSS;
This commit is contained in:
Mykyta Synelnikov
2024-01-01 17:37:14 +02:00
parent 5a29496897
commit 2a6d84f8ff
8 changed files with 141 additions and 1749 deletions
+6
View File
@@ -589,6 +589,12 @@ final class Enqueue extends \um\common\Enqueue {
wp_enqueue_script( 'um_admin_secure' );
}
// phpcs:ignore WordPress.Security.NonceVerification
if ( isset( $_GET['tab'] ) && 'appearance' === $_GET['tab'] && empty( $_GET['section'] ) ) {
// Init WP Media Uploader on the UM > Settings > Appearance > Profile screen.
wp_enqueue_media();
}
wp_register_style( 'um_admin_settings', $css_url . 'admin/settings' . $suffix . '.css', array(), UM_VERSION );
wp_enqueue_style( 'um_admin_settings' );