Make WordPress Core


Ignore:
Timestamp:
02/18/2016 12:23:04 AM (9 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/comment.php

    r36566 r36569  
    22062206
    22072207    //Do not search for a pingback server on our own uploads
    2208     $uploads_dir = wp_upload_dir();
     2208    $uploads_dir = wp_get_upload_dir();
    22092209    if ( 0 === strpos($url, $uploads_dir['baseurl']) )
    22102210        return false;
Note: See TracChangeset for help on using the changeset viewer.