- added deprecated info text to Install Info;

- transfer Secure tab to Advanced > Secure subtab;
This commit is contained in:
Mykyta Synelnikov
2024-01-01 18:21:54 +02:00
parent 2a6d84f8ff
commit 5f8f05e1d2
6 changed files with 53 additions and 18 deletions
+2 -3
View File
@@ -91,8 +91,7 @@ if ( ! class_exists( 'um\admin\Secure' ) ) {
public function admin_init() {
global $wpdb;
// Dismiss admin notice after the first visit to Secure settings page.
if ( isset( $_REQUEST['page'] ) && isset( $_REQUEST['tab'] ) &&
'um_options' === sanitize_key( $_REQUEST['page'] ) && 'secure' === sanitize_key( $_REQUEST['tab'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification
if ( isset( $_REQUEST['page'], $_REQUEST['tab'], $_REQUEST['section'] ) && 'um_options' === sanitize_key( $_REQUEST['page'] ) && 'advanced' === sanitize_key( $_REQUEST['tab'] ) && 'secure' === sanitize_key( $_REQUEST['section'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification
UM()->admin()->notices()->dismiss( 'secure_settings' );
}
@@ -297,7 +296,7 @@ if ( ! class_exists( 'um\admin\Secure' ) ) {
)
);
$settings['secure'] = array(
$settings['advanced']['sections']['secure'] = array(
'title' => __( 'Secure', 'ultimate-member' ),
'fields' => $secure_fields,
);