Make WordPress Core


Ignore:
Timestamp:
02/18/2016 12:23:04 AM (8 years ago)
Author:
azaozz
Message:

Replace wp_upload_dir() with the new wp_get_upload_dir() in all cases where a file is not being uploaded. Deprecate _wp_upload_dir_baseurl(), and replace it with wp_get_upload_dir().

See #34359.

File:
1 edited

Legend:

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

    r36416 r36569  
    37173717    return $text;
    37183718}
     3719
     3720/**
     3721 * Returns the base URL of the uploads directory.
     3722 *
     3723 * @since 4.4.0
     3724 * @access private
     3725 * @deprecated 4.5.0
     3726 *
     3727 * @return string The base URL.
     3728 */
     3729function _wp_upload_dir_baseurl() {
     3730    $upload_dir = wp_get_upload_dir();
     3731    return $upload_dir['baseurl'];
     3732}
Note: See TracChangeset for help on using the changeset viewer.