Support » Plugin: Safe Report Comments » Fix for different Site & WP URLs

  • Resolved jkoon

    (@jkoon)


    This plugin does not work if the Site Address and URL Address are different. When they are different the plugin uses the home_url to find the admin-ajax.php file when it should be using the site_url.

    You can fix this by replacing this (line 117):
    $ajaxurl = home_url( '/wp-admin/admin-ajax.php' );

    with this:
    $ajaxurl = site_url( '/wp-admin/admin-ajax.php' );

    Hope this helps, and hopefully this fix can get worked into the next version.

    -Scott

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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fix for different Site & WP URLs’ is closed to new replies.