Skip to content

Commit

Permalink
Use Elvis operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuasha420 committed Nov 30, 2022
1 parent 0533f2b commit 6930f15
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions includes/Core/Admin/Screens.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,7 @@ private function get_screens() {
'render_callback' => function( Context $context ) {
$is_view_only = ! $this->authentication->is_authenticated();

$setup_slug = $context->input()->filter( INPUT_GET, 'slug' );
if ( $setup_slug ) {
$setup_slug = htmlspecialchars( $setup_slug );
}
$setup_slug = htmlspecialchars( $context->input()->filter( INPUT_GET, 'slug' ) ?: '' );
$reauth = $context->input()->filter( INPUT_GET, 'reAuth', FILTER_VALIDATE_BOOLEAN );
if ( $context->input()->filter( INPUT_GET, 'permaLink' ) ) {
?>
Expand Down

0 comments on commit 6930f15

Please sign in to comment.