Skip to content

Commit 15a2a0f

Browse files
committed
Improve theme/plugin unavailability messaging
1 parent bec8cbe commit 15a2a0f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

assets/src/components/site-scan-results/plugins-with-amp-incompatibility.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function PluginsWithAmpIncompatibility( {
7272
<SiteScanSourcesList
7373
sources={ sources }
7474
inactiveSourceNotice={ __( 'This plugin has been deactivated since last site scan.' ) }
75-
uninstalledSourceNotice={ __( 'This plugin has been uninstalled or the plugins data is not available.' ) }
75+
uninstalledSourceNotice={ __( 'This plugin has been uninstalled or its metadata is unavailable.' ) }
7676
/>
7777
</SiteScanResults>
7878
);

assets/src/components/site-scan-results/themes-with-amp-incompatibility.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function ThemesWithAmpIncompatibility( {
7272
<SiteScanSourcesList
7373
sources={ sources }
7474
inactiveSourceNotice={ __( 'This theme has been deactivated since last site scan.' ) }
75-
uninstalledSourceNotice={ __( 'This theme has been uninstalled or the themes data is not available.' ) }
75+
uninstalledSourceNotice={ __( 'This theme has been uninstalled or its metadata is unavailable.' ) }
7676
/>
7777
</SiteScanResults>
7878
);

tests/e2e/specs/admin/site-scan-panel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ describe( 'AMP settings screen Site Scan panel', () => {
163163
await visitAdminPage( 'admin.php', 'page=amp-options' );
164164

165165
await expect( page ).toMatchElement( '.site-scan-results--plugins .site-scan-results__source-slug', { text: /e2e-tests-demo-plugin/ } );
166-
await expect( page ).toMatchElement( '.site-scan-results--plugins .site-scan-results__source-notice', { text: /This plugin has been uninstalled or the plugins data is not available../ } );
166+
await expect( page ).toMatchElement( '.site-scan-results--plugins .site-scan-results__source-notice', { text: /This plugin has been uninstalled or its metadata is unavailable../ } );
167167

168168
// Clean up.
169169
await installLocalPlugin( 'e2e-tests-demo-plugin' );

0 commit comments

Comments
 (0)