Skip to content

Commit c5287e9

Browse files
up1512001Copilot
andcommitted
address copilot feedbacks
Co-authored-by: Utsav Patel <75293077+up1512001@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d29c933 commit c5287e9

File tree

5 files changed

+11
-14
lines changed

5 files changed

+11
-14
lines changed

assets/src/admin/multisite-plugin/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const SiteTypeSelector = ( { value, setGoverningSite } ) => (
2323
<SelectControl
2424
label={ __( 'Select Governing Site', 'onedesign' ) }
2525
value={ value }
26-
help={ __( 'Choose governing site from current multisite network other sites will be set as brand sites. This setting cannot be changed later and affects available features and configurations.', 'onedesign' ) }
26+
help={ __( 'Choose governing site from current multisite network. Other sites will be set as brand sites. This setting cannot be changed later and affects available features and configurations.', 'onedesign' ) }
2727
onChange={ ( v ) => {
2828
setGoverningSite( v );
2929
} }

assets/src/admin/patterns/components/AppliedPatternsTab.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ const AppliedPatternsTab = memo( ( {
223223
<p>
224224
{ __( 'Are you sure you want to remove selected patterns?', 'onedesign' ) }
225225
<br />
226-
{ __( 'Once you remove a pattern you wan\'t be able to use it on brand sites, so please check and confirm you don\'t require it.', 'onedesign' ) }
226+
{ __( 'Once you remove a pattern you won\'t be able to use it on brand sites, so please check and confirm you don\'t require it.', 'onedesign' ) }
227227
</p>
228228
<div className="od-pattern-removal-modal-actions">
229229
<Button

inc/classes/class-multisite.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,13 @@ public function sync_api_key_to_governing_site( string $secret_key, int $blog_id
108108
// get the governing site id.
109109
$governing_site_id = get_site_option( Constants::ONEDESIGN_MULTISITE_GOVERNING_SITE, 0 );
110110

111-
// assign secret_key is the new api key.
112-
$api_key = $secret_key;
113-
114-
// go to governing site and update shared_sites option api_key of blog_id site.
115-
if ( $governing_site_id && $api_key ) {
111+
// go to governing site and update shared_sites option secret_key of blog_id site.
112+
if ( $governing_site_id && $secret_key ) {
116113
switch_to_blog( $governing_site_id );
117114
$shared_sites = get_option( Constants::ONEDESIGN_SHARED_SITES, array() );
118115
foreach ( $shared_sites as &$site ) {
119116
if ( (int) $site['id'] === (int) $blog_id ) {
120-
$site['api_key'] = $api_key;
117+
$site['api_key'] = $secret_key;
121118
break;
122119
}
123120
}

languages/onedesign.pot

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgstr ""
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2025-10-24T11:54:51+00:00\n"
12+
"POT-Creation-Date: 2025-10-24T12:25:13+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: WP-CLI 2.12.0\n"
1515

@@ -265,15 +265,15 @@ msgid "Governing site removed successfully."
265265
msgstr ""
266266

267267
#: inc/classes/rest/class-multisite.php:152
268-
#: inc/classes/rest/class-multisite.php:206
268+
#: inc/classes/rest/class-multisite.php:207
269269
msgid "Invalid site info provided."
270270
msgstr ""
271271

272272
#: inc/classes/rest/class-multisite.php:163
273273
msgid "Failed to update governing site."
274274
msgstr ""
275275

276-
#: inc/classes/rest/class-multisite.php:217
276+
#: inc/classes/rest/class-multisite.php:218
277277
msgid "No governing site set. Please set a governing site first."
278278
msgstr ""
279279

@@ -477,7 +477,7 @@ msgstr ""
477477

478478
#: assets/build/js/multisite-plugin.js:1
479479
#: assets/src/admin/multisite-plugin/index.js:26
480-
msgid "Choose governing site from current multisite network other sites will be set as brand sites. This setting cannot be changed later and affects available features and configurations."
480+
msgid "Choose governing site from current multisite network. Other sites will be set as brand sites. This setting cannot be changed later and affects available features and configurations."
481481
msgstr ""
482482

483483
#: assets/build/js/multisite-plugin.js:1
@@ -783,7 +783,7 @@ msgstr ""
783783

784784
#: assets/build/js/patterns-library.js:4
785785
#: assets/src/admin/patterns/components/AppliedPatternsTab.js:226
786-
msgid "Once you remove a pattern you wan't be able to use it on brand sites, so please check and confirm you don't require it."
786+
msgid "Once you remove a pattern you won't be able to use it on brand sites, so please check and confirm you don't require it."
787787
msgstr ""
788788

789789
#: assets/build/js/patterns-library.js:4

uninstall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function onedesign_plugin_deletion(): void {
5858
delete_option( $option );
5959
}
6060

61-
// if its multisite, delete site options as well.
61+
// if it's multisite, delete site options as well.
6262
if ( is_multisite() ) {
6363
$site_options_to_delete = array(
6464
'onedesign_multisite_governing_site',

0 commit comments

Comments
 (0)