I tried this hack with wp 1.0.2, but it didn’t work right. i had the same problem as with wp-mail.php : the category couldn’t be updated in table wp_post2cat.
looking at your hack, i realized that the code-part for updating
table wp_post2cat was missing in your new case ‘postbyfeeddemon’.
solution: insert this part (or copy it from case ‘post’):
if (!$post_categories) $post_categories[] = 1;
foreach ($post_categories as $post_category) {
// Double check it's not there already
$exists = $wpdb->get_row("SELECT * FROM $tablepost2cat WHERE post_id = $post_ID AND category_id = $post_category");
if (!$exists && $result) {
$wpdb->query("
INSERT INTO $tablepost2cat
(post_id, category_id)
VALUES
($post_ID, $post_category)
");
}
}
between this line:
$post_ID = $wpdb->get_var("SELECT ID FROM $tableposts ORDER BY ID DESC LIMIT 1");
and this line:
if (isset($sleep_after_edit) && $sleep_after_edit > 0) {
and table wp_post2cat will be updatet on rss-posts.
An avid fan of business, education, technology and finance. I lead a lean, highly focussed and capable team of Java Back End developers and Front End developers through a maze of complex software wizardry to fulfill the web maintenance needs of a large chemical manufacturer. As per Myers-Briggs Personality Types, I am an ESTJ. I pride in a project completed on time and according to plan. My hobbies include all kinds of technology, anything that I can taste and anything that goes fast or flies in the air. I like to read business books and comics in my spare time.
Could you please update this hack to WordPress 1.2 Mingus? Please?
I will look into that this weekend.
Ah, thanks!
We are eagerly awaiting your statement, oh master!
Pleeeeeeeease!
acesta este un testa 2-a liniea 3-a liniavreau sa vad daca merge numai
Hi,
I am using WordPress 1.0.1, but there is no b2edit.php
Where am I supposed to apply the hack?
Please let me know.
Thanks a lot in advance.
Dario
Look for post.php inside your wp-admin folder. Also, I have heard that this hack does not work in FeedDemon 1.0. You could try it anyways.
I tried this hack with wp 1.0.2, but it didn’t work right. i had the same problem as with wp-mail.php : the category couldn’t be updated in table wp_post2cat.
i postet my solution regarding wp-mail.php here
looking at your hack, i realized that the code-part for updating
table wp_post2cat was missing in your new case ‘postbyfeeddemon’.
solution: insert this part (or copy it from case ‘post’):
if (!$post_categories) $post_categories[] = 1;
foreach ($post_categories as $post_category) {
// Double check it's not there already
$exists = $wpdb->get_row("SELECT * FROM $tablepost2cat WHERE post_id = $post_ID AND category_id = $post_category");
if (!$exists && $result) {
$wpdb->query("
INSERT INTO $tablepost2cat
(post_id, category_id)
VALUES
($post_ID, $post_category)
");
}
}
between this line:
$post_ID = $wpdb->get_var("SELECT ID FROM $tableposts ORDER BY ID DESC LIMIT 1");
and this line:
if (isset($sleep_after_edit) && $sleep_after_edit > 0) {
and table wp_post2cat will be updatet on rss-posts.