Changing from localhost:8888 to localhost

You need to treat this just like you would when changing domains.

The short version is:

  1. You need to change the WordPress Address and Site Address in
    Settings->General. You have to change both

  2. Or edit wp-config.php to alter the same values as in step #1. This one is easiest if you’ve already lost part of the site functionality.

  3. And alter the hard-coded addresses in the DB. I have always used Velvet
    Blues Update Urls
    for that.

The Codex has a link to a helper script and a longer 15 step process. Read through that carefully before beginning.