Replace wp_upload_dir() with the new wp_get_upload_dir() in all cases where a file is not being uploaded. Deprecate _wp_upload_dir_baseurl(), and replace it with wp_get_upload_dir().
See #34359. Built from https://develop.svn.wordpress.org/trunk@36569 git-svn-id: http://core.svn.wordpress.org/trunk@36536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -2205,7 +2205,7 @@ function discover_pingback_server_uri( $url, $deprecated = '' ) {
|
||||
return false;
|
||||
|
||||
//Do not search for a pingback server on our own uploads
|
||||
$uploads_dir = wp_upload_dir();
|
||||
$uploads_dir = wp_get_upload_dir();
|
||||
if ( 0 === strpos($url, $uploads_dir['baseurl']) )
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user