mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Merge pull request #129 from svenl77/master
Move the check for um_flush_stop to the flush_rewrite_rules function …
This commit is contained in:
+3
-3
@@ -32,7 +32,7 @@ class UM_Rewrite {
|
||||
|
||||
global $ultimatemember;
|
||||
|
||||
if ( isset( $ultimatemember->permalinks->core['user'] ) && !um_get_option('um_flush_stop') ) {
|
||||
if ( isset( $ultimatemember->permalinks->core['user'] ) ) {
|
||||
|
||||
$user_page_id = $ultimatemember->permalinks->core['user'];
|
||||
$account_page_id = $ultimatemember->permalinks->core['account'];
|
||||
@@ -84,8 +84,8 @@ class UM_Rewrite {
|
||||
'top'
|
||||
);
|
||||
|
||||
|
||||
flush_rewrite_rules( true );
|
||||
if( !apply_filters('up_rewrite_flush_rewrite_rules', um_get_option('um_flush_stop') ) )
|
||||
flush_rewrite_rules( true );
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user