The MU forums have moved to WordPress.org

Blogowner can not edit post (2 posts)

  1. tenganmade
    Member
    Posted 14 years ago #

    The blogowner can not edit post that he wrote.

    I've traced the error to /wp-admin/post.php line 121 (URI: /wp-admin/post.php?action=edit&post=3).
    wp-redirect() can not redirect because get_edit_post_link( $post->ID, 'url' ) returns NULL because of !current_user_can( 'edit_page', $post->ID ) at line 684 in /wp-includes/link_template.php

    These are the steps to replicate bug:

    1. Add new blog under Administration -> Blogs. All fields field out. Admin-email is unique so a new user is created.
    2. Log in with newly created user.
    3. Edit newly created post through Posts -> Edit and Edit after hovering over post item.
    4. I'm directed to /wp-admin/post.php?action=edit&post=1 at which point I see a white screen and an error message.
  2. tenganmade
    Member
    Posted 14 years ago #

    Okey so my bad.

    I used define('WP_SITEURL', 'http://'.$_SERVER['SERVER_NAME']); which somehow removed the first part of the Edit-URL that points to the correct blog administration.

About this Topic

  • Started 14 years ago by tenganmade
  • Latest reply from tenganmade