/** * @covers ::bbp_current_user_name * @covers ::bbp_get_current_user_name */ public function test_bbp_get_current_user_name() { $current_user = wp_get_current_user(); // String. $user_id = bbp_get_current_user_name(); $this->assertSame($current_user->display_name, $user_id); // Output. $this->expectOutputString($current_user->display_name); bbp_current_user_name($this->keymaster_id); }
<input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php bbp_form_reply_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?> " /> <label for="bbp_log_reply_edit"><?php esc_html_e('Keep a log of this edit:', 'monsoon'); ?> </label><br /> </legend> <div> <label for="bbp_reply_edit_reason"><?php printf(esc_html__('Optional reason for editing:', 'monsoon'), bbp_get_current_user_name()); ?> </label><br /> <input type="text" value="<?php bbp_form_reply_edit_reason(); ?> " tabindex="<?php bbp_tab_index(); ?> " size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" /> </div> </fieldset> <?php do_action('bbp_theme_after_reply_form_revisions'); ?>
<input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?> " /> <label for="bbp_log_topic_edit"><?php _e('Keep a log of this edit:', 'bbpress'); ?> </label><br /> </legend> <div> <label for="bbp_topic_edit_reason"><?php printf(__('Optional reason for editing:', 'bbpress'), bbp_get_current_user_name()); ?> </label><br /> <input type="text" value="<?php bbp_form_topic_edit_reason(); ?> " tabindex="<?php bbp_tab_index(); ?> " size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" /> </div> </fieldset> <?php do_action('bbp_theme_after_topic_form_revisions'); ?>
/** * Output name of current user * * @since 2.0.0 bbPress (r2574) * * @uses bbp_get_current_user_name() To get the current user name */ function bbp_current_user_name() { echo bbp_get_current_user_name(); }
<input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php bbp_form_reply_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?> " /> <label for="bbp_log_reply_edit"><?php _e('Keep a log of this edit:', 'firmasite'); ?> </label><br /> </legend> <div> <label for="bbp_reply_edit_reason"><?php printf(__('Optional reason for editing:', 'firmasite'), bbp_get_current_user_name()); ?> </label><br /> <input type="text" value="<?php bbp_form_reply_edit_reason(); ?> " tabindex="<?php bbp_tab_index(); ?> " size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" /> </div> </fieldset> <?php do_action('bbp_theme_after_reply_form_revisions'); ?>
<input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?> " /> <label for="bbp_log_topic_edit"><?php _e('Keep a log of this edit:', 'omega-td'); ?> </label><br /> </div> <div> <label for="bbp_topic_edit_reason"><?php printf(__('Optional reason for editing:', 'omega-td'), bbp_get_current_user_name()); ?> </label><br /> <input type="text" value="<?php bbp_form_topic_edit_reason(); ?> " tabindex="<?php bbp_tab_index(); ?> " size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" /> </div> </fieldset> <?php do_action('bbp_theme_after_topic_form_revisions'); ?>
<?php do_action( 'bbp_theme_after_reply_form_subscription' ); ?> <?php endif; ?> <?php if ( bbp_allow_revisions() && bbp_is_reply_edit() ) : ?> <?php do_action( 'bbp_theme_before_reply_form_revisions' ); ?> <fieldset class="bbp-form"> <legend> <input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php bbp_form_reply_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?>" /> <label for="bbp_log_reply_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br /> </legend> <div> <label for="bbp_reply_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br /> <input type="text" value="<?php bbp_form_reply_edit_reason(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" /> </div> </fieldset> <?php do_action( 'bbp_theme_after_reply_form_revisions' ); ?> <?php endif; ?> <?php do_action( 'bbp_theme_before_reply_form_submit_wrapper' ); ?> <div class="bbp-submit-wrapper"> <?php do_action( 'bbp_theme_before_reply_form_submit_button' ); ?> <?php bbp_cancel_reply_to_link(); ?>
<input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?> " /> <label for="bbp_log_topic_edit"><?php _e('Keep a log of this edit:', 'wpdance'); ?> </label><br /> </legend> <div> <label for="bbp_topic_edit_reason"><?php printf(__('Optional reason for editing:', 'wpdance'), bbp_get_current_user_name()); ?> </label><br /> <input type="text" value="<?php bbp_form_topic_edit_reason(); ?> " tabindex="<?php bbp_tab_index(); ?> " size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" /> </div> </fieldset> <?php do_action('bbp_theme_after_topic_form_revisions'); ?>
<input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?> " /> <label for="bbp_log_topic_edit"><?php _e('Keep a log of this edit:', 'mk_framework'); ?> </label><br /> </div> <div> <label for="bbp_topic_edit_reason"><?php printf(__('Optional reason for editing:', 'mk_framework'), bbp_get_current_user_name()); ?> </label><br /> <input type="text" value="<?php bbp_form_topic_edit_reason(); ?> " tabindex="<?php bbp_tab_index(); ?> " size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" /> </div> </fieldset> <?php do_action('bbp_theme_after_topic_form_revisions'); ?>
bbp_user_profile_url(); ?> " title="<?php bbp_displayed_user_field('display_name'); ?> " rel="me"> <?php echo get_avatar(bbp_get_displayed_user_field('user_email', 'raw'), apply_filters('bbp_single_user_details_avatar_size', 100)); ?> </a> </span> </div><!-- #author-avatar --> <div class="x-bbp-user-header-content"> <h1 class="x-bbp-user-header-title"><?php echo bbp_get_current_user_name(); ?> </h1> <?php // bbp_notice_edit_user_is_super_admin(); ?> </div> </div> <div id="bbp-user-navigation"> <ul> <li class="<?php if (bbp_is_single_user_profile()) { ?> current<?php }
<input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?> " /> <label for="bbp_log_topic_edit"><?php _e('Keep a log of this edit:', 'bbpress'); ?> </label><br /> </legend> <div class="form-group"> <label for="bbp_topic_edit_reason"><?php printf(__('Reason for Editing', 'bbpress'), bbp_get_current_user_name()); ?> </label> <input type="text" value="<?php bbp_form_topic_edit_reason(); ?> " placeholder="(optional)" tabindex="<?php bbp_tab_index(); ?> " size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" /> </div> </fieldset> <?php do_action('bbp_theme_after_topic_form_revisions'); ?>