Skip to content

Commit

Permalink
PHP 8.1 compat fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed Mar 28, 2024
1 parent 7f30331 commit 7137869
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions classes/fields/pick.php
Original file line number Diff line number Diff line change
Expand Up @@ -1703,11 +1703,11 @@ public function build_dfv_field_item_data_recurse_item( $item_id, $item_title, $
}

$item = array(
'id' => null !== $item_id ? html_entity_decode( esc_html( $item_id ) ) : '',
'id' => null !== $item_id ? html_entity_decode( esc_html( $item_id ), ENT_COMPAT ) : '',
'icon' => null !== $icon ? esc_attr( $icon ) : '',
'name' => null !== $item_title ? wp_strip_all_tags( html_entity_decode( $item_title ) ) : '',
'edit_link' => null !== $edit_link ? html_entity_decode( esc_url( $edit_link ) ) : '',
'link' => null !== $link ? html_entity_decode( esc_url( $link ) ) : '',
'name' => null !== $item_title ? wp_strip_all_tags( html_entity_decode( $item_title, ENT_COMPAT ) ) : '',
'edit_link' => null !== $edit_link ? html_entity_decode( esc_url( $edit_link ), ENT_COMPAT ) : '',
'link' => null !== $link ? html_entity_decode( esc_url( $link ), ENT_COMPAT ) : '',
'selected' => $selected,
);

Expand Down

0 comments on commit 7137869

Please sign in to comment.