Skip to:
Content

bbPress.org

Changeset 2982


Ignore:
Timestamp:
04/03/2011 07:25:02 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Rename "#reply" ID to "#post' for easy backwards compatibility with stand-alone permalinks.

Location:
branches/plugin
Files:
3 edited

Legend:

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

    r2980 r2982  
    365365
    366366                $reply_page    = ceil( $topic_replies / get_option( '_bbp_replies_per_page', 15 ) );
    367                 $reply_hash    = !empty( $bbp->errors ) ? "#reply-{$reply_id}" : '';
     367                $reply_hash    = !empty( $bbp->errors ) ? "#post-{$reply_id}" : '';
    368368
    369369                // Don't include pagination if on first page
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/loop-replies.php

    r2969 r2982  
    1010?>
    1111
    12 <?php if ( bbp_has_replies() ) : ?>
     12<?php if ( bbp_get_query_name() || bbp_has_replies() ) : ?>
    1313
    1414        <?php get_template_part( 'bbpress/pagination', 'replies' ); ?>
    … …  
    7777                                </tr>
    7878
    79                                 <tr id="reply-<?php bbp_reply_id(); ?>" <?php bbp_reply_class(); ?>>
     79                                <tr id="post-<?php bbp_reply_id(); ?>" <?php bbp_reply_class(); ?>>
    8080
    8181                                        <td class="bbp-reply-author"><?php bbp_reply_author_link( array( 'type' => 'avatar' ) ); ?></td>
    … …  
    8787                                        </td>
    8888
    89                                 </tr><!-- #topic-<?php bbp_topic_id(); ?>-replies -->
     89                                </tr><!-- #post-<?php bbp_topic_id(); ?> -->
    9090
    9191                        <?php endwhile; ?>
  • branches/plugin/bbp-themes/bbp-twentyten/single-topic.php

    r2955 r2982  
    7070                                                                                </tr>
    7171
    72                                                                                 <tr id="reply-<?php bbp_topic_id(); ?>" <?php post_class( 'bbp-forum-topic' ); ?>>
     72                                                                                <tr id="post-<?php bbp_topic_id(); ?>" <?php post_class( 'bbp-forum-topic' ); ?>>
    7373
    7474                                                                                        <td class="bbp-topic-author"><?php bbp_topic_author_link( array( 'type' => 'avatar' ) ); ?></td>
    … …  
    8080                                                                                        </td>
    8181
    82                                                                                 </tr><!-- #bbp-topic-<?php bbp_topic_id(); ?> -->
     82                                                                                </tr><!-- #post-<?php bbp_topic_id(); ?> -->
    8383
    8484                                                                        </tbody>
Note: See TracChangeset for help on using the changeset viewer.