Skip to:
Content

Changeset 3773


Ignore:
Timestamp:
02/28/2012 06:20:49 PM (6 years ago)
Author:
johnjamesjacoby
Message:

trailingslashit() pretty permalinks when getting the edit URL for a topic or reply.

  • Fixes issues specifically with numeric permalinks setting
  • Also fixes custom permalinks without trailing slash
  • Fixes #1762
Location:
branches/plugin/bbp-includes
Files:
2 edited

Legend:

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

    r3758 r3773  
    15191519        // Pretty permalinks
    15201520        if ( $wp_rewrite->using_permalinks() ) {
    1521             $url = $reply_link . $bbp->edit_id;
     1521            $url = trailingslashit( $reply_link ) . $bbp->edit_id;
    15221522            $url = trailingslashit( $url );
    15231523
  • branches/plugin/bbp-includes/bbp-topic-template.php

    r3760 r3773  
    21972197        // Pretty permalinks
    21982198        if ( $wp_rewrite->using_permalinks() ) {
    2199             $url = $topic_link . $bbp->edit_id;
     2199            $url = trailingslashit( $topic_link ) . $bbp->edit_id;
    22002200            $url = trailingslashit( $url );
    22012201
Note: See TracChangeset for help on using the changeset viewer.