Skip to content

Commit

Permalink
Allow network site child classes to use get_site_slug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Jenkins committed Sep 8, 2021
1 parent 6a2a465 commit 4b989bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/regions/class-network-sites.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ protected function create_site( $key, $value ) {
* @param string $key A key to overwrite path if not using a custom domain.
* @param string $custom_domain A custom domain to overwrite the domain and reset the path.
*/
private function get_site_slug( $site_or_network, $key = '', $custom_domain = '' ) {
protected function get_site_slug( $site_or_network, $key = '', $custom_domain = '' ) {
$domain = $site_or_network->domain;
$path = $key !== '' ? '/' . $key : $site_or_network->path;

Expand Down

0 comments on commit 4b989bc

Please sign in to comment.