Tackle It Tuesday: WordPress Bug – Deleting Admin Account

by Susan

Tackle It Tuesday

My To-Do List for today was interrupted when I discovered a WordPress Bug had broken a ton of our existing WordPress Pages here at 5 Minutes for Mom.

The actual bug would have done it’s damage a couple weeks ago, but it was today that I realized what had happened.

It Seemed to Start With a Few…

Last week we noticed a couple random broken pages… it seemed odd and concerning that an old page here and there seemed to have been set back to DRAFT and thrown in the TRASH.

But this morning, I noticed a couple more pages were showing 404 page not found errors. I dug deeper and discovered the problem.

But Then I Remembered…

Suddenly I remembered that a couple weeks back, in an effort to improve security on our blog, I deleted the default admin user account. (It’s often recommended to delete WordPress’ default admin account as it is common bait for hackers.)

Long ago, we had ensured the admin account was not the author of any posts and we didn’t use the account anymore. So I finally decided to delete it. I felt kinda nervous doing it… deleting “admin” just seemed dangerous.

Well it was.

WordPress Pages vs WordPress Posts

I have in the past had trouble with WordPress Pages… it seems somehow that the code handling “WordPress Posts” seems to be more robust than the code handling it’s lesser important sibling “WordPress Pages”. And again, I find myself cursing the programmers who seemed to forget to code the same logic for Pages that they do for Posts.

It appears to me (don’t quote me, this is just what I gather)…

That when I deleted the admin user account, WordPress did NOT elegantly handle the transfer of Page author or ownership.

Thrown in the TRASH

The author field was blanked out and most pages seemed to be set back to DRAFT and thrown in the TRASH. I can’t say for sure because I fixed several before analyzing the problem… but it seemed like some of the pages didn’t get set to draft, but still kept the published status. Regardless, they were all tossed in TRASH had a BLANK author field.

Wordpress Bug - Deleting Admin Account

I’m so relieved I realized what had happened because tons of our important older pages that had been created under the admin account now were deleted.

You know rather important pages such as… Contact Us, Newsletter etc.

Here I’ll Show You…

I created a short video to show you the problem and how I fixed it.

Unable to display content. Adobe Flash is required.

The Moral of the Story

We all get slack sometimes. I’m usually heavy on the backup and I know better than to make a major change and not test… but I got slack.

I just clicked “delete” on the “admin” account and went on with my to-do list. The site didn’t seem to blow-up and I knew I didn’t have any posts owned by that account. Of course, I’d forgotten to consider the pages, so it would follow that I wouldn’t even think to test them.

So if you’re going to follow the advice to delete the default WordPress admin account, definitely ensure that it is not the author or owner of any Posts OR Pages.

Mom Bloggers — what are you tackling this week?

Link up your Tackle it Tuesday post…

Tell us what you’re up to with all your other tackles… housework and otherwise… add your link to your tackle in the Linky below!

We are Tackling Our To-Do Lists Together and making housework bloggable — Each week on Tuesday, we are posting before and after pictures of a project or trouble area that we tackled this week.

Find out more about how Tackle It Tuesday began.
The project can be little or big – whatever you want.

Basically, Tackle It Tuesday is about giving ourselves incentive, deadlines and satisfaction in tackling all our tasks — whether household or otherwise.

If you tackled a project this week, just add a comment and add your link below.

Here is a fun thumbnail linky:

And here is a basic linky if you prefer your linkies the good old fashioned way!

Written by Susan Carraretto, co-founder of the Mom Blog 5 Minutes for Mom.
Talk with me: @5minutesformom and Facebook.com/5minutesformom.



Email Author    |    Website About Susan

Susan Carraretto and her identical twin, Janice Croze, created 5 Minutes for Mom in 2006. Susan loves all social media, but her top addiction these days is Pinterest. She recently published a children's book titled "The Pest Detectives" which you can download now in digital format for free.

View all articles by

{ 11 comments… read them below or add one }

Leave a Comment

Previous post:

Next post: