WordPress.org

Make WordPress Core

Changeset 37676


Ignore:
Timestamp:
06/10/2016 04:51:15 PM (4 years ago)
Author:
joemcgill
Message:

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.

File:
1 edited

Legend:

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

    r37674 r37676  
    37413741    return $text;
    37423742}
    3743 
    3744 /**
    3745  * Returns the base URL of the uploads directory.
    3746  * Note: this function will be removed in 4.6.
    3747  *
    3748  * @ignore
    3749  * @since 4.4.0
    3750  * @access private
    3751  * @deprecated 4.5.0 Use wp_get_upload_dir()
    3752  * @see wp_get_upload_dir()
    3753  *
    3754  * @return string The base URL.
    3755  */
    3756 function _wp_upload_dir_baseurl() {
    3757     _deprecated_function( __FUNCTION__, '4.5', 'wp_get_upload_dir()' );
    3758     $upload_dir = wp_get_upload_dir();
    3759     return $upload_dir['baseurl'];
    3760 }
Note: See TracChangeset for help on using the changeset viewer.