Where’s the option to change the “uploads” path in WordPress 3.5?

Thanks for nothing, WordPress.

It’s not often that I complain about anything in WordPress, much less get genuinely angry about something I think is downright stupid, but today it happened.

I build a lot of WordPress sites for clients, and I frequently post them in a staging area on my server. Rather than having dozens of separate installations of WordPress filling up my server’s disk space, I set up a single installation (but with a separate database for each site), with some simple customizations to the wp-config.php file that tell it which database to use based on the domain name.

Please don’t bother to mention that I should “probably” be running WordPress-MU (or MultiSite or whatever they call it now). Ultimately these sites are going to be hosted elsewhere as standalone WordPress sites so I need to keep their databases separate.

One key to making this arrangement work nicely has always been the simple setting in WordPress that allows you to define a special directory for uploads, instead of dumping them all in the main uploads directory. By setting this to a subdirectory under wp-content/uploads named to match the site’s theme folder name, it was easy to keep everything separate.

It’s been a while since I’ve set up a new site on the staging server, at least since before I updated to WordPress 3.5. But I was doing one today, and I had to do a sanity check as I scoured the settings to try to find where in the hell you set the custom uploads path. I was sure it was under Settings → Media but I couldn’t find it there.

Because they took it out.

Yes, they took it out. Why? Well, apparently there’s a rational explanation, but frankly no explanation would satisfy me because it seems incredibly disruptive to take something like this out, even if it was a bad idea to implement it as it was in the first place.

Fortunately, there’s still a way to do it. You just can’t do it in the admin interface anymore; you need to edit the wp-config.php file directly to add a constant. No problem, I’m already doing that anyway.

Here’s what you need:

define('UPLOADS', '/your/custom/path/under/wordpress/root');

If you’re just putting your uploads into a subdirectory under the main uploads directory, like I am, it would look like this:

define('UPLOADS', '/wp-content/uploads/yourdirectory');

Just remember, if you’re doing this because you’re running multiple sites from a single installation like I am, this constant should be set in the same conditional where you’re setting which database the site should use.

Easy. Not as easy as it was, nor as easy as I think it should be, but…

Musings of a 4-year-old daughter: a tweet compendium

I’ve spent the last year-plus tweeting the musings of my 4-year-old daughter. Tomorrow she becomes my 5-year-old daughter, so this seemed like a good time for a compendium of her “greatest hits.”

I need to acknowledge the great iPhone app Momento, which made gathering a year’s worth of tweets possible (if still not quite as easy as I would have liked… I still needed to manually pull them out of a text file using TextWrangler, and I didn’t bother to reorganize them from its default reverse chronological order). Momento is a great app for automatically turning your tweets, Facebook status updates and blog RSS feed into an automatic personal journal. You can also write private entries directly within the app. It’s fantastic, and well worth the $2.99 price tag.

Here we go…

4yo daughter: What’s the car alarm for?
Me: To scare off someone trying to break in.
4yo: It should just make a ghost come out.
Monday 21 March 2011, 12:22 PM

4yo daughter just sheepishly approached me and said “I accidentally did this.”
“This” being writing her name on her leg with a marker.
Sunday 20 March 2011, 9:08 AM

I was explaining how long Bob Dylan’s been around. 4yo daughter: “Um, dad, the word you’re looking for is ’80 hundred years’.”
Sunday 13 February 2011, 8:34 PM

4yo daughter wants to do yoga. Or, in her words, get “yoga’ed up.”
Saturday 5 February 2011, 7:07 PM

4yo daughter: Who do you think I’m going to marry?
Me: I don’t know. Probably someone you don’t even know yet.
4yo: I have to MEET someone?
Saturday 29 January 2011, 4:06 PM

4yo daughter is excited for Twins Fest on Sunday, but only for possibility of seeing TC Bear or Joe Mauer (in that order). @MinnesotaTwins
Friday 28 January 2011, 9:32 PM

4yo daughter to coffee roaster: “What are you doing?”
Coffee roaster: “Cooking little girls.”
Daughter: “What?”
Roaster: “Roasting coffee.”
Saturday 8 January 2011, 3:45 PM

4yo daughter’s new song: “Doo Doo Death Star,” sung to the tune of “Frère Jacques.”
Thursday 6 January 2011, 7:31 AM

4yo daughter: “Worms are mean to artists because worms eat trees and paper comes from trees.”
Friday 31 December 2010, 12:52 PM

Always surprising what songs 4yo daughter spontaneously sings… this time it’s “Baby’s in Black” by the Beatles.
Friday 31 December 2010, 4:39 PM

4yo daughter in a freshly cleaned bathroom: “It smells like I pooped on a flower.”
Thursday 30 December 2010, 1:02 PM

To 4yo daughter: “Are they vegetarians?”
4yo daughter replies: “Yeah, they only eat vegetarian meat.”
Tuesday 21 December 2010, 5:58 PM

4yo daughter: “I love shopping. Just like London Tipton.” #ParentingFail
Thursday 16 December 2010, 5:22 PM

4yo daughter, totally out of the blue: “Pigs are breakfast, daddy.”
Sunday 5 December 2010, 8:34 PM

Apparently 4yo daughter spent entire drive back from North Shore listening to the White Album. Walking around house singing “Bungalow Bill.”
Sunday 28 November 2010, 1:51 PM

4yo daughter gets home from preschool. What does she want for a snack? Salt.
Thursday 11 November 2010, 5:20 PM

4yo daughter is listening to Queen: “Why are they champions?”
Tuesday 26 October 2010, 8:36 PM

4yo daughter correctly identified Kyle Massey on Dancing with the Stars as the voice of Milo on Disney Channel’s Fish Hooks. Seriously?!
Monday 18 October 2010, 8:23 PM

Listening to Rush — “La Villa Strangiato” — today, because last night my 4yo daughter misheard me say something and asked “Strangiato?” I think.
Wednesday 13 October 2010, 9:00 AM

Speaking of 4yo daughter, my natural inclination to correct everyone all the time shuts off when she calls an iPad a “big iPod.”
Wednesday 13 October 2010, 9:18 AM

4yo daughter identified the scientist Algernon (Roy Kinnear) in The Beatles’ Help! as “Veruca’s dad.”
Monday 30 August 2010, 3:30 PM

4yo daughter just said, “I wish your body didn’t need sleep. Sleeping is boring!”
Wednesday 26 May 2010, 9:19 PM

4yo explaining why she’s hungry: “My tummy’s empty. All the food went into my legs.”
Wednesday 12 May 2010, 7:56 AM

4yo daughter just insulted me (I think) by yelling “You shredded wheat!”
Saturday 10 April 2010, 3:22 PM

Troy Bolton is my 4yo daughter’s boyfriend. Also, bacon.
Tuesday 6 April 2010, 8:25 PM

4yo daughter just informed us that 7yo son is “pushing my buttons!” Wonder where she learned that.
Saturday 3 April 2010, 6:24 PM

And, stepping back just a bit further, my all-time favorite quote, from when she was 3…

The Smiths on @TheCurrent. 3yo daughter, hearing Morrissey’s crooning, asks: “Is he crying?” Yeah. Pretty much.
Friday 19 February 2010, 4:54 PM

Tomorrow is also my son’s 8th birthday (yep, same day). He’s not quite as quotable as his little sister, but he did have one absolute gem (for me, at least) this year…

7yo son: Is XBOX Nintendo or Sega?
Me: Neither… it’s Microsoft.
Him: Microsoft?! What’s that?
Thursday 27 January 2011, 7:50 PM

Happy birthday guys!