Skip to content

Commit

Permalink
updated the analytics code
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhw12 committed Aug 18, 2020
1 parent 07594bb commit 5bf55b2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion admin/bsf-analytics/class-bsf-analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ public function set_actions() {
* @since 1.0.0
*/
public function get_analytics_url( $analytics_path ) {
return str_replace( WP_CONTENT_DIR, content_url(), $analytics_path );

$content_dir_path = wp_normalize_path( WP_CONTENT_DIR );

$analytics_path = wp_normalize_path( $analytics_path );

return str_replace( $content_dir_path, content_url(), $analytics_path );
}

/**
Expand Down

0 comments on commit 5bf55b2

Please sign in to comment.