From 137cf0d4610e6e29594ea468d7f21e0d4c25f051 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Wed, 3 May 2023 09:56:32 +0000 Subject: [PATCH] Coding Standards: Remove unnecessary variable escapement in Bookmark Administration API. This changeset removes an unnecessary `esc_html()` escapement for `link_url`, as `esc_url()` already does the job. Follow-up to [11383]. Props utsav72640, audrasjb. Fixes #58239. git-svn-id: https://develop.svn.wordpress.org/trunk@55704 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/bookmark.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wp-admin/includes/bookmark.php b/src/wp-admin/includes/bookmark.php index abb068319c..30743f2b9a 100644 --- a/src/wp-admin/includes/bookmark.php +++ b/src/wp-admin/includes/bookmark.php @@ -34,7 +34,6 @@ function edit_link( $link_id = 0 ) { ); } - $_POST['link_url'] = esc_html( $_POST['link_url'] ); $_POST['link_url'] = esc_url( $_POST['link_url'] ); $_POST['link_name'] = esc_html( $_POST['link_name'] ); $_POST['link_image'] = esc_html( $_POST['link_image'] );