We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 073eb70 commit 7d56343Copy full SHA for 7d56343
assets/src/admin/templates/components/BrandSiteTemplates.js
@@ -63,7 +63,7 @@ const BrandSiteTemplates = ( {
63
},
64
body: JSON.stringify( {
65
template_ids: selectedTemplates,
66
- site: currentSiteId,
+ site: currentSiteId.toString(),
67
is_remove_all: false,
68
} ),
69
inc/classes/class-utils.php
@@ -205,7 +205,7 @@ public static function get_site_by_id( string $site_id ): array|null {
205
$filtered = array_filter(
206
$sites,
207
function ( $site ) use ( $site_id ): bool {
208
- return $site['id'] === $site_id;
+ return (string) $site['id'] === (string) $site_id;
209
}
210
);
211
0 commit comments