Monthly Archives: June 2010
Cheesesteak #100meat
Tweets from the week before 2010-06-28
- And yes,it is going to be a long day. I apologize now if I am not very quick responding today. #
- Did Common Ground in SE ever go back to having late night hours? Is there an alternative if they didn't? #lazyweb #pdx #coffee #
- Building a child theme in WordPress 3.0? Want to remove a nav menu location? Here's how: http://jorb.in/2 #
- HG PUSH = food break followed by project change. #
- Feeling like I don't write code, I write bugs. #whereisthebreakthroughineed ? #
- +1 RT @xentek: Spent all day plumbing in Drupal and only had to write 3 lines of code. Some might call this a virtue. I don't. #
- Tips for how to debug WordPress from @nacin : http://bit.ly/d2CJOH (cc: @EricCurtis ) #
- User Experience – Elevator Style : http://blog.jgc.org/2010/06/elevator-button-problem.html #
- @ahockley They are super easy. http://bit.ly/aDbygQ if you need a ui to create them else http://bit.ly/bCJjGw #
- @ahockley get_posts works the same. Other queries can be modified to fit your needs. in reply to ahockley #
- It's not perfect, but the WordPress 3.0 Menu Manager is growing on me as a great tool. Thank you to everyone who helped build it. #
- Charcuterie #100meat #
- @np7776 I've yet to have any. http://wordpress.org/support/topic/411649?replies=1 has resolutions to the known issues in reply to np7776 #
- The @trimet bus driver just jumped off the bus and ran into a plaid pantry. I never saw that happen before. #
- Big Moving News. Many of you know or can guess. So much to do before I leave next week. #
- @marcymarcy To the East Coast in reply to marcymarcy #
- @aventurene I'm sorry we never go to do the West Coast AMUN meetup. Perhaps you remaining 4 will be able to make it happen. in reply to aventurene #
- @TheTomBrown @EvilDour I would be surprised if most lesbians couldn't kick my ass honestly. in reply to TheTomBrown #
- OH: We maxed out the sexxy factor on that dance floor. Sadly it was based on square footage. #
- @ctumaven Are you sure you didn't accidentally move to Portland? in reply to ctumaven #
- @ctumaven I don't know, because we have gangsta rap busting out of Priuses all the time. in reply to ctumaven #
- @jacobgrier I'm heading to the @naobf tonight. If you try anything of note at the media preview, please tweet it. in reply to jacobgrier #
- @devinsays Moving and some other projects have taken priority, so I actually haven't looked at this week. Hopefully next week I'll find time in reply to devinsays #
- @JohnJamesJacoby So what you're saying is if you want a grave, tell others to bring a shovel? If you just want a hole, grab one yourself? in reply to JohnJamesJacoby #
- @np7776 Cheer on the Pale Hose for me. I wish I was there with you. in reply to np7776 #
- It seems appropriate that the song that just came up on random on my mp3 player was by Captain Stubby and the Buccaneers. Go White Sox! #
- @ctumaven Safe and fun travels. Enjoy the whisky. in reply to ctumaven #
- Coding with Code Igniter was going great, but now getting an annoying db query bug and I'm hitting a wall debugging it #
- All right, I need a break. Heading to the @naobf to destress so I can debug. #
- Had some Fire On the Mountain last night. I'm going to miss those wings. #100meat #
- Just got an exciting e-mail filled with good news. #vaguetweet #
- I hate signature gatherers on. The max. Please ban them @trimet #
Had some Fire On the Mountain last night. I’m going to miss those wings. #100meat
Charcuterie #100meat
How to remove a nav menu location in WordPress 3.0.0
This function is in WordPress 3.0.1. You can now just call unregister_nav_menu and don’t need to put it in your child theme
One of the great additions to WordPress 3.0 is navigation menus. One of the aspects that it contains is the ability for a theme to register a nav menu location and for the user to assign any menu they want to that location. GREAT! Except that a missing piece of functionality is the ability for Child Themes to remove a location that it might no longer want. I’ve created a ticket and submitted a patch, but if you need that functionality now, just add the code below to you child theme’s functions.php file:
if (! function_exists('unregister_nav_menu') ):
function unregister_nav_menu( $location ) {
global $_wp_registered_nav_menus;
if (is_array($_wp_registered_nav_menus) && array_key_exists( $location, $_wp_registered_nav_menus ) ){
unset( $_wp_registered_nav_menus[$location] );
return true;
}
return false;
}
endif;
Then all you need to do is call:
//Remove Twenty Ten Default Menu Location
unregister_nav_menu('primary');
At some point after the nav menu is registered. I like to use the init hook.
Tweets from the week before 2010-06-21
- If I ever have to merge 5 heads, the commit message will be: "Let's Form Voltron" #
- @TheTomBrown Sad. in reply to TheTomBrown #
- @ahockley I like the idea of no doors. It will make riding more of an adventure. in reply to ahockley #
- If you ever want to punish people who might have to modify your code in the future, include 6 lines of documentation in 80 total files #
- @janeforshort http://aaron.jorb.in uses WordPress internally and externallyhttp://twitter.com/# and I am a fan of security in reply to janeforshort #
- RT @janeforshort: I need examples of credit unions & other securityminded orgs using WordPress for their websites/intranets cc/@RyanDonovan #
- @vegasgeek If I do my child theme presentation again, can I use that quote? in reply to vegasgeek #
- Browser checks that don't allow chrome in make me want to smack a developer. Browser checks should only disallow IE. #
- Architecting some changes to a CodeIgnitor site. Not as simple as #wordpress but still easy to work with. #
- WOO HOO! WordPress 2.9.3 has no open tickets! http://core.trac.wordpress.org/milestone/2.9.3 #
- Going to get some Pad Thai and then looking through the #genesis framework for WordPress #
- @rimagungor Worried they won't find one? in reply to rimagungor #
- @rimagungor that they will find out you do have a brain? That wouldn't be very surprising to those of us that know you. in reply to rimagungor #
- @bgardner I'm writing notes as I read it and have to find any major concerns in reply to bgardner #
- @flashingcursor I like it so far. in reply to flashingcursor #
- @tappenzeller Stop looking at the profiles of the 40+ single/divorced women and the problem should go away. in reply to tappenzeller #
- I've read enough code for today. Time to watch the doctor #
- Do you like 2010, the #wordpress 3.0 theme? Learn how easy it is to make it your own: http://jorb.in/3010 #
- Backspace has a much more diverse and eclectic clientèle then my usual coffee shops in North Portland. #
- Just got to Clyde Common. Enjoying a One-Trick Pony and waiting for @devinsays #
- @kmcdade Yep. Just grabbing some Happy Hour first. in reply to kmcdade #
- @_mfields @devinsays Speech I was talking about: http://snowmanonfire.com/2010/work/wordpress-work/wordcamp-chicago-slides-parsing-strange #
- @pdxwp my speech from #wcchicago on Child Themes: http://jorb.in/wcchicago #
- Warpony at the ash street saloon #
- WordPress 3.0 has now been downloaded over 300 thousand times. http://wordpress.org/download/counter/ #
- @TheTomBrown Those are generally independently owned and not all of them even get there gas from BP. in reply to TheTomBrown #
- #haikufriday I Can haz sunshine / Please please sun, stick around for / Beer and Blog tonight #
- @wptavern drop ins have been around for a while, they just got a tab of there own now. in reply to wptavern #
- @ctumaven Watch what are you saying about people that wear bow ties. in reply to ctumaven #
- About to begin the #amun Pacific Northwest meetup at Lucky Lab's nopo brew pub. #
- @ctumaven done and done. I hope this flight segment goes better. in reply to ctumaven #
- @aventurene The good thing about inertia, what's you get some, it doesn't go away without an outside force. in reply to aventurene #
- Let the #amun hacking begin. #
- Steamed burger from brown chicken, brown cow. #
- Steamed burger from brown chicken, brown cow. #100meat #
- Hacking on the new #amun site was a success. #
- Meat. Cheese. Scotch. Friendship. #100meat #
- I have a feeling that today is going to be a long day. #badsolsticejoke #

