Skip to content

Commit

Permalink
Fix - PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
NirajChaudhary143 committed Sep 5, 2024
1 parent 41f64a7 commit 95021ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/evf-core-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ function evf_html_attributes( $id = '', $class = array(), $datas = array(), $att
$id = trim( $id );
$parts = array();

$is_edit_entry = isset( $_GET['edit-entry'] ) && ! sanitize_text_field( wp_unslash( empty( $_GET['edit-entry'] ) ) ) ? true : false;
$is_edit_entry = isset( $_GET['edit-entry'] ) && ! sanitize_text_field( wp_unslash( empty( $_GET['edit-entry'] ) ) ) ? true : false;

if ( ! empty( $id ) ) {
$id = sanitize_html_class( $id );
Expand All @@ -987,7 +987,7 @@ function evf_html_attributes( $id = '', $class = array(), $datas = array(), $att
$class = evf_sanitize_classes( $class, true );
if ( ! empty( $class ) ) {
// While editing hidden field should be visible.
if( $is_edit_entry ) {
if ( $is_edit_entry ) {
$class = str_replace( 'evf-field-hidden', '', $class );
}
$parts[] = 'class="' . $class . '"';
Expand Down

0 comments on commit 95021ca

Please sign in to comment.