[wp-trac] Re: [WordPress Trac] #7050: Patch for WP_CONTENT_URL

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 3 07:27:50 GMT 2009


#7050: Patch for WP_CONTENT_URL
------------------------------+---------------------------------------------
 Reporter:  msi08             |        Owner:  anonymous
     Type:  defect (bug)      |       Status:  closed   
 Priority:  normal            |    Milestone:  2.6      
Component:  General           |      Version:  2.6      
 Severity:  normal            |   Resolution:  fixed    
 Keywords:  has-patch tested  |  
------------------------------+---------------------------------------------

Comment(by DD32):

 You'll be best adding a filter to the option_home and option_site_url
 filters (You'll need to check theaccessing exact format of that filter..),
 And checking based on the IP address thats accessing it.

 ie. if internal user is accessing, change it to internal.example, else
 leave as www.example

 Another option might be to filter on site_url() in hope that the rest of
 WP uses it (Which i think it is used in many places)

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


More information about the wp-trac mailing list