WordPress.org

Ready to get started?Download WordPress

Forums

Safe Report Comments
[resolved] Multi site issues (2 posts)

  1. rangefelt
    Member
    Posted 3 years ago #

    I've run into two issues while trying to use this plugin in a multi site environment:

    1) The path to admin-ajax.php is incorrect for wp installations in subdirectories. Changing $current_blog->siteurl to $current_blog->path (around line 91) solved the issue.

    2) The cookies used to remember which comments a user have flagged only include comment_id, not blog_id, so if comment 1 on blog 1 is flagged, the user can't flag comment 1 on blog 2. This is solved by adding the blog_id to key in the cookie, ie $data[ "$blog_id-$comment_id" ] instead of $data[ $comment_id ], in methods already_flagged and mark_flagged.

    Hope this can help anyone, contact me if you need the actual code.

    http://wordpress.org/extend/plugins/safe-report-comments/

  2. daledubilowski
    Member
    Posted 3 years ago #

    I'd be very interested in getting the code specifics if you're able to provide them.

    Cheers!
    dale

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic