Making WordPress.org

Changeset 5658


Ignore:
Timestamp:
07/12/2017 04:10:28 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Support Forums, User Notes: Add view=all to post link associated with a note.

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

    r5656 r5658  
    239239        if ( 'topic' === $post_type ) {
    240240            $permalink = bbp_get_topic_permalink( $post_id ) . '#post-' . (int) $post_id;
    241             $permalink = add_query_arg( 'show_user_notes', $post_id, $permalink );
     241            $permalink = add_query_arg( array(
     242                'view'            => 'all',
     243                'show_user_notes' => $post_id,
     244            ), $permalink );
    242245        } elseif ( 'reply' === $post_type ) {
    243246            $permalink = bbp_get_reply_url( $post_id );
    244             $permalink = add_query_arg( 'show_user_notes', $post_id, $permalink );
     247            $permalink = add_query_arg( array(
     248                'view'            => 'all',
     249                'show_user_notes' => $post_id,
     250            ), $permalink );
    245251        } else {
    246252            $permalink = bbp_get_user_profile_url( $user_id ) . '#user-notes';
Note: See TracChangeset for help on using the changeset viewer.