Proposed patch to add account in multisite environments
-
Hi Katie,
Last fall I was teaching a course using WP set up as a multisite, and I discovered that adding account for subordinate sites didn’t always work. I initially opened up a topic here: https://www.ads-software.com/support/topic/add-account-seems-to-succeed-but/
I discovered that doing a reset of the plugin cleared up the problem, and when I investigate the code, I discovered that reset does some cleaning up which is not in face done at the outset.
I needed to get this fixed, so I copied the code from the reset area and pasted it in to where it was needed. If you follow the link above, you will see exactly what I did at the time. You had asked me to keep you updated, but I never got a reply, no doubt because you’re really busy putting out other fires, so I’ve started this new thread in the hopes of this getting noticed.
NOTE: There is one piece of code whose purpose I couldn’t figure out, so I put in a comment at the appropriate place because I didn’t know whether to duplicate that as well. No doubt you do.
It’s not the most elegant thing, but as I say, I had to fix it quickly and I’m not a PHP coder. If it were me, I would most likely put it into a module of its own and call it from both places.
I suspect the problem may have been caused due to the way I set up the multisite which left some ‘garbage’ lying around, but still, best to be absolutely sure of clean installation.
Thanks for your hard work in providing this excellent plugin!
Best
K
The page I need help with: [log in to see the link]
- The topic ‘Proposed patch to add account in multisite environments’ is closed to new replies.