[wp-trac] Re: [WordPress Trac] #8460: Imports produce duplicate posts in some cases

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 3 08:06:59 GMT 2008

#8460: Imports produce duplicate posts in some cases
 Reporter:  tott                                         |        Owner:  tott
     Type:  defect                                       |       Status:  new 
 Priority:  normal                                       |    Milestone:  2.8 
Component:  Import                                       |      Version:      
 Severity:  normal                                       |   Resolution:      
 Keywords:  import, duplicate, needs-testing, has-patch  |  
Comment (by tott):

 I was thinking to split sanitation and test logic into seperate tickets,
 but I am reconsidering this now as the current test logic within
 post_exists prevents empty titles and or contents to be checked correctly.
 The input values of the post_exists function should be a logical AND
 connection and not a logical and between content/title and post_date as it
 is right now.

 In this patch I am making and AND connection between all non empty values
 that are passed on to post_exists.

 It might make sense even to remove the test if a value is empty in order
 to get a correct result.

 Please give me some feedback on how to proceed here. Putting only the
 sanitation fix in the post_exists function will not fix the ticket as
 empty titles/content will still not be recognized correctly.

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

More information about the wp-trac mailing list