I am the author of a forum plugin for WP which has a few MU users as well. I am trying, in the next version, to ensure that it will install correctly within MU as currently users have to make a small handful of edits with each upgrade. Sadly, I am unable to install MU at the moment to check this myself. I have four simple questions the answers to which would enable me to achieve this.
1: As I understand it the $wpdb-> prefix returns the correct prefix for all except the ‘users’ and ‘usermeta’ tables. I have been informed by users that these two tables are always simply prefixed ‘wp_’. Is this correct?
2: Part of the install is to create a WP ‘page’ record. In standard WP the table data changed for this between versions 2.0 and 2.1 so I have to branch the code dependent upon version. is there a method of determining the current version of MU in relation to the original WP version? Or, failing that, do all versions of MU use the later, 2.1 codebase?
3: This only becomes relevant if there is a foolproof method of determining if the host system is MU or not. I assume there must be a method of doing this. Does anyone know how this is done?
4: Finally the forthcoming WP 2.3 is making sweeping changes to the category sub-system and I do need to make some changes to support that. This ties in a little with question 2 - i.e., how does one tell if MU is built on the WP2.3 codebase?
I would be very grateful if anyone is able to answer these questions. It would be nice to enable my users not to have to make hacks to the code with every upgrade or new install of the plugin. Thanks.