Skip to content

Commit

Permalink
Update misc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronHolbrook authored Mar 26, 2019
1 parent 5ce1009 commit e529dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,5 @@ function remove_filters_for_anonymous_class( $hook_name = '', $class_name = '',
* Get the slug of the path without any preceeding or trailing slashes
*/
function get_current_url_slug() {
return trim( get_current_url(), '/' );
return trim( get_current_url_path(), '/' );
}

0 comments on commit e529dee

Please sign in to comment.