Skip to content

Commit a084184

Browse files
committed
updated the analytics code
1 parent ee1c307 commit a084184

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

admin/bsf-analytics/class-bsf-analytics.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,12 @@ public function set_actions() {
8585
* @since 1.0.0
8686
*/
8787
public function get_analytics_url( $analytics_path ) {
88-
return str_replace( WP_CONTENT_DIR, content_url(), $analytics_path );
88+
89+
$content_dir_path = wp_normalize_path( WP_CONTENT_DIR );
90+
91+
$analytics_path = wp_normalize_path( $analytics_path );
92+
93+
return str_replace( $content_dir_path, content_url(), $analytics_path );
8994
}
9095

9196
/**

0 commit comments

Comments
 (0)