Changeset 2974 for branches/plugin/bbp-includes/bbp-topic-template.php
- Timestamp:
- 04/01/2011 04:01:31 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-topic-template.php
r2972 r2974 1904 1904 return; 1905 1905 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 { 1907 1913 $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 ) );1911 1914 } 1912 1915
Note: See TracChangeset
for help on using the changeset viewer.