Title: FeedWordPress Duplicate Post Filter
Author: Mark Allen
Published: <strong>اپریل 13, 2008</strong>
Last modified: مارچ 2, 2012

---

پلگ انز تلاش کریں

یہ پلگ ان **ورڈپریس کے تازہ ترین 3 ریلیزوں کے ساتھ ٹیسٹ نہیں کیا گیا ہے**۔ اب یہ
برقرار نہیں رکھا جا سکتا یا معاونت نہیں کی جا سکتی اور اس کو ورڈپریس کے تازہ ترین
ورژنز کے ساتھ استعمال کیے جانے پر مطابقت کے مسائل ہو سکتے ہیں۔

![](https://s.w.org/plugins/geopattern-icon/feedwordpress-duplicate-post-filter.
svg)

# FeedWordPress Duplicate Post Filter

 منجانب [Mark Allen](https://profiles.wordpress.org/mrallen1/)

[ڈاؤن لوڈ کریں](https://downloads.wordpress.org/plugin/feedwordpress-duplicate-post-filter.1.5.zip)

 * [تفصیلات](https://ur.wordpress.org/plugins/feedwordpress-duplicate-post-filter/#description)
 * [جائزے](https://ur.wordpress.org/plugins/feedwordpress-duplicate-post-filter/#reviews)
 *  [انسٹالیشن](https://ur.wordpress.org/plugins/feedwordpress-duplicate-post-filter/#installation)
 * [ڈیولپمنٹ](https://ur.wordpress.org/plugins/feedwordpress-duplicate-post-filter/#developers)

 [معاونت](https://wordpress.org/support/plugin/feedwordpress-duplicate-post-filter/)

## تفصیل

This is a filter for the FeedWordPress plugin. **If you don’t use FeedWordPress 
this plugin will not be useful to you.**

I wrote this filter after seeing the same post in my database 32 times. Maybe you’ve
had the same problem, and I hope this filter helps you solve it.

The filter works by hooking the "syndicated_post” action of FeedWordPress and the"
save_post” action in the core of WordPress.

For each potential post from a feed, the plugin attempts to find an identical SHA1
hash of the first 1024 non-whitespace characters (stripped of HTML tags) of the 
post content.
 If it finds a match the post is skipped. If not, the post is processed
and a hash is inserted into the post’s metadata. (Stored as key _dpf.)

**NOTE:** No filter is going to be 100% accurate. This filter will stop _most_ or
_some_ duplicates, but in all likelihood, will not stop _all_ of them.
 If you want
a filter that stops _all_ duplicates, this isn’t your solution. In my test installation
I had 5 posted duplicates out of 125 syndicated posts (4% false negative) out of
a corpus of about 300 duplicates. Most of those false negatives were due to slightly
different HTML markup in the post content itself. So my approach isn’t perfect, 
but it is "good enough” for me.

### Important Note

This filter can only check future syndication posts. Whatever duplicates are already
present in your WordPress installation you’ll have to remove/clean-up on your own.

### License

Copyright (C) 2012 by Mark R. Allen
 All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

 * Redistributions of source code must retain the above copyright notice, this list
   of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this
   list of conditions and the following disclaimer in the documentation and/or other
   materials provided with the distribution.
 * Neither the name of Mark Allen nor the names of any contributors may be used 
   to endorse or promote products derived from this software without specific prior
   written permission.

## انسٹالیشن

 1. Download the plugin and uncompress it.
 2. Plop it in the same directory as feedwordpress.php
 3. Enable this filter in WordPress by visiting the "Plugin” menu and activating it.

## جائزے

There are no reviews for this plugin.

## شراکت دار اور ڈیویلپرز

“FeedWordPress Duplicate Post Filter” اوپن سورس سافٹ ویئر ہے۔ مندرجہ ذیل لوگوں نے
اس پلگ ان میں حصہ لیا:

شراکت دار

 *   [ Mark Allen ](https://profiles.wordpress.org/mrallen1/)

[“FeedWordPress Duplicate Post Filter” کا اپنی زبان میں ترجمہ کریں۔](https://translate.wordpress.org/projects/wp-plugins/feedwordpress-duplicate-post-filter)

### ڈویلپمینٹ میں دلچسپی ہے؟

[کوڈ براؤز کریں](https://plugins.trac.wordpress.org/browser/feedwordpress-duplicate-post-filter/)،
[ایس این وی ریپوزیٹری](https://plugins.svn.wordpress.org/feedwordpress-duplicate-post-filter/)
کو چیک کریں یا [ڈویلپمینٹ لاگ](https://plugins.trac.wordpress.org/log/feedwordpress-duplicate-post-filter/)
کو سبسکرائب کریں بذریعہ [آر ایس ایس](https://plugins.trac.wordpress.org/log/feedwordpress-duplicate-post-filter/?limit=100&mode=stop_on_copy&format=rss)۔

## چینج لاگ

1.5 – Remove HTML tags before computing hash.

1.4 – Overhauled strategy for duplicate detection. This works better than previous
strategies.

1.3 – Fixed a dumb typo. Rewrote the DB query using better wpdb methods (prepare
and query). Changed from htmlescape2 to esc_html WP function.

1.2 – Escaping the single quote (‘) character sometimes gives a conversion of ’ 
instead of ’ This caused a false negative and duplicate posts would be stored. Consider
this release a temporary hack until I write a proper regex based title escape function.

1.1 – Characters in post-titles like ‘&’ were not getting converted to HTML entities.
This caused the post title comparison to register a false negative. (So duplicate
posts would be added to your feed.)

1.0 – initial release

## میٹا

 *  Version **1.5**
 *  Last updated **14 سال پہلے**
 *  Active installations **200+**
 *  WordPress version ** 2.8 یا اس سے جدید **
 *  Tested up to **3.3.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/feedwordpress-duplicate-post-filter/)
 * Tags
 * [duplicate posts](https://ur.wordpress.org/plugins/tags/duplicate-posts/)[feedwordpress](https://ur.wordpress.org/plugins/tags/feedwordpress/)
 *  [اعلی درجے کا منظر](https://ur.wordpress.org/plugins/feedwordpress-duplicate-post-filter/advanced/)

## درجہ بندیاں

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/feedwordpress-duplicate-post-filter/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/feedwordpress-duplicate-post-filter/reviews/)

## شراکت دار

 *   [ Mark Allen ](https://profiles.wordpress.org/mrallen1/)

## معاونت

کچھ کہنا ہے؟ مدد چاہیے؟

 [معاونتی فورم دیکھیں](https://wordpress.org/support/plugin/feedwordpress-duplicate-post-filter/)