Skip to content

Commit

Permalink
Merge pull request #115 from wpstarter/dev
Browse files Browse the repository at this point in the history
Fix multisite url
  • Loading branch information
as247 committed Mar 27, 2024
2 parents 0fa1b2f + e974764 commit 1413490
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/WpStarter/Wordpress/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Application extends \WpStarter\Foundation\Application
*
* @var string
*/
const VERSION = '1.9.7';
const VERSION = '1.9.8';

protected $bootstrappedList = [];

Expand Down
2 changes: 1 addition & 1 deletion src/WpStarter/Wordpress/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function ws_plugin_url($path = '', $scheme = null)
str_replace('\\','/',__WS_FILE__));
$basePath = trim(dirname($basePath), '\/');
}
return site_url($basePath . '/' . ltrim($path, '/'), $scheme);
return network_site_url($basePath . '/' . ltrim($path, '/'), $scheme);
}
}
if (!function_exists('ws_admin_menu')) {
Expand Down
2 changes: 1 addition & 1 deletion src/WpStarter/Wordpress/noop.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function is_admin() {
/**
* @ignore
*/
function site_url() {}
function network_site_url() {}

/**
* @ignore
Expand Down

0 comments on commit 1413490

Please sign in to comment.