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-reply.php

    r4960 r4994  
    8989                            <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> tabindex="<?php bbp_tab_index(); ?>" />
    9090
    91                             <?php if ( bbp_is_reply_edit() && ( get_the_author_meta( 'ID' ) != bbp_get_current_user_id() ) ) : ?>
     91                            <?php if ( bbp_is_reply_edit() && ( bbp_get_reply_author_id() !== bbp_get_current_user_id() ) ) : ?>
    9292
    9393                                <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.