Default Menu action (5 posts)

  1. OtherMichael
    Posted 12 years ago #

    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" ?

  2. carthik
    Posted 12 years ago #

    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.

  3. OtherMichael
    Posted 11 years ago #

    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

  4. OtherMichael
    Posted 11 years ago #

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

  5. OtherMichael
    Posted 11 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.