(REALLY) Eliminate use of `extract()` in `wp_insert_link()`.
See #22400. Built from https://develop.svn.wordpress.org/trunk@28408 git-svn-id: http://core.svn.wordpress.org/trunk@28235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
54321f4c6e
commit
ff665b2f38
|
@ -149,8 +149,6 @@ function wp_insert_link( $linkdata, $wp_error = false ) {
|
|||
$args = wp_parse_args( $linkdata, $defaults );
|
||||
$r = sanitize_bookmark( $args, 'db' );
|
||||
|
||||
extract( wp_unslash( $linkdata ), EXTR_SKIP );
|
||||
|
||||
$update = false;
|
||||
if ( ! empty( $r['link_id'] ) ) {
|
||||
$update = true;
|
||||
|
|
Loading…
Reference in New Issue