WordPress.org

Support

Support » Themes and Templates » Default Menu action

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)
  • 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.

    OtherMichael

    @othermichael

    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

    OtherMichael

    @othermichael

    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….

    OtherMichael

    @othermichael

    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.