Making WordPress.org

Ticket #2478: meta-2478.bbpress.patch

File meta-2478.bbpress.patch, 1.0 KB (added by SergeyBiryukov, 7 years ago)
  • includes/replies/template.php

     
    20312031                $reply_link = bbp_remove_view_all( bbp_get_reply_permalink( $reply_id ) );
    20322032
    20332033                // Pretty permalinks
    2034                 if ( bbp_use_pretty_urls() ) {
     2034                if ( false === strpos( $reply_link, '?' ) ) {
    20352035                        $url = trailingslashit( $reply_link ) . bbp_get_edit_rewrite_id();
    20362036                        $url = user_trailingslashit( $url );
    20372037
  • includes/topics/template.php

     
    26522652                $topic_link = bbp_remove_view_all( bbp_get_topic_permalink( $topic_id ) );
    26532653
    26542654                // Pretty permalinks
    2655                 if ( bbp_use_pretty_urls() ) {
     2655                if ( false === strpos( $reply_link, '?' ) ) {
    26562656                        $url = trailingslashit( $topic_link ) . bbp_get_edit_rewrite_id();
    26572657                        $url = user_trailingslashit( $url );
    26582658