Skip to content

Commit

Permalink
When $new_slug wasn't set, we were returning "" instead of the origin…
Browse files Browse the repository at this point in the history
…al $slug.
  • Loading branch information
ideadude committed Jul 7, 2023
1 parent 4de7994 commit e95bc59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ function pmpro_courses_get_lessons_html( $course_id ) {
function pmpro_courses_unique_rewrite_slug( $slug ) {
global $wp_post_types;

$new_slug = $slug;
$suffix = 0;
do {
$check_for_collision = false;
Expand Down

0 comments on commit e95bc59

Please sign in to comment.