Wordpress 2.1 şi Subscribe to comments

23 Jan

Noroc cu add că mi-a zis că sunt probleme la postarea comment-urilor. Se pare că nu era compatibilitate între vechiul plugin şi noua platformă de blogging. Rezultatul:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/vhosts/iamntz.com/subdomains/blog/httpdocs/wp-content/plugins/subscribe-to-comments.php on line 438

Trebuie făcut un singur lucru: înlocuită linia 438 cu următorul cod:

$previously_subscribed = ( $wpdb->get_var("SELECT comment_subscribe from $wpdb->comments WHERE comment_post_ID = '$postid' AND LCASE(comment_author_email) = '$email' AND comment_subscribe = 'Y' LIMIT 1") || in_array(stripslashes($email), (array)get_post_meta($postid, '_sg_subscribe-to-comments')) ) ? true : false;
Scris în categoria: Wtf?

2 Comentarii »

  1. ha, la mine n-am verificat comentariile :))

  2. Super tare :))

Lasă un comentariu

Poţi folosi câteva taguri XHTML: <blockquote> <strong> <a> <em>

Pentru a posta secvenţe de cod, foloseşte
<pre lang="php/css/html/javascript"> CODUL TĂU <pre>