Skip to:
Content

bbPress.org

Changeset 6038


Ignore:
Timestamp:
05/31/2016 03:01:26 AM (8 years ago)
Author:
netweb
Message:

Widgets: Use $this->get_field_id() in BBP_Topics_Widget::form() method to correctly create the widget id form attribute

Props alex-ye
Fixes #2758

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/widgets.php

    r5951 r6038  
    898898
    899899        <p>
    900             <label for="<?php echo $this->get_field_id( 'order_by' ); ?>"><?php _e( 'Order By:',        'bbpress' ); ?></label>
    901             <select name="<?php echo $this->get_field_name( 'order_by' ); ?>" id="<?php echo $this->get_field_name( 'order_by' ); ?>">
     900            <label for="<?php echo $this->get_field_id( 'order_by' ); ?>"><?php _e( 'Order By:', 'bbpress' ); ?></label>
     901            <select name="<?php echo $this->get_field_name( 'order_by' ); ?>" id="<?php echo $this->get_field_id( 'order_by' ); ?>">
    902902                <option <?php selected( $settings['order_by'], 'newness' );   ?> value="newness"><?php _e( 'Newest Topics',                'bbpress' ); ?></option>
    903903                <option <?php selected( $settings['order_by'], 'popular' );   ?> value="popular"><?php _e( 'Popular Topics',               'bbpress' ); ?></option>
Note: See TracChangeset for help on using the changeset viewer.