mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 13:43:38 +09:00
- fixed issue with lack of the nonces in the um_adm_action handler;
This commit is contained in:
@@ -1,9 +1,19 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$url = add_query_arg(
|
||||
array(
|
||||
'um_adm_action' => 'manual_upgrades_request',
|
||||
'_wpnonce' => wp_create_nonce( 'manual_upgrades_request' ),
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
||||
<p><?php _e( 'Run this task from time to time if you have issues with WP Cron and need to get UM extension updates.', 'ultimate-member' ) ?></p>
|
||||
<p><?php esc_html_e( 'Run this task from time to time if you have issues with WP Cron and need to get UM extension updates.', 'ultimate-member' ); ?></p>
|
||||
<p>
|
||||
<a href="<?php echo esc_url( add_query_arg( 'um_adm_action', 'manual_upgrades_request' ) ); ?>" class="button">
|
||||
<?php _e( 'Get latest versions', 'ultimate-member' ) ?>
|
||||
<a href="<?php echo esc_url( $url ); ?>" class="button">
|
||||
<?php esc_html_e( 'Get latest versions', 'ultimate-member' ); ?>
|
||||
</a>
|
||||
</p>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user