Hi there, I also love this plugin - functions like these should become standard for the next versions of WordPress
:-)
A few days ago I made an upgrade to WP 2.1, so I changed some lines of code to get Mass Edit Pages working on my blog. There were two things that needed to be changed.
1)
WP 2.1 decides whether a post is taken as a page or a post by "post_type" and not by "post_status" any more. So have a look at line 70:
$pages = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_status = 'static' ORDER BY menu_order");
This must be changed into:
$pages = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_type = 'page' ORDER BY menu_order");
... and you're nearly done.
2)
If caching is active, you can change your page order, the Mass Edit Pages menu will display your changes - but you won't see any effect on your blog. (I haven't tested yet, but I'm afraid, it might be the same with earlier versions of WordPress, too)
Anyway - WordPress must be told, that the cache for pages has to be cleared, when changes in page order are applied. The lines 42-48:
while ($i < $ii) :
$ID = $_POST[ID][$i];
$post_parent = $_POST[post_parent][$i];
$menu_order = $_POST[menu_order][$i];
$wpdb->query("UPDATE $wpdb->posts SET post_parent='$post_parent', menu_order='$menu_order' WHERE ID=$ID");
$i++;
endwhile;
must be changed into
while ($i < $ii) :
$ID = $_POST[ID][$i];
$post_parent = $_POST[post_parent][$i];
$menu_order = $_POST[menu_order][$i];
$wpdb->query("UPDATE $wpdb->posts SET post_parent='$post_parent', menu_order='$menu_order' WHERE ID=$ID");
clean_page_cache($ID); // else you won't see any effect, if caching is active!
$i++;
endwhile;
... and it should be working.
Please excuse my bad English, if you're German spoken, you might better understand my explanation written here
Greetz,
Gunnar