Skip to content

Commit

Permalink
= 4.2.6.7 =
Browse files Browse the repository at this point in the history
~ Fixed rewrite url $page_profile_slug
  • Loading branch information
tungnxt89 committed May 15, 2024
1 parent d35227c commit 7f8f787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/class-lp-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function add_rewrite_rules_profile( &$rules ) {
$profile_id = learn_press_get_page_id( 'profile' );
if ( $profile_id ) {
// Rule view profile of user (self or another)
$page_profile_slug = get_post_field( 'post_name', $profile_id );
$page_profile_slug = urldecode( get_post_field( 'post_name', $profile_id ) );
$rules['profile']['user'] = [
"^{$page_profile_slug}/([^/]*)/?$" =>
"index.php?page_id={$profile_id}&user=" . '$matches[1]',
Expand Down

0 comments on commit 7f8f787

Please sign in to comment.