[wp-trac] [WordPress Trac] #12768: Store only relative path in theme_mod() for 'header_image' and 'background_image'

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 1 23:06:26 UTC 2010


#12768: Store only relative path in theme_mod() for 'header_image' and
'background_image'
--------------------------+-------------------------------------------------
 Reporter:  mikeschinkel  |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Themes        |     Version:  3.0            
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------

Comment(by hakre):

 I think the full path is necessary beause of the pretty permalink option.
 Imagine you are on same month archive and the link must work directly read
 out from options w/o any additional calculation. It's somewhat a concept
 in Wordpress to use absolute URLs instead of relative ones, so it's a
 constraint in using the software.

 For deploy, you need to go through all (serialized) option values and
 replace the old URL with the new one. It's a PITA, yeah, there are some
 tools that deal with that.

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


More information about the wp-trac mailing list