WordPress.org

Forums

OpenX WordPress Widget
[resolved] Does not work on Multisite (With Fix!) (2 posts)

  1. alpha1beta
    Member
    Posted 2 years ago #

    On a multi site install, this plugin will fail when saving the openX server location. it redirects to the network homepage on any of the subsites.

    that is because on admin.php line 54 the PHP_SELF will never include the path of the site. To fix this, add site_url() . before the $_SERVER['PHP_SELF'] will send the post data of the form to the correct site.

    This is what line 54 should look like afterwards.
    <FORM name="openxwpwidget_form" method="post" action="<?php echo site_url() . $_SERVER['PHP_SELF']; ?>?page=openx-wp-widget.php&updated=true">

    http://wordpress.org/extend/plugins/openx-wordpress-widget/

  2. hwde
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks, I updated the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • OpenX WordPress Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags