Add deprecated notice and removal warning to _wp_upload_dir_baseurl()
.
Props DrewAPicture, azaozz. Fixes #36371. git-svn-id: https://develop.svn.wordpress.org/trunk@37112 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7987d26847
commit
0e99aea684
@ -3739,14 +3739,17 @@ function popuplinks( $text ) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the base URL of the uploads directory.
|
* Returns the base URL of the uploads directory.
|
||||||
|
* Note: this function will be removed in 4.6.
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
* @access private
|
* @access private
|
||||||
* @deprecated 4.5.0
|
* @deprecated 4.5.0 Use wp_get_upload_dir()
|
||||||
|
* @see wp_get_upload_dir()
|
||||||
*
|
*
|
||||||
* @return string The base URL.
|
* @return string The base URL.
|
||||||
*/
|
*/
|
||||||
function _wp_upload_dir_baseurl() {
|
function _wp_upload_dir_baseurl() {
|
||||||
|
_deprecated_function( __FUNCTION__, '4.5', 'wp_get_upload_dir()' );
|
||||||
$upload_dir = wp_get_upload_dir();
|
$upload_dir = wp_get_upload_dir();
|
||||||
return $upload_dir['baseurl'];
|
return $upload_dir['baseurl'];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user