WP OpenID in WordPress MU
-
Hi, first of all, sorry for my english, is from Google ??
only wanted to comment on the changes made to operate WP-OpenID in WordPress MU, specifically in version 1.5.1.
Taking version 2.1.9 of plugin, we have modified two files “core.php” and “interface.php”, both in the root of plugin.
In “core.php” only we have modified the function “set_path” in class “WordPressOpenID”, specifically the 124 line …
$this->path = '/wp-content/plugins/'.$plugin;
… with …
$wppluginsDir = basename(dirname(dirname(__FILE__))); // for "plugins" or "mu-plugins" $this->path = '/wp-content/'.$wppluginsDir.'/'.$plugin;
… with this modification to make it work in the folder “mu-plugins.”
In the file “interface.php” have changed all calls to the folder “files” of plugin in a folder called “oifiles.” This is because the instruction “mod_rewrite” which redirects, in WordPress MU, all calls to folder “files” to “blogs.dir” of blog running, does fail the loading of the files that are in that folder.
This change, of course, requires “rename” folder “files” of plugin in “oifiles”.
- The topic ‘WP OpenID in WordPress MU’ is closed to new replies.