function bb_get_current_commenter() { bb_log_deprecated('function', __FUNCTION__, 'bb_get_current_poster'); extract(bb_get_current_poster()); return array('comment_author' => $post_author, 'comment_email' => $post_author_email, 'comment_author_url' => $post_author_url); }
<?php // Setup $current_poster varaible on post edit if (bb_is_topic_edit()) { foreach (array('post_author', 'post_email', 'post_url') as $post_author_meta) { $current_poster[$post_author_meta] = bb_get_post_meta($post_author_meta, $post_id); } // Shift $current_poster values from cookie } else { $current_poster = bb_get_current_poster(); $current_poster['post_email'] = $current_poster['post_author_email']; $current_poster['post_url'] = $current_poster['post_author_url']; } ?> <p id="post-form-author-container"> <label for="author"><?php _e('Author'); ?> <input type="text" name="author" id="author" size="50" tabindex="30" aria-required="true" value="<?php echo esc_attr($current_poster['post_author']); ?> " /> </label> </p> <p id="post-form-email-container"> <label for="email"><?php _e('Email'); ?> <input type="text" name="email" id="email" size="50" tabindex="31" aria-required="true" value="<?php