Changeset 840334
- Timestamp:
- 01/17/2014 02:40:34 PM (12 years ago)
- Location:
- fb-comments-importer
- Files:
-
- 5 edited
-
assets/screenshot-1.png (modified) (previous)
-
assets/screenshot-2.png (modified) (previous)
-
trunk/FBComments.class.inc (modified) (3 diffs)
-
trunk/index.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fb-comments-importer/trunk/FBComments.class.inc
r775289 r840334 273 273 global $wpdb; 274 274 $num = $wpdb->get_var( "SELECT COUNT(*) FROM ".$wpdb->prefix."comments WHERE comment_post_ID = '" . $cid . "' AND comment_content = '" . $mess . "'"); 275 return $num; 275 if (!$num) { 276 return "0"; 277 } else { 278 return $num; 279 } 276 280 } 277 281 } … … 286 290 global $wpdb; 287 291 $num = $wpdb->get_var( "SELECT COUNT(*) FROM ".$wpdb->prefix."commentmeta WHERE comment_id = '" . $cid . "' AND meta_value = '" . $mv . "'"); 288 return $num; 292 if(!$num){ 293 return "0"; 294 } else { 295 return $num; 296 } 289 297 } 290 298 … … 299 307 global $wpdb; 300 308 $num = $wpdb->get_var( "SELECT comment_ID FROM ".$wpdb->prefix."comments WHERE comment_post_ID = '" . $postid . "' AND comment_agent = '" . $user_agent . "'"); 301 return $num; 309 if(!$num){ 310 return "0"; 311 } else { 312 return $num; 313 } 302 314 } 303 315 -
fb-comments-importer/trunk/index.php
r775289 r840334 4 4 Plugin URI: http://projects.geekydump.com/ 5 5 Description: Imports Facebook comments to your Wordpress site and gives it a SEO boost. 6 Version: 1.3. 26 Version: 1.3.3 7 7 Author: Ivan M & steelmaiden 8 8 */ -
fb-comments-importer/trunk/readme.txt
r775300 r840334 4 4 Tags: fb comments, facebook, comments, fb comments import, facebook comments, facebook comments import, discussion 5 5 Requires at least: 3.0 6 Tested up to: 3. 6.17 Stable tag: 1.3. 26 Tested up to: 3.8 7 Stable tag: 1.3.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 44 44 == Changelog == 45 45 46 = 1.3.3 2013-01-17 = 47 * Fixed another bug with duplicate comments being imported 48 * Better compatibility with Wordpress 3.8 49 46 50 = 1.3.2 2013-09-19 = 47 51 * Improved duplicate comments detection.
Note: See TracChangeset
for help on using the changeset viewer.