WordPress.org

Make WordPress Core

Ticket #36375: 36375.diff

File 36375.diff, 790 bytes (added by joemcgill, 5 years ago)

Remove deprecated _wp_upload_dir_baseurl() from core.

  • src/wp-includes/deprecated.php

    diff --git src/wp-includes/deprecated.php src/wp-includes/deprecated.php
    index fed5fd8..ed798c1 100644
    function popuplinks( $text ) { 
    37403740        $text = preg_replace('/<a (.+?)>/i', "<a $1 target='_blank' rel='external'>", $text);
    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 }