From bfd19e92f5e50111fbfb3443bbce1cd35d4e3753 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 30 Mar 2016 15:10:27 +0000 Subject: [PATCH] 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 --- wp-includes/deprecated.php | 5 ++++- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index 5d871be806..2e7f2abe6f 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -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']; } diff --git a/wp-includes/version.php b/wp-includes/version.php index e124cdd04e..183e1065f5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.