Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/01/2011 04:01:31 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Full audit of user/topic/reply/view permalinks. Use $wp_rewrite->using_permalinks() method in place of $wp_rewrite->permalink_structure. See r2973

File:
1 edited

Legend:

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

    r2972 r2974  
    19041904            return;
    19051905
    1906         if ( empty( $wp_rewrite->permalink_structure ) ) {
     1906        // Pretty permalinks
     1907        if ( $wp_rewrite->using_permalinks() ) {
     1908            $url = $wp_rewrite->root . $bbp->topic_slug . '/' . $topic->post_name . '/edit';
     1909            $url = home_url( user_trailingslashit( $url ) );
     1910
     1911        // Unpretty permalinks
     1912        } else {
    19071913            $url = add_query_arg( array( bbp_get_topic_post_type() => $topic->post_name, 'edit' => '1' ), home_url( '/' ) );
    1908         } else {
    1909             $url = $wp_rewrite->front . $bbp->topic_slug . '/' . $topic->post_name . '/edit';
    1910             $url = home_url( user_trailingslashit( $url ) );
    19111914        }
    19121915
Note: See TracChangeset for help on using the changeset viewer.