[wp-trac] [WordPress Trac] #24824: get_attached_file() treats fully qualified URLs as relative

WordPress Trac noreply at wordpress.org
Tue Jul 23 17:39:15 UTC 2013


#24824: get_attached_file() treats fully qualified URLs as relative
----------------------------------+------------------------------
 Reporter:  tobiaskochsonlinenet  |       Owner:
     Type:  defect (bug)          |      Status:  new
 Priority:  normal                |   Milestone:  Awaiting Review
Component:  Media                 |     Version:  trunk
 Severity:  normal                |  Resolution:
 Keywords:  has-patch             |
----------------------------------+------------------------------

Comment (by tobiaskochsonlinenet):

 Oops, actually the regular expression should read:
 {{{
 !preg_match('|://|', $file)
 }}}

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


More information about the wp-trac mailing list