[wp-trac] Re: [WordPress Trac] #7773: Duplicate enclosure attributes are created when a client resubmits a post with identical enclosure

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 19 20:22:26 GMT 2009


#7773: Duplicate enclosure attributes are created when a client resubmits a post
with identical enclosure
--------------------------+-------------------------------------------------
 Reporter:  redsweater    |        Owner:  josephscott
     Type:  defect (bug)  |       Status:  new        
 Priority:  normal        |    Milestone:  2.8        
Component:  General       |      Version:             
 Severity:  normal        |   Resolution:             
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by redsweater):

 The patch provided was not quite working because the test for "!found" was
 missing the $ for the variable name.

 I fixed the patch and also extracted the duplicated logic into a function
 add_enclosure_if_new().

 I tested it with MarsEdit as a client and confirmed that the duplicate
 enclosures are no longer being created.

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


More information about the wp-trac mailing list