Skip to content

Commit

Permalink
Fix trim notices with esc functions when passing null
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed Mar 26, 2024
1 parent d67c1d2 commit 0a58b52
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 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' => html_entity_decode( esc_html( $item_id ) ),
'icon' => esc_attr( $icon ),
'name' => wp_strip_all_tags( html_entity_decode( $item_title ) ),
'edit_link' => html_entity_decode( esc_url( $edit_link ) ),
'link' => html_entity_decode( esc_url( $link ) ),
'id' => null !== $item_id ? html_entity_decode( esc_html( $item_id ) ) : '',
'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 ) ) : '',
'selected' => $selected,
);

Expand Down

0 comments on commit 0a58b52

Please sign in to comment.