[wp-trac] [WordPress Trac] #36371: Add "deprecated" to _wp_upload_dir_baseurl()
    WordPress Trac 
    noreply at wordpress.org
       
    Tue Mar 29 17:13:39 UTC 2016
    
    
  
#36371: Add "deprecated" to _wp_upload_dir_baseurl()
------------------------------+-----------------------
 Reporter:  azaozz            |       Owner:  azaozz
     Type:  defect (bug)      |      Status:  assigned
 Priority:  normal            |   Milestone:  4.5
Component:  General           |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------
Comment (by DrewAPicture):
 [attachment:36371.patch] looks good. Should we not list
 `wp_get_upload_dir()` as the alternative though? If so, we'll need to
 adjust the docs slightly, e.g.
 {{{#!php
 <?php
 /**
  * Returns the base URL of the uploads directory.
  *
  * @since 4.4.0
  * @access private
  * @deprecated 4.5.0 Use wp_get_upload_dir()
  * @see wp_get_upload_dir()
  *
  * @return string The base URL.
  */
 }}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36371#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list