Title: Default Menu action
Last modified: August 18, 2016

---

# Default Menu action

 *  [othermichael](https://wordpress.org/support/users/othermichael/)
 * (@othermichael)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/default-menu-action/)
 * Is there any way to change the action that WP-admin defaults to? On my setup,
   it ALWAYS launches me into “Write,” where 9 times out of ten I want to edit an
   old entry (I re-edit a lot), edit a template, check for comment moderation, etc.
   
   IE, how can I set it to default to “Edit” ?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [carthik](https://wordpress.org/support/users/carthik/)
 * (@carthik)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/default-menu-action/#post-69299)
 * You will have to modify the code in wp-login.php to redirect to wp-admin/edit.
   php
    Look around Lines 260 and 303 of wp-login.php and you will see wp-admin/.
   Change them to wp-admin/edit.php and you are set.
 *  Thread Starter [othermichael](https://wordpress.org/support/users/othermichael/)
 * (@othermichael)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/default-menu-action/#post-69661)
 * It’s been a while since this was proffered, but I finally tried it out.
    Sadly,
   I get this result: `Parse error: parse error, unexpected T_ELSE in /[...]/htdocs/
   scp/wp-login.php on line 303` I’ve tried replace the first, the second, and both
   instances of “wp-admin/” wiht wp-admin/edit.php and the result in the above error
   in all three instances. One note: I have the replacements appearing on lines 
   261 and 304
 *  Thread Starter [othermichael](https://wordpress.org/support/users/othermichael/)
 * (@othermichael)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/default-menu-action/#post-69662)
 * Oh, great. Now that I’ve reverted to the original code, I get that error no matter
   what. I’ve even uploaded a completely unmodified-ever copy from a separate installation.
   
   The same error every time?!??? I’m going back to teletypes, I swear….
 *  Thread Starter [othermichael](https://wordpress.org/support/users/othermichael/)
 * (@othermichael)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/default-menu-action/#post-69663)
 * Okay; got it. It seems Dreamweaver was massively rewriting some items in a bizarre
   fashion. I had to edit the file in notepad to get it right.
    Hrm. It shouldn’t
   have been rewriting _anything_. Ah, well. Thank you. It works most excellently!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Default Menu action’ is closed to new replies.

 * 4 replies
 * 2 participants
 * Last reply from: [othermichael](https://wordpress.org/support/users/othermichael/)
 * Last activity: [21 years, 9 months ago](https://wordpress.org/support/topic/default-menu-action/#post-69663)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
