simplify should_render logic

This commit is contained in:
David Remer 2020-10-01 09:00:09 +03:00
parent 81bedf3a80
commit 2a099b0634

View file

@ -129,9 +129,6 @@ class OnboardingAssets {
*/
private function should_render_onboarding_script(): bool {
global $current_section;
if ( 'ppcp-gateway' !== $current_section ) {
return false;
}
return true;
return 'ppcp-gateway' === $current_section;
}
}