Skip to content

Commit d593479

Browse files
author
shin
committed
fix: base_url function
1 parent 3cf195a commit d593479

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cherry-core.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* Class Cherry Core
4-
* Version: 1.5.1
4+
* Version: 1.5.2
55
*
66
* @package Cherry_Framework
77
* @subpackage Class
@@ -378,9 +378,9 @@ public static function base_url( $file_path = '', $module_path ) {
378378
$theme_dir = "$theme_root/$stylesheet";
379379

380380
if ( 0 === strpos( $module_dir, $plugin_dir ) ) {
381-
$home_url = home_url();
381+
$site_url = site_url();
382382
$abs_path = wp_normalize_path( ABSPATH );
383-
$url = str_replace( untrailingslashit( $abs_path ), $home_url, $module_dir );
383+
$url = str_replace( untrailingslashit( $abs_path ), $site_url, $module_dir );
384384
} else if ( false !== strpos( $module_path, $theme_dir ) ) {
385385
$explode = explode( $theme_dir, $module_dir );
386386
$url = get_stylesheet_directory_uri() . end( $explode );

0 commit comments

Comments
 (0)