Not logged in. · Lost password · Registration disabled
Forum: Overview Questions / Fragen RSS
wp_categories and terms - invalid
With a WordPress 2.3 new installation categories are not!
tristangrimaux (Guest) #1
No profile available.
Link to this post
Subject: wp_categories and terms - invalid
Chabged in sendmail.php->function GetPostCategories(&$subject) {


#            $sql_name = 'SELECT cat_ID
#                         FROM ' . $wpdb->categories. '
#                         WHERE cat_name=\'' . addslashes($match) . '\'';
#            $sql_id = 'SELECT cat_ID
#                       FROM ' . $wpdb->categories. '
#                       WHERE cat_ID=\'' . addslashes($match) . '\'';
#            $sql_sub_name = 'SELECT cat_ID
#                             FROM ' . $wpdb->categories. '
#                             WHERE cat_name LIKE \'' . addslashes($match) . '%\' limit 1';

            $sql_name = 'SELECT term_ID as cat_ID
                         FROM ' . $wpdb->terms. '
                         WHERE slug=\'' . addslashes($match) . '\'';
            $sql_id = 'SELECT term_ID as cat_ID
                       FROM ' . $wpdb->terms. '
                       WHERE term_ID=\'' . addslashes($match) . '\'';
            $sql_sub_name = 'SELECT term_ID as cat_ID
                             FROM ' . $wpdb->terms. '
                             WHERE slug LIKE \'' . addslashes($match) . '%\' limit 1';



It is not nice because it won't work on previes installations but is working for me!!!
This post was edited on 2007-10-13, 01:10 by Morty.
Morty (Administrator) #2
User title: Author
Member since Jun 2007 · 928 posts
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
Where does that code come from? *looking confused*
tristangrimaux (Guest) #3
No profile available.
Link to this post
came from the file sendmail.php. The commented text its the original
Morty (Administrator) #4
User title: Author
Member since Jun 2007 · 928 posts
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
I can't find that code. *looking even more confused* Where did you download it?
tristangrimaux (Guest) #5
No profile available.
Link to this post
Subject: I got it wrong!!!
I was changing POSTIE!!!! not post notification!!!!
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum