WordPress.org

Make WordPress Core

Changeset 37112


Ignore:
Timestamp:
03/30/2016 03:09:16 PM (4 years ago)
Author:
azaozz
Message:

Add deprecated notice and removal warning to _wp_upload_dir_baseurl().

Props DrewAPicture, azaozz.
Fixes #36371.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/deprecated.php

    r36763 r37112  
    37403740/**
    37413741 * Returns the base URL of the uploads directory.
     3742 * Note: this function will be removed in 4.6.
    37423743 *
    37433744 * @since 4.4.0
    37443745 * @access private
    3745  * @deprecated 4.5.0
     3746 * @deprecated 4.5.0 Use wp_get_upload_dir()
     3747 * @see wp_get_upload_dir()
    37463748 *
    37473749 * @return string The base URL.
    37483750 */
    37493751function _wp_upload_dir_baseurl() {
     3752    _deprecated_function( __FUNCTION__, '4.5', 'wp_get_upload_dir()' );
    37503753    $upload_dir = wp_get_upload_dir();
    37513754    return $upload_dir['baseurl'];
Note: See TracChangeset for help on using the changeset viewer.