I recently renamed my sites WordPress root directory from wordpress/ to wp/, and most everything seems to work OK except that I can no longer edit any pages. I can create new pages, but when I select one to edit from the Manage Pages list, the link to the page to edit is http://hbama.com/wp/wp-admin/includes/page.php?action=edit&post=67, which is wrong since the includes directory is not correct. The rest is OK, and if I manually remove the includes/ from the url in the browser, I can edit the page. This is not a problem with posts, just pages.
I have looked in wp/wp-admin/edit-page.php, but the code does not mention the includes/, just page.php?action... The database entry in the wp_posts table shows the GUID as http://hbama.com/wp/?page_id=49
I can not figure out where the includes/ part is now being added.