[wp-trac] [WordPress Trac] #58239: Bookmark Administration on edit_link function in extra remove ( $_POST['link_url'] = esc_html( $_POST['link_url'] ); )

WordPress Trac noreply at wordpress.org
Wed May 3 05:42:51 UTC 2023


#58239: Bookmark Administration on edit_link function in extra remove (
$_POST['link_url']   = esc_html( $_POST['link_url'] ); )
------------------------------+-------------------------------
 Reporter:  utsav72640        |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Administration    |    Version:
 Severity:  normal            |   Keywords:  changes-requested
  Focuses:  coding-standards  |
------------------------------+-------------------------------
 I have checked in edit_link function on wp-admin/includes/bookmark.php

 And if I look at the code there are add an extra esc_html function to
 sanitize the ( $_POST['link_url'] ).

 After reviewing the example provided for the add_link action, it appears
 that there is no need to include an esc_html function when handling the (
 $_POST['link_url'] ) parameter.

 Can you please check my patch and share your feedback.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58239>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list