Skip to:
Content

bbPress.org

Changeset 6452


Ignore:
Timestamp:
06/01/2017 09:05:34 PM (4 years ago)
Author:
johnjamesjacoby
Message:

Templates: Replace the_permalink() calls with more specific template tags.

Resolves issue where BuddyPress group forums would collide with literal page IDs when not using theme-compat.

Fixes #3030.

Location:
trunk/src/templates/default/bbpress
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/form-forum.php

    r6361 r6452  
    2525    <div id="new-forum-<?php bbp_forum_id(); ?>" class="bbp-forum-form">
    2626
    27         <form id="new-post" name="new-post" method="post" action="<?php the_permalink(); ?>">
     27        <form id="new-post" name="new-post" method="post" action="<?php bbp_forum_permalink(); ?>">
    2828
    2929            <?php do_action( 'bbp_theme_before_forum_form' ); ?>
  • trunk/src/templates/default/bbpress/form-reply-move.php

    r6258 r6452  
    2121        <div id="move-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-move">
    2222
    23             <form id="move_reply" name="move_reply" method="post" action="<?php the_permalink(); ?>">
     23            <form id="move_reply" name="move_reply" method="post" action="<?php bbp_reply_permalink(); ?>">
    2424
    2525                <fieldset class="bbp-form">
  • trunk/src/templates/default/bbpress/form-reply.php

    r6361 r6452  
    2323    <div id="new-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-form">
    2424
    25         <form id="new-post" name="new-post" method="post" action="<?php the_permalink(); ?>">
     25        <form id="new-post" name="new-post" method="post" action="<?php bbp_reply_permalink() ?>">
    2626
    2727            <?php do_action( 'bbp_theme_before_reply_form' ); ?>
  • trunk/src/templates/default/bbpress/form-topic-merge.php

    r6384 r6452  
    2121        <div id="merge-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-merge">
    2222
    23             <form id="merge_topic" name="merge_topic" method="post" action="<?php the_permalink(); ?>">
     23            <form id="merge_topic" name="merge_topic" method="post" action="<?php bbp_topic_permalink(); ?>">
    2424
    2525                <fieldset class="bbp-form">
  • trunk/src/templates/default/bbpress/form-topic-split.php

    r6384 r6452  
    2121        <div id="split-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-split">
    2222
    23             <form id="split_topic" name="split_topic" method="post" action="<?php the_permalink(); ?>">
     23            <form id="split_topic" name="split_topic" method="post" action="<?php bbp_topic_permalink(); ?>">
    2424
    2525                <fieldset class="bbp-form">
  • trunk/src/templates/default/bbpress/form-topic-tag.php

    r6258 r6452  
    3535                </div>
    3636
    37                 <form id="rename_tag" name="rename_tag" method="post" action="<?php the_permalink(); ?>">
     37                <form id="rename_tag" name="rename_tag" method="post" action="<?php bbp_topic_tag_link(); ?>">
    3838
    3939                    <div>
     
    7575                </div>
    7676
    77                 <form id="merge_tag" name="merge_tag" method="post" action="<?php the_permalink(); ?>">
     77                <form id="merge_tag" name="merge_tag" method="post" action="<?php bbp_topic_tag_link(); ?>">
    7878
    7979                    <div>
     
    112112                    </div>
    113113
    114                     <form id="delete_tag" name="delete_tag" method="post" action="<?php the_permalink(); ?>">
     114                    <form id="delete_tag" name="delete_tag" method="post" action="<?php bbp_topic_tag_link(); ?>">
    115115
    116116                        <div class="bbp-submit-wrapper">
  • trunk/src/templates/default/bbpress/form-topic.php

    r6361 r6452  
    3333    <div id="new-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-form">
    3434
    35         <form id="new-post" name="new-post" method="post" action="<?php the_permalink(); ?>">
     35        <form id="new-post" name="new-post" method="post" action="<?php bbp_topic_permalink(); ?>">
    3636
    3737            <?php do_action( 'bbp_theme_before_topic_form' ); ?>
Note: See TracChangeset for help on using the changeset viewer.