Skip to:
Content

bbPress.org

Changeset 4279


Ignore:
Timestamp:
10/30/2012 08:18:13 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Code Improvement:

  • Use esc_attr_e() in place of _e() is some obvious places.
  • See #1999.
Location:
trunk/includes
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/admin/settings.php

    r4273 r4279  
    976976
    977977            <p class="submit">
    978                 <input type="submit" name="submit" class="button-primary" value="<?php _e( 'Save Changes', 'bbpress' ); ?>" />
     978                <input type="submit" name="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'bbpress' ); ?>" />
    979979            </p>
    980980        </form>
     
    12221222
    12231223            <p class="submit">
    1224                 <input type="button" name="submit" class="button-primary" id="bbp-converter-start" value="<?php _e( 'Start', 'bbpress' ); ?>" onclick="bbconverter_start()" />
    1225                 <input type="button" name="submit" class="button-primary" id="bbp-converter-stop" value="<?php _e( 'Stop', 'bbpress' ); ?>" onclick="bbconverter_stop()" />
     1224                <input type="button" name="submit" class="button-primary" id="bbp-converter-start" value="<?php esc_attr_e( 'Start', 'bbpress' ); ?>" onclick="bbconverter_start()" />
     1225                <input type="button" name="submit" class="button-primary" id="bbp-converter-stop" value="<?php esc_attr_e( 'Stop', 'bbpress' ); ?>" onclick="bbconverter_stop()" />
    12261226                <img id="bbp-converter-progress" src="">
    12271227            </p>
  • trunk/includes/admin/tools.php

    r4250 r4279  
    5959
    6060            <fieldset class="submit">
    61                 <input class="button-primary" type="submit" name="submit" value="<?php _e( 'Repair Items', 'bbpress' ); ?>" />
     61                <input class="button-primary" type="submit" name="submit" value="<?php esc_attr_e( 'Repair Items', 'bbpress' ); ?>" />
    6262                <?php wp_nonce_field( 'bbpress-do-counts' ); ?>
    6363            </fieldset>
     
    889889
    890890            <fieldset class="submit">
    891                 <input class="button-primary" type="submit" name="submit" value="<?php _e( 'Reset bbPress', 'bbpress' ); ?>" />
     891                <input class="button-primary" type="submit" name="submit" value="<?php esc_attr_e( 'Reset bbPress', 'bbpress' ); ?>" />
    892892                <?php wp_nonce_field( 'bbpress-reset' ); ?>
    893893            </fieldset>
  • trunk/includes/admin/users.php

    r4250 r4279  
    138138
    139139                            <p class="bbp-default-caps-wrapper">
    140                                 <input type="submit" name="bbp-default-caps" class="button" value="<?php _e( 'Reset to Default', 'bbpress' ); ?>"/>
     140                                <input type="submit" name="bbp-default-caps" class="button" value="<?php esc_attr_e( 'Reset to Default', 'bbpress' ); ?>"/>
    141141                            </p>
    142142
  • trunk/includes/core/widgets.php

    r4258 r4279  
    113113                            <?php if ( !empty( $register ) ) : ?>
    114114
    115                                 <a href="<?php echo esc_url( $register ); ?>" title="<?php _e( 'Register', 'bbpress' ); ?>" class="bbp-register-link"><?php _e( 'Register', 'bbpress' ); ?></a>
     115                                <a href="<?php echo esc_url( $register ); ?>" title="<?php esc_attr_e( 'Register', 'bbpress' ); ?>" class="bbp-register-link"><?php _e( 'Register', 'bbpress' ); ?></a>
    116116
    117117                            <?php endif; ?>
     
    119119                            <?php if ( !empty( $lostpass ) ) : ?>
    120120
    121                                 <a href="<?php echo esc_url( $lostpass ); ?>" title="<?php _e( 'Lost Password', 'bbpress' ); ?>" class="bbp-lostpass-link"><?php _e( 'Lost Password', 'bbpress' ); ?></a>
     121                                <a href="<?php echo esc_url( $lostpass ); ?>" title="<?php esc_attr_e( 'Lost Password', 'bbpress' ); ?>" class="bbp-lostpass-link"><?php _e( 'Lost Password', 'bbpress' ); ?></a>
    122122
    123123                            <?php endif; ?>
  • trunk/includes/extend/buddypress.php

    r4266 r4279  
    14431443        <p class="description"><?php _e( 'Saying no will not delete existing forum content.', 'bbpress' ); ?></p>
    14441444
    1445         <input type="submit" value="<?php _e( 'Save Settings', 'bbpress' ); ?>" />
     1445        <input type="submit" value="<?php esc_attr_e( 'Save Settings', 'bbpress' ); ?>" />
    14461446
    14471447        <?php
Note: See TracChangeset for help on using the changeset viewer.