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. git-svn-id: https://develop.svn.wordpress.org/trunk@37676 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
72c0d63d05
commit
73eb2c9cd4
|
@ -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'];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue