boonebgorges / bp-groupblog

BuddyPress Groupblog
GNU General Public License v3.0
15 stars 10 forks source link

Plugin not aware of deleted blogs #1

Closed jakedeg closed 6 years ago

jakedeg commented 12 years ago

When we delete a sub-site via the network admin/network/sites dashboard, the plugin doesn't realize this and the group blog admin tab breaks. We had to delete the "groupblog_blog_id" key for that group_id in the "wp_bp_groups_groupmeta" table manually.

boonebgorges commented 12 years ago

I just tested this on a local installation and it's working ok. See https://github.com/boonebgorges/bp-groupblog/blob/1.6/bp-groupblog.php#L1033

You may want to debug your installation to see if the 'delete_blog' hook is being run. Happens on 64 in this function: http://core.trac.wordpress.org/browser/tags/3.2.1/wp-admin/includes/ms.php#L55