In order to distinguish pages and posts in WP < 2.1, it was necessary to query the post_status column: $result = $wpdb->get_results(“SELECT post_status …”); if ($result) { if ($result->post_status == “static”) { echo “PAGE”; } else { echo “POST”; } } In WP >= 2.1 the database schema changed. The…
WP: Allow users to edit posts of other users
In wp-admin/edit-pages.php line 19: AND ($wpdb->users.user\_level <= $user_level OR $wpdb->posts.post\_author = $user_ID)