Ticket #637 (closed defect: fixed)

Opened 4 months ago

Last modified 3 days ago

Prevent blog 1 from getting deleted

Reported by: drmiketemp Assigned to: somebody
Priority: normal Milestone: WPMU 1.0
Component: component1 Version: 1.0
Severity: normal Keywords:
Cc:

Description

Aren't endusers fun? :D

Please consider a blog_id check that prevents blog 1 from getting deleted.

Change History

05/22/08 20:39:28 changed by lunabyte

Yeah, that would probably be a smart thing.

05/22/08 21:08:27 changed by drmiketemp

"I just wanted to test it...."

*sigh*

Thank goodness we do backups every other day.

05/22/08 22:21:14 changed by andrewbillits

Actually how about we keep the 'main blog' of the current site from being deleted? The main blog doesn't always have the id of '1'.

Thanks, Andrew

05/23/08 13:45:32 changed by drmiketemp

Actually in that case, it wouldn't work because then you would need the ability to delete the blog in question if you were getting rid of a secondary site.

Hmmmm....

How about not delete the main blog of a current site if other blogs exist pertaining to the blog in question.

ie Don't allow MyMuSite?.tld to be deleted if username.MyMuSite?.tld exists?

05/23/08 15:13:20 changed by donncha

  • status changed from new to closed.
  • resolution set to fixed.

It gets complicated doesn't it? Perhaps a good start would be to check for blog_id 1. I want to get rid of the multi site stuff anyway. (No, that won't happen for some time)

05/23/08 15:13:32 changed by donncha

  • status changed from closed to reopened.
  • resolution deleted.

09/02/08 16:19:42 changed by donncha

  • status changed from reopened to closed.
  • resolution set to fixed.

Fixed the "Delete Blog" page in [1462] and [1463]. I'm not even going to attempt to stop the "main blog" being deleted through the Site Admin->Blogs page as that's too much hand holding.