Skip to:
Content

bbPress.org


Ignore:
Timestamp:
09/20/2011 11:54:11 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Fix incorrect text in subscription label when editing a post. Fixes #1462. Props dimadin. (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/functions.bb-template.php

    r2911 r3524  
    35723572    $args       = wp_parse_args( $args, $defaults );
    35733573    $tab        = $args['tab'] !== false ? ' tabindex="' . $args['tab'] . '"' : '';
     3574    $is_current = bb_get_user_id( get_post_author_id() ) == bb_get_current_user_info( 'id' );
    35743575
    35753576    // Change subscription checkbox message if current or moderating
    3576     if ( isset( $_GET['new'] ) || ( $is_current = ( bb_get_user_id( get_post_author_id() ) == bb_get_current_user_info( 'id' ) ) ) )
     3577    if ( bb_is_topic_edit() && !$is_current )
     3578        $text = __( 'This user should be notified of follow-up posts via email' );
     3579    else
    35773580        $text = __( 'Notify me of follow-up posts via email' );
    3578     else
    3579         $text = __( 'This user should be notified of follow-up posts via email' );
    35803581
    35813582    echo '
Note: See TracChangeset for help on using the changeset viewer.