Fix phpcs errors

This commit is contained in:
dinamiko 2021-07-12 11:22:19 +02:00
parent db4e1422d8
commit 362b782387
2 changed files with 1 additions and 2 deletions

View file

@ -122,7 +122,7 @@ class SettingsPageAssets {
)
);
} catch ( RuntimeException $exception ) {
// Already displaying an admin message in SettingsListener.
return;
}
}
}

View file

@ -160,7 +160,6 @@ class SettingsListener {
'admin_notices',
function () use ( $exception ) {
printf(
// translators: %s is the error message.
'<div class="notice notice-error"><p>%s</p></div>',
$exception->getMessage()
);