OMG… NO MATH! YAY!
sorry I have been away in the hospital again. another heart attack.
I’m glad that you have been able to get MU up and running. Most of the language used here after my last post is a bit above my pay grade, but I believe I understand.
wp functions seem to be ignored/overwiten when current_user == is_site_admin() which is unfortunate, even for doncha. This may have been done to push wp2.6.3 into the the blog portion of wpmu, and may continue when wpmu v2.7 comes out, though I don’t expect that change to come for at least 3-6 months after the release of 2.7 final.
To combat the error with site_admin v. current_user_can(), you have created sf_current_user_can() populated once for that user. Where I am confused is, the data for current_user_can() is stored someplace, (wp_usermeta table?) is the same data stored for sf_current_user_can()? (at wp_x_sfusermeta table?)
although a redundant system is not something that is out of line given the complexity of the issue, when would be a good time to check and update that info to keep the two synced… does the info need to be stored?… can the sf_current_user_can() be a dynamic call, rather than relying on stored SF data, actually checking is_site_admin() and if not, then calling the wp_function current_user_can() and populating the results at run time.
I envision a nested IF statement here
if (function_exists(is_site_admin)) {
if (is_site_admin()) { POPULATE sf_current_user_can(everything) }
} ELSE { POPULATE sf_current_user_can(with wp-current_user_can()) } END IF;
Just thinking out loud… my brick didn’t get a lot of use this past week… 😎
I have not downloaded the current trunk code, I’m actually being patient and waiting for Beta2 (this afternoon?)