Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/23/2013 06:08:55 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Use bbPress functions for getting the reply and topic author ID instead of using get_the_author_meta( 'ID' ). Allows for strict comparisons and uses bbPress's filters for the related functions.

File:
1 edited

Legend:

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

    r4960 r4994  
    143143                            <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe" <?php bbp_form_topic_subscribed(); ?> tabindex="<?php bbp_tab_index(); ?>" />
    144144
    145                             <?php if ( bbp_is_topic_edit() && ( get_the_author_meta( 'ID' ) != bbp_get_current_user_id() ) ) : ?>
     145                            <?php if ( bbp_is_topic_edit() && ( bbp_get_topic_author_id() !== bbp_get_current_user_id() ) ) : ?>
    146146
    147147                                <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
Note: See TracChangeset for help on using the changeset viewer.