Add deprecated notice and removal warning to _wp_upload_dir_baseurl().

Props DrewAPicture, azaozz.
Fixes #36371.
Built from https://develop.svn.wordpress.org/trunk@37112


git-svn-id: http://core.svn.wordpress.org/trunk@37079 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2016-03-30 15:10:27 +00:00
parent 6a3acea8b5
commit bfd19e92f5
2 changed files with 5 additions and 2 deletions

View File

@ -3739,14 +3739,17 @@ function popuplinks( $text ) {
/**
* Returns the base URL of the uploads directory.
* Note: this function will be removed in 4.6.
*
* @since 4.4.0
* @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.
*/
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.5-RC1-37103';
$wp_version = '4.5-RC1-37112';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.