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:
Scott Taylor 2016-08-22 20:50:31 +00:00
parent b4fca4a558
commit 0774c039f4

View File

@ -3137,7 +3137,7 @@ function wp_check_jsonp_callback( $callback ) {
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;
}