- added info-comment for NGINX-config rules if they aren't applied by default;

This commit is contained in:
Mykyta Synelnikov
2024-05-09 17:11:10 +03:00
parent 39ce8b0b5a
commit f2ac29bc9c
+1
View File
@@ -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'] ) ) {