[wp-trac] [WordPress Trac] #4946: Duplicate code oddness in wp_insert_attachement

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 10 18:16:03 GMT 2007


#4946: Duplicate code oddness in wp_insert_attachement
--------------------------+-------------------------------------------------
 Reporter:  Otto42        |       Owner:  anonymous 
     Type:  defect        |      Status:  new       
 Priority:  lowest        |   Milestone:  2.4 (next)
Component:  Optimization  |     Version:  2.3       
 Severity:  trivial       |    Keywords:            
--------------------------+-------------------------------------------------
 Just noticed this bit of code in SVN:

 `
 if ( isset($to_ping) )
         $to_ping = preg_replace('|\s+|', "\n", $to_ping);
 else
         $to_ping = '';
 `

 ...is duplicated in the wp_insert_attachment function. Line numbers 1345
 and 1363.

 Accidental copy/paste, or is there a reason for this that is cleverer than
 my current ability to fathom?

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


More information about the wp-trac mailing list