Changeset 3912
- Timestamp:
- 05/22/2012 08:28:28 AM (13 years ago)
- Location:
- branches/plugin/bbp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-common-template.php
r3902 r3912 1170 1170 <input type="hidden" name="bbp_forum_id" id="bbp_forum_id" value="<?php bbp_forum_id(); ?>" /> 1171 1171 1172 <?php bbp_redirect_to_field( bbp_get_forum_permalink( bbp_get_forum_id() ) ); ?> 1173 1172 1174 <?php 1173 1175 … … 1219 1221 <input type="hidden" name="bbp_topic_id" id="bbp_topic_id" value="<?php bbp_topic_id(); ?>" /> 1220 1222 1223 <?php bbp_redirect_to_field( bbp_get_topic_permalink( bbp_get_topic_id() ) ); ?> 1224 1221 1225 <?php 1222 1226 … … 1233 1237 1234 1238 <input type="hidden" name="bbp_forum_id" id="bbp_forum_id" value="<?php bbp_forum_id(); ?>" /> 1235 1236 <?php bbp_redirect_to_field( get_permalink() ); ?>1237 1239 1238 1240 <?php endif; ?> … … 1267 1269 <input type="hidden" name="action" id="bbp_post_action" value="bbp-edit-reply" /> 1268 1270 1271 <?php bbp_redirect_to_field( bbp_get_reply_url( bbp_get_reply_id() ) ); ?> 1272 1269 1273 <?php if ( current_user_can( 'unfiltered_html' ) ) 1270 1274 wp_nonce_field( 'bbp-unfiltered-html-reply_' . bbp_get_reply_id(), '_bbp_unfiltered_html_reply', false ); ?> … … 1275 1279 1276 1280 <input type="hidden" name="bbp_reply_title" id="bbp_reply_title" value="<?php printf( __( 'Reply To: %s', 'bbpress' ), bbp_get_topic_title() ); ?>" maxlength="<?php bbp_get_title_max_length(); ?>" /> 1277 <input type="hidden" name="bbp_forum_id" id="bbp_forum_id" value="<?php bbp_forum_id(); ?>" />1278 1281 <input type="hidden" name="bbp_topic_id" id="bbp_topic_id" value="<?php bbp_topic_id(); ?>" /> 1279 1282 <input type="hidden" name="action" id="bbp_post_action" value="bbp-new-reply" /> -
branches/plugin/bbp-includes/bbp-reply-functions.php
r3911 r3912 160 160 if ( isset( $_POST['bbp_forum_id'] ) ) { 161 161 $forum_id = (int) $_POST['bbp_forum_id']; 162 } elseif ( !empty( $topic_id ) ) { 163 $forum_id = bbp_get_topic_forum_id( $topic_id ); 162 164 } else { 163 165 bbp_add_error( 'bbp_reply_forum_id', __( '<strong>ERROR</strong>: Forum ID is missing.', 'bbpress' ) );
Note: See TracChangeset
for help on using the changeset viewer.