mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- removed some deprecated variables;
- changed the structure of the menu item's custom fields;
This commit is contained in:
@@ -81,7 +81,7 @@ if ( ! class_exists( 'um\core\Files' ) ) {
|
||||
function get_download_link( $form_id, $field_key, $user_id ) {
|
||||
$field_key = urlencode( $field_key );
|
||||
|
||||
if ( UM()->permalinks ) {
|
||||
if ( UM()->is_permalinks ) {
|
||||
$url = get_site_url( get_current_blog_id() );
|
||||
$nonce = wp_create_nonce( $user_id . $form_id . 'um-download-nonce' );
|
||||
return $url . "/um-download/{$form_id}/{$field_key}/{$user_id}/{$nonce}";
|
||||
|
||||
Reference in New Issue
Block a user