Skip to:
Content

bbPress.org


Ignore:
Timestamp:
10/04/2013 06:35:56 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Fix bug where nested ternary comparisons in form-anonymous.php were causing duplicated, sometimes conflicting, output.

Introduce convenience template functions for better handling and output of anonymous user form field data. Wrap complex form-anonymous.php template-part access logic in a helper function (similar to other template parts.) Deprecate ambiguous bbp_topic/reply_author() functions, in favor of author_display_name() equivalents.

Fixes #2426.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/replies/template.php

    r5072 r5120  
    889889
    890890/**
     891 * Deprecated. Use bbp_reply_author_display_name() instead.
     892 *
    891893 * Output the author of the reply
    892894 *
    893895 * @since bbPress (r2667)
     896 * @deprecated bbPress (r5119)
    894897 *
    895898 * @param int $reply_id Optional. Reply id
     
    900903}
    901904    /**
     905     * Deprecated. Use bbp_get_reply_author_display_name() instead.
     906     *
    902907     * Return the author of the reply
    903908     *
    904909     * @since bbPress (r2667)
     910     * @deprecated bbPress (r5119)
    905911     *
    906912     * @param int $reply_id Optional. Reply id
     
    10811087     * @uses bbp_is_reply_anonymous() To check if the reply is by an
    10821088     *                                 anonymous user
    1083      * @uses bbp_get_reply_author() To get the reply author name
    10841089     * @uses bbp_get_reply_author_url() To get the reply author url
    10851090     * @uses bbp_get_reply_author_avatar() To get the reply author avatar
Note: See TracChangeset for help on using the changeset viewer.