Media: remove `_wp_upload_dir_baseurl()`.

`_wp_upload_dir_baseurl()` is a private function introduced in 4.4
as part of the "responsive images" feature. It was for runtime
caching of the URL to the uploads directory. It is deprecated in
4.5 with the introduction of `wp_get_upload_dir()`.

Outside core, it's only used as part of a back-compat shim in the
original feature plugin for responsive images (ricg-responsive-images),
which includes its own version of the function definition, so it's
safe to remove from core.

Fixes #36375.
Built from https://develop.svn.wordpress.org/trunk@37676


git-svn-id: http://core.svn.wordpress.org/trunk@37642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Joe McGill 2016-06-10 16:52:30 +00:00
parent be38b14e05
commit 820d7174c2
2 changed files with 1 additions and 19 deletions

View File

@ -3740,21 +3740,3 @@ function popuplinks( $text ) {
$text = preg_replace('/<a (.+?)>/i', "<a $1 target='_blank' rel='external'>", $text);
return $text;
}
/**
* Returns the base URL of the uploads directory.
* Note: this function will be removed in 4.6.
*
* @ignore
* @since 4.4.0
* @access private
* @deprecated 4.5.0 Use wp_get_upload_dir()
* @see wp_get_upload_dir()
*
* @return string The base URL.
*/
function _wp_upload_dir_baseurl() {
_deprecated_function( __FUNCTION__, '4.5', 'wp_get_upload_dir()' );
$upload_dir = wp_get_upload_dir();
return $upload_dir['baseurl'];
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-alpha-37675';
$wp_version = '4.6-alpha-37676';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.