General: remove variable set needlessly in wp_check_jsonp_callback()
.
See #37771. git-svn-id: https://develop.svn.wordpress.org/trunk@38308 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b4fca4a558
commit
0774c039f4
@ -3137,7 +3137,7 @@ function wp_check_jsonp_callback( $callback ) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$jsonp_callback = preg_replace( '/[^\w\.]/', '', $callback, -1, $illegal_char_count );
|
preg_replace( '/[^\w\.]/', '', $callback, -1, $illegal_char_count );
|
||||||
|
|
||||||
return 0 === $illegal_char_count;
|
return 0 === $illegal_char_count;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user