[wp-trac] [WordPress Trac] #25420: Document get_header_image() return value better

WordPress Trac noreply at wordpress.org
Wed Sep 25 20:15:20 UTC 2013


#25420: Document get_header_image() return value better
--------------------------------+-----------------------------
 Reporter:  rulatir             |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  WordPress.org site  |    Version:
 Severity:  normal              |   Keywords:
--------------------------------+-----------------------------
 The documentation for get_header_image() here:

 http://codex.wordpress.org/Function_Reference/get_header_image

 says that the function returns "header image path". If the word ''path''
 is to be understood as it is apparently understood throughout the Codex,
 then this documentation is incorrect, because the function actually
 returns a ''url'', not a ''path''.

 I realized only now that I was getting a full HTTP URL with scheme, host
 and path from this function. I was happily passing it to getimagesize()
 and it just happened to work because allow_url_fopen was on. Then the
 customer moved the site to another hosting account (with the same provider
 but different setup) and it stopped working.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25420>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list