Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/27/2011 09:57:44 AM (10 years ago)
Author:
johnjamesjacoby
Message:

Theme Compatibility Updates:

  • Tableless layout, fixes #1586, props mercime
  • Introduce content-single-reply and content-topic-tag-edit templates
  • Update shortcodes to use content templates
  • Update theme compatibility to include single reply shortcode
  • @todo CSS audit, RTL audit, shortcode audit
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-user-template.php

    r3632 r3634  
    107107
    108108/**
    109  * Return a sanitized user field value
     109 * Output a sanitized user field value
    110110 *
    111111 * @since bbPress (r2688)
    112112 *
    113113 * @param string $field Field to get
    114  * @uses sanitize_text_field() To sanitize the field
    115  * @uses esc_attr() To sanitize the field
    116  * @return string|bool Value of the field if it exists, else false
    117  */
    118 function bbp_get_displayed_user_field( $field = '' ) {
    119     global $bbp;
    120 
    121     // Return field if exists
    122     if ( isset( $bbp->displayed_user->$field ) )
    123         return esc_attr( sanitize_text_field( $bbp->displayed_user->$field ) );
    124 
    125     // Return empty
    126     return false;
    127 }
     114 * @uses bbp_get_displayed_user_field() To get the field
     115 */
     116function bbp_displayed_user_field( $field = '' ) {
     117    echo bbp_get_displayed_user_field( $field );
     118}
     119    /**
     120     * Return a sanitized user field value
     121     *
     122     * @since bbPress (r2688)
     123     *
     124     * @param string $field Field to get
     125     * @uses sanitize_text_field() To sanitize the field
     126     * @uses esc_attr() To sanitize the field
     127     * @return string|bool Value of the field if it exists, else false
     128     */
     129    function bbp_get_displayed_user_field( $field = '' ) {
     130        global $bbp;
     131
     132        // Return field if exists
     133        if ( isset( $bbp->displayed_user->$field ) )
     134            return esc_attr( sanitize_text_field( $bbp->displayed_user->$field ) );
     135
     136        // Return empty
     137        return false;
     138    }
    128139
    129140/**
Note: See TracChangeset for help on using the changeset viewer.