From f2ac29bc9cc082c37a40ff0b686aa81bb5e69819 Mon Sep 17 00:00:00 2001 From: Mykyta Synelnikov Date: Thu, 9 May 2024 17:11:10 +0300 Subject: [PATCH] - added info-comment for NGINX-config rules if they aren't applied by default; --- includes/core/class-rewrite.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/core/class-rewrite.php b/includes/core/class-rewrite.php index ccad3bb4..13578add 100644 --- a/includes/core/class-rewrite.php +++ b/includes/core/class-rewrite.php @@ -78,6 +78,7 @@ if ( ! class_exists( 'um\core\Rewrite' ) ) { public function add_rewrite_rules( $rules ) { $newrules = array(); + // NGINX-config `rewrite ^/um-download/([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$ /index.php?um_action=download&um_form=$1&um_field=$2&um_user=$3&um_verify=$4 last;` $newrules['um-download/([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$'] = 'index.php?um_action=download&um_form=$matches[1]&um_field=$matches[2]&um_user=$matches[3]&um_verify=$matches[4]'; if ( isset( UM()->config()->permalinks['user'] ) ) {