WordPress.org

Making WordPress.org

Changeset 5669


Ignore:
Timestamp:
07/14/2017 12:05:54 AM (2 years ago)
Author:
SergeyBiryukov
Message:

Support Forums, User Notes: Apply comment_text filters to user note text, including wpautop() and make_clickable().

Remove redundant wp_kses() call, as it already runs on saving.

See #2272.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-user-notes.php

    r5660 r5669  
    259259
    260260            $this->user_notes[ $user_id ]->html .= sprintf(
    261                 '<div class="bbp-template-notice warning"><p>%s</p> %s</div>' . "\n",
    262                 make_clickable( wp_kses( $note->text, array( 'a' => array( 'href' => true ) ) ) ),
     261                '<div class="bbp-template-notice warning">%s %s</div>' . "\n",
     262                apply_filters( 'comment_text', $note->text, null, array() ),
    263263                sprintf( '<p class="wporg-bbp-user-note-meta">%s</p>' . "\n",
    264264                    implode( ' | ', $note_meta )
Note: See TracChangeset for help on using the changeset viewer.