[wp-testers] hello

CŽedric cedric at feelfree.homelinux.com
Sun Jun 19 21:24:32 GMT 2005


CŽedric wrote:

> CŽedric wrote:
>
>> I've tried to compose a new post, but when I push the button "Save 
>> and Continue Editing" the post is stored as a draft but the editing 
>> fields are empty, I just have to refresh the page and click on the 
>> draft to continue to edit it.
>>
>> Does anyone have the same trouble?
>>
>> Greetings from Switzerland...
>> _______________________________________________
>> wp-testers mailing list
>> wp-testers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-testers
>
>
> after investigation, it seems that the post number is not given by the 
> form when pressing the button "Save and Continue Editing".
> The error could be located in post.php line 56, the $post_ID value is 
> empty.
> the assignation for this variable was like in 1.5.1.2:
>
> $id_result = $wpdb->get_row("SHOW TABLE STATUS LIKE '$wpdb->posts'");
> $post_ID = $id_result->Auto_increment;
>
> Hope that helps!
>
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers

replying to myself... just put theses two lines in post.php as lines 32 
& 33 in post.php

$id_result = $wpdb->get_row("SHOW TABLE STATUS LIKE '$wpdb->posts'");
$post_ID = $id_result->Auto_increment;

Sorry I don't feel easy with subversion use, so I don't know how to make 
a patch and diffuse it.



More information about the wp-testers mailing list