Ticket #859: favatars.diff
| File favatars.diff, 1.8 KB (added by carlok, 4 years ago) |
|---|
-
.php
old new 2 2 /* 3 3 Plugin Name: Favatars 4 4 Plugin URI: http://dev.wp-plugins.org/wiki/favatars 5 Description: A system to show favicon.ico files as avatars: "Favatars". Entire recode by <a href="http://www.thecodepro.com/">Jeff Minard</a> <br /> Previous Versions care of: <a href="http://www.noscope.com">Joen</a>, <a href="http://www.peej.co.uk/projects/favatars.html">Paul James</a>, and <a href="http://www.somefoolwitha.com">Matthew</a>.5 Description: A system to show favicon.ico files as avatars: "Favatars". Entire recode by <a href="http://www.thecodepro.com/">Jeff Minard</a> (fixes for 2.5.x by <a href="http://perassi.org/">Carlo Perassi</a>).<br /> Previous Versions care of: <a href="http://www.noscope.com">Joen</a>, <a href="http://www.peej.co.uk/projects/favatars.html">Paul James</a>, and <a href="http://www.somefoolwitha.com">Matthew</a>. 6 6 Version: 2 7 7 Author: Jeff Minard 8 8 Author URI: http://thecodepro.com/ … … 11 11 // Nothing more to see here. All configuration is done via the admin panel. 12 12 // Move along. 13 13 14 global $comment, $wpdb; 15 14 16 $comment_favicon_exists = fav_maybe_add_column($wpdb->comments, 'comment_favicon_url', "ALTER TABLE `$wpdb->comments` ADD `comment_favicon_url` TEXT NOT NULL"); 15 17 16 18 if( $comment_favicon_exists == false ) … … 208 210 209 211 DEFINE(SP,' '); 210 212 211 $request = "SELECT comment_ID, comment_author_url FROM $wpdb->comments WHERE comment_favicon_url = '' AND comment_author_url != ''";213 $request = "SELECT comment_ID, comment_author_url FROM $wpdb->comments WHERE ((comment_favicon_url = '') AND (comment_author_url != '') AND (comment_type != ''))"; 212 214 213 215 $comments = $wpdb->get_results($request); 214 216
