Changeset 5688
- Timestamp:
- 04/19/2015 04:27:37 PM (9 years ago)
- Location:
- trunk/src/templates/default
- Files:
-
- 43 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/templates/default/bbpress-functions.php
r5466 r5688 49 49 parent::__construct( bbp_parse_args( $properties, array( 50 50 'id' => 'default', 51 'name' => __( 'bbPress Default', 'bbpress' ),51 'name' => 'bbPress Default', 52 52 'version' => bbp_get_version(), 53 53 'dir' => trailingslashit( bbpress()->themes_dir . 'default' ), … … 241 241 wp_localize_script( 'bbpress-forum', 'bbpForumJS', array( 242 242 'bbp_ajaxurl' => bbp_get_ajax_url(), 243 'generic_ajax_error' => __( 'Something went wrong. Refresh your browser and try again.', 'bbpress' ),243 'generic_ajax_error' => esc_html__( 'Something went wrong. Refresh your browser and try again.', 'bbpress' ), 244 244 'is_user_logged_in' => is_user_logged_in(), 245 245 'subs_nonce' => wp_create_nonce( 'toggle-subscription_' . get_the_ID() ) … … 250 250 wp_localize_script( 'bbpress-topic', 'bbpTopicJS', array( 251 251 'bbp_ajaxurl' => bbp_get_ajax_url(), 252 'generic_ajax_error' => __( 'Something went wrong. Refresh your browser and try again.', 'bbpress' ),252 'generic_ajax_error' => esc_html__( 'Something went wrong. Refresh your browser and try again.', 'bbpress' ), 253 253 'is_user_logged_in' => is_user_logged_in(), 254 254 'fav_nonce' => wp_create_nonce( 'toggle-favorite_' . get_the_ID() ), … … 278 278 // Bail if subscriptions are not active 279 279 if ( ! bbp_is_subscriptions_active() ) { 280 bbp_ajax_response( false, __( 'Subscriptions are no longer active.', 'bbpress' ), 300 );280 bbp_ajax_response( false, esc_html__( 'Subscriptions are no longer active.', 'bbpress' ), 300 ); 281 281 } 282 282 283 283 // Bail if user is not logged in 284 284 if ( ! is_user_logged_in() ) { 285 bbp_ajax_response( false, __( 'Please login to subscribe to this forum.', 'bbpress' ), 301 );285 bbp_ajax_response( false, esc_html__( 'Please login to subscribe to this forum.', 'bbpress' ), 301 ); 286 286 } 287 287 … … 292 292 // Bail if user cannot add favorites for this user 293 293 if ( ! current_user_can( 'edit_user', $user_id ) ) { 294 bbp_ajax_response( false, __( 'You do not have permission to do this.', 'bbpress' ), 302 );294 bbp_ajax_response( false, esc_html__( 'You do not have permission to do this.', 'bbpress' ), 302 ); 295 295 } 296 296 … … 300 300 // Bail if forum cannot be found 301 301 if ( empty( $forum ) ) { 302 bbp_ajax_response( false, __( 'The forum could not be found.', 'bbpress' ), 303 );302 bbp_ajax_response( false, esc_html__( 'The forum could not be found.', 'bbpress' ), 303 ); 303 303 } 304 304 305 305 // Bail if user did not take this action 306 306 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'toggle-subscription_' . $forum->ID ) ) { 307 bbp_ajax_response( false, __( 'Are you sure you meant to do that?', 'bbpress' ), 304 );307 bbp_ajax_response( false, esc_html__( 'Are you sure you meant to do that?', 'bbpress' ), 304 ); 308 308 } 309 309 … … 313 313 // Bail if action failed 314 314 if ( empty( $status ) ) { 315 bbp_ajax_response( false, __( 'The request was unsuccessful. Please try again.', 'bbpress' ), 305 );315 bbp_ajax_response( false, esc_html__( 'The request was unsuccessful. Please try again.', 'bbpress' ), 305 ); 316 316 } 317 317 … … 346 346 // Bail if favorites are not active 347 347 if ( ! bbp_is_favorites_active() ) { 348 bbp_ajax_response( false, __( 'Favorites are no longer active.', 'bbpress' ), 300 );348 bbp_ajax_response( false, esc_html__( 'Favorites are no longer active.', 'bbpress' ), 300 ); 349 349 } 350 350 351 351 // Bail if user is not logged in 352 352 if ( ! is_user_logged_in() ) { 353 bbp_ajax_response( false, __( 'Please login to make this topic a favorite.', 'bbpress' ), 301 );353 bbp_ajax_response( false, esc_html__( 'Please login to make this topic a favorite.', 'bbpress' ), 301 ); 354 354 } 355 355 … … 360 360 // Bail if user cannot add favorites for this user 361 361 if ( ! current_user_can( 'edit_user', $user_id ) ) { 362 bbp_ajax_response( false, __( 'You do not have permission to do this.', 'bbpress' ), 302 );362 bbp_ajax_response( false, esc_html__( 'You do not have permission to do this.', 'bbpress' ), 302 ); 363 363 } 364 364 … … 368 368 // Bail if topic cannot be found 369 369 if ( empty( $topic ) ) { 370 bbp_ajax_response( false, __( 'The topic could not be found.', 'bbpress' ), 303 );370 bbp_ajax_response( false, esc_html__( 'The topic could not be found.', 'bbpress' ), 303 ); 371 371 } 372 372 373 373 // Bail if user did not take this action 374 374 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'toggle-favorite_' . $topic->ID ) ) { 375 bbp_ajax_response( false, __( 'Are you sure you meant to do that?', 'bbpress' ), 304 );375 bbp_ajax_response( false, esc_html__( 'Are you sure you meant to do that?', 'bbpress' ), 304 ); 376 376 } 377 377 … … 381 381 // Bail if action failed 382 382 if ( empty( $status ) ) { 383 bbp_ajax_response( false, __( 'The request was unsuccessful. Please try again.', 'bbpress' ), 305 );383 bbp_ajax_response( false, esc_html__( 'The request was unsuccessful. Please try again.', 'bbpress' ), 305 ); 384 384 } 385 385 … … 414 414 // Bail if subscriptions are not active 415 415 if ( ! bbp_is_subscriptions_active() ) { 416 bbp_ajax_response( false, __( 'Subscriptions are no longer active.', 'bbpress' ), 300 );416 bbp_ajax_response( false, esc_html__( 'Subscriptions are no longer active.', 'bbpress' ), 300 ); 417 417 } 418 418 419 419 // Bail if user is not logged in 420 420 if ( ! is_user_logged_in() ) { 421 bbp_ajax_response( false, __( 'Please login to subscribe to this topic.', 'bbpress' ), 301 );421 bbp_ajax_response( false, esc_html__( 'Please login to subscribe to this topic.', 'bbpress' ), 301 ); 422 422 } 423 423 … … 428 428 // Bail if user cannot add favorites for this user 429 429 if ( ! current_user_can( 'edit_user', $user_id ) ) { 430 bbp_ajax_response( false, __( 'You do not have permission to do this.', 'bbpress' ), 302 );430 bbp_ajax_response( false, esc_html__( 'You do not have permission to do this.', 'bbpress' ), 302 ); 431 431 } 432 432 … … 436 436 // Bail if topic cannot be found 437 437 if ( empty( $topic ) ) { 438 bbp_ajax_response( false, __( 'The topic could not be found.', 'bbpress' ), 303 );438 bbp_ajax_response( false, esc_html__( 'The topic could not be found.', 'bbpress' ), 303 ); 439 439 } 440 440 441 441 // Bail if user did not take this action 442 442 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'toggle-subscription_' . $topic->ID ) ) { 443 bbp_ajax_response( false, __( 'Are you sure you meant to do that?', 'bbpress' ), 304 );443 bbp_ajax_response( false, esc_html__( 'Are you sure you meant to do that?', 'bbpress' ), 304 ); 444 444 } 445 445 … … 449 449 // Bail if action failed 450 450 if ( empty( $status ) ) { 451 bbp_ajax_response( false, __( 'The request was unsuccessful. Please try again.', 'bbpress' ), 305 );451 bbp_ajax_response( false, esc_html__( 'The request was unsuccessful. Please try again.', 'bbpress' ), 305 ); 452 452 } 453 453 -
trunk/src/templates/default/bbpress/content-single-topic-lead.php
r5403 r5688 16 16 <li class="bbp-header"> 17 17 18 <div class="bbp-topic-author"><?php 18 <div class="bbp-topic-author"><?php esc_html_e( 'Creator', 'bbpress' ); ?></div><!-- .bbp-topic-author --> 19 19 20 20 <div class="bbp-topic-content"> 21 21 22 <?php _e( 'Topic', 'bbpress' ); ?>22 <?php esc_html_e( 'Topic', 'bbpress' ); ?> 23 23 24 24 </div><!-- .bbp-topic-content --> … … 84 84 <li class="bbp-footer"> 85 85 86 <div class="bbp-topic-author"><?php 86 <div class="bbp-topic-author"><?php esc_html_e( 'Creator', 'bbpress' ); ?></div> 87 87 88 88 <div class="bbp-topic-content"> 89 89 90 <?php _e( 'Topic', 'bbpress' ); ?>90 <?php esc_html_e( 'Topic', 'bbpress' ); ?> 91 91 92 92 </div><!-- .bbp-topic-content --> -
trunk/src/templates/default/bbpress/content-statistics.php
r4794 r5688 15 15 <?php do_action( 'bbp_before_statistics' ); ?> 16 16 17 <dt><?php _e( 'Registered Users', 'bbpress' ); ?></dt>17 <dt><?php esc_html_e( 'Registered Users', 'bbpress' ); ?></dt> 18 18 <dd> 19 19 <strong><?php echo esc_html( $stats['user_count'] ); ?></strong> 20 20 </dd> 21 21 22 <dt><?php _e( 'Forums', 'bbpress' ); ?></dt>22 <dt><?php esc_html_e( 'Forums', 'bbpress' ); ?></dt> 23 23 <dd> 24 24 <strong><?php echo esc_html( $stats['forum_count'] ); ?></strong> 25 25 </dd> 26 26 27 <dt><?php _e( 'Topics', 'bbpress' ); ?></dt>27 <dt><?php esc_html_e( 'Topics', 'bbpress' ); ?></dt> 28 28 <dd> 29 29 <strong><?php echo esc_html( $stats['topic_count'] ); ?></strong> 30 30 </dd> 31 31 32 <dt><?php _e( 'Replies', 'bbpress' ); ?></dt>32 <dt><?php esc_html_e( 'Replies', 'bbpress' ); ?></dt> 33 33 <dd> 34 34 <strong><?php echo esc_html( $stats['reply_count'] ); ?></strong> 35 35 </dd> 36 36 37 <dt><?php _e( 'Topic Tags', 'bbpress' ); ?></dt>37 <dt><?php esc_html_e( 'Topic Tags', 'bbpress' ); ?></dt> 38 38 <dd> 39 39 <strong><?php echo esc_html( $stats['topic_tag_count'] ); ?></strong> … … 42 42 <?php if ( !empty( $stats['empty_topic_tag_count'] ) ) : ?> 43 43 44 <dt><?php _e( 'Empty Topic Tags', 'bbpress' ); ?></dt>44 <dt><?php esc_html_e( 'Empty Topic Tags', 'bbpress' ); ?></dt> 45 45 <dd> 46 46 <strong><?php echo esc_html( $stats['empty_topic_tag_count'] ); ?></strong> … … 51 51 <?php if ( !empty( $stats['topic_count_hidden'] ) ) : ?> 52 52 53 <dt><?php _e( 'Hidden Topics', 'bbpress' ); ?></dt>53 <dt><?php esc_html_e( 'Hidden Topics', 'bbpress' ); ?></dt> 54 54 <dd> 55 55 <strong> … … 62 62 <?php if ( !empty( $stats['reply_count_hidden'] ) ) : ?> 63 63 64 <dt><?php _e( 'Hidden Replies', 'bbpress' ); ?></dt>64 <dt><?php esc_html_e( 'Hidden Replies', 'bbpress' ); ?></dt> 65 65 <dd> 66 66 <strong> -
trunk/src/templates/default/bbpress/feedback-logged-in.php
r5563 r5688 12 12 <div class="bbp-template-notice info"> 13 13 <ul> 14 <li><?php _e( 'You are already logged in.', 'bbpress' ); ?></li>14 <li><?php esc_html_e( 'You are already logged in.', 'bbpress' ); ?></li> 15 15 </ul> 16 16 </div> -
trunk/src/templates/default/bbpress/feedback-no-access.php
r5563 r5688 11 11 12 12 <div id="forum-private" class="bbp-forum-content"> 13 <h1 class="entry-title"><?php _e( 'Private', 'bbpress' ); ?></h1>13 <h1 class="entry-title"><?php esc_html_e( 'Private', 'bbpress' ); ?></h1> 14 14 <div class="entry-content"> 15 15 <div class="bbp-template-notice info"> 16 16 <ul> 17 <li><?php _e( 'You do not have permission to view this forum.', 'bbpress' ); ?></li>17 <li><?php esc_html_e( 'You do not have permission to view this forum.', 'bbpress' ); ?></li> 18 18 </ul> 19 19 </div> -
trunk/src/templates/default/bbpress/feedback-no-forums.php
r5563 r5688 12 12 <div class="bbp-template-notice"> 13 13 <ul> 14 <li><?php _e( 'Oh bother! No forums were found here!', 'bbpress' ); ?></li>14 <li><?php esc_html_e( 'Oh bother! No forums were found here!', 'bbpress' ); ?></li> 15 15 </ul> 16 16 </div> -
trunk/src/templates/default/bbpress/feedback-no-replies.php
r5563 r5688 12 12 <div class="bbp-template-notice"> 13 13 <ul> 14 <li><?php _e( 'Oh bother! No replies were found here!', 'bbpress' ); ?></li>14 <li><?php esc_html_e( 'Oh bother! No replies were found here!', 'bbpress' ); ?></li> 15 15 </ul> 16 16 </div> -
trunk/src/templates/default/bbpress/feedback-no-search.php
r5563 r5688 12 12 <div class="bbp-template-notice"> 13 13 <ul> 14 <li><?php _e( 'Oh bother! No search results were found here!', 'bbpress' ); ?></li>14 <li><?php esc_html_e( 'Oh bother! No search results were found here!', 'bbpress' ); ?></li> 15 15 </ul> 16 16 </div> -
trunk/src/templates/default/bbpress/feedback-no-topics.php
r5563 r5688 12 12 <div class="bbp-template-notice"> 13 13 <ul> 14 <li><?php _e( 'Oh bother! No topics were found here!', 'bbpress' ); ?></li>14 <li><?php esc_html_e( 'Oh bother! No topics were found here!', 'bbpress' ); ?></li> 15 15 </ul> 16 16 </div> -
trunk/src/templates/default/bbpress/form-anonymous.php
r5561 r5688 15 15 16 16 <fieldset class="bbp-form"> 17 <legend><?php ( bbp_is_topic_edit() || bbp_is_reply_edit() ) ? _e( 'Author Information', 'bbpress' ) :_e( 'Your information:', 'bbpress' ); ?></legend>17 <legend><?php ( bbp_is_topic_edit() || bbp_is_reply_edit() ) ? esc_html_e( 'Author Information', 'bbpress' ) : esc_html_e( 'Your information:', 'bbpress' ); ?></legend> 18 18 19 19 <?php do_action( 'bbp_theme_anonymous_form_extras_top' ); ?> 20 20 21 21 <p> 22 <label for="bbp_anonymous_author"><?php _e( 'Name (required):', 'bbpress' ); ?></label><br />22 <label for="bbp_anonymous_author"><?php esc_html_e( 'Name (required):', 'bbpress' ); ?></label><br /> 23 23 <input type="text" id="bbp_anonymous_author" value="<?php bbp_author_display_name(); ?>" size="40" name="bbp_anonymous_name" /> 24 24 </p> 25 25 26 26 <p> 27 <label for="bbp_anonymous_email"><?php _e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br />27 <label for="bbp_anonymous_email"><?php esc_html_e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br /> 28 28 <input type="text" id="bbp_anonymous_email" value="<?php bbp_author_email(); ?>" size="40" name="bbp_anonymous_email" /> 29 29 </p> 30 30 31 31 <p> 32 <label for="bbp_anonymous_website"><?php _e( 'Website:', 'bbpress' ); ?></label><br />32 <label for="bbp_anonymous_website"><?php esc_html_e( 'Website:', 'bbpress' ); ?></label><br /> 33 33 <input type="text" id="bbp_anonymous_website" value="<?php bbp_author_url(); ?>" size="40" name="bbp_anonymous_website" /> 34 34 </p> -
trunk/src/templates/default/bbpress/form-forum.php
r5563 r5688 32 32 33 33 <?php 34 if ( bbp_is_forum_edit() ) 35 printf( __( 'Now Editing “%s”', 'bbpress' ), bbp_get_forum_title() ); 36 else 37 bbp_is_single_forum() ? printf( __( 'Create New Forum in “%s”', 'bbpress' ), bbp_get_forum_title() ) : _e( 'Create New Forum', 'bbpress' ); 34 if ( bbp_is_forum_edit() ) : 35 printf( esc_html__( 'Now Editing “%s”', 'bbpress' ), bbp_get_forum_title() ); 36 else : 37 bbp_is_single_forum() 38 ? printf( esc_html__( 'Create New Forum in “%s”', 'bbpress' ), bbp_get_forum_title() ) 39 : esc_html_e( 'Create New Forum', 'bbpress' ); 40 endif; 38 41 ?> 39 42 … … 46 49 <div class="bbp-template-notice"> 47 50 <ul> 48 <li><?php _e( 'This forum is closed to new content, however your account still allows you to do so.', 'bbpress' ); ?></li>51 <li><?php esc_html_e( 'This forum is closed to new content, however your account still allows you to do so.', 'bbpress' ); ?></li> 49 52 </ul> 50 53 </div> … … 56 59 <div class="bbp-template-notice"> 57 60 <ul> 58 <li><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></li>61 <li><?php esc_html_e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></li> 59 62 </ul> 60 63 </div> … … 69 72 70 73 <p> 71 <label for="bbp_forum_title"><?php printf( __( 'Forum Name (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br />74 <label for="bbp_forum_title"><?php printf( esc_html__( 'Forum Name (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br /> 72 75 <input type="text" id="bbp_forum_title" value="<?php bbp_form_forum_title(); ?>" size="40" name="bbp_forum_title" maxlength="<?php bbp_title_max_length(); ?>" /> 73 76 </p> … … 84 87 85 88 <p class="form-allowed-tags"> 86 <label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />89 <label><?php esc_html_e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br /> 87 90 <code><?php bbp_allowed_tags(); ?></code> 88 91 </p> … … 93 96 94 97 <p> 95 <label for="bbp_forum_type"><?php _e( 'Forum Type:', 'bbpress' ); ?></label><br />98 <label for="bbp_forum_type"><?php esc_html_e( 'Forum Type:', 'bbpress' ); ?></label><br /> 96 99 <?php bbp_form_forum_type_dropdown(); ?> 97 100 </p> … … 102 105 103 106 <p> 104 <label for="bbp_forum_status"><?php _e( 'Status:', 'bbpress' ); ?></label><br />107 <label for="bbp_forum_status"><?php esc_html_e( 'Status:', 'bbpress' ); ?></label><br /> 105 108 <?php bbp_form_forum_status_dropdown(); ?> 106 109 </p> … … 111 114 112 115 <p> 113 <label for="bbp_forum_visibility"><?php _e( 'Visibility:', 'bbpress' ); ?></label><br />116 <label for="bbp_forum_visibility"><?php esc_html_e( 'Visibility:', 'bbpress' ); ?></label><br /> 114 117 <?php bbp_form_forum_visibility_dropdown(); ?> 115 118 </p> … … 120 123 121 124 <p> 122 <label for="bbp_forum_parent_id"><?php _e( 'Parent Forum:', 'bbpress' ); ?></label><br />125 <label for="bbp_forum_parent_id"><?php esc_html_e( 'Parent Forum:', 'bbpress' ); ?></label><br /> 123 126 124 127 <?php 125 128 bbp_dropdown( array( 126 129 'select_id' => 'bbp_forum_parent_id', 127 'show_none' => __( '(No Parent)', 'bbpress' ),130 'show_none' => esc_html__( '(No Parent)', 'bbpress' ), 128 131 'selected' => bbp_get_form_forum_parent(), 129 132 'exclude' => bbp_get_forum_id() … … 140 143 <?php do_action( 'bbp_theme_before_forum_form_submit_button' ); ?> 141 144 142 <button type="submit" id="bbp_forum_submit" name="bbp_forum_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>145 <button type="submit" id="bbp_forum_submit" name="bbp_forum_submit" class="button submit"><?php esc_html_e( 'Submit', 'bbpress' ); ?></button> 143 146 144 147 <?php do_action( 'bbp_theme_after_forum_form_submit_button' ); ?> … … 164 167 <div class="bbp-template-notice"> 165 168 <ul> 166 <li><?php printf( __( 'The forum ‘%s’ is closed to new content.', 'bbpress' ), bbp_get_forum_title() ); ?></li>169 <li><?php printf( esc_html__( 'The forum ‘%s’ is closed to new content.', 'bbpress' ), bbp_get_forum_title() ); ?></li> 167 170 </ul> 168 171 </div> … … 174 177 <div class="bbp-template-notice"> 175 178 <ul> 176 <li><?php is_user_logged_in() ? _e( 'You cannot create new forums.', 'bbpress' ) : _e( 'You must be logged in to create new forums.', 'bbpress' ); ?></li> 179 <li><?php is_user_logged_in() 180 ? esc_html_e( 'You cannot create new forums.', 'bbpress' ) 181 : esc_html_e( 'You must be logged in to create new forums.', 'bbpress' ); 182 ?></li> 177 183 </ul> 178 184 </div> -
trunk/src/templates/default/bbpress/form-protected.php
r4733 r5688 12 12 <div id="bbpress-forums"> 13 13 <fieldset class="bbp-form" id="bbp-protected"> 14 <Legend><?php _e( 'Protected', 'bbpress' ); ?></legend>14 <Legend><?php esc_html_e( 'Protected', 'bbpress' ); ?></legend> 15 15 16 16 <?php echo get_the_password_form(); ?> -
trunk/src/templates/default/bbpress/form-reply-move.php
r5563 r5688 22 22 <fieldset class="bbp-form"> 23 23 24 <legend><?php printf( __( 'Move reply "%s"', 'bbpress' ), bbp_get_reply_title() ); ?></legend>24 <legend><?php printf( esc_html__( 'Move reply "%s"', 'bbpress' ), bbp_get_reply_title() ); ?></legend> 25 25 26 26 <div> … … 28 28 <div class="bbp-template-notice info"> 29 29 <ul> 30 <li><?php _e( 'You can either make this reply a new topic with a new title, or merge it into an existing topic.', 'bbpress' ); ?></li>30 <li><?php esc_html_e( 'You can either make this reply a new topic with a new title, or merge it into an existing topic.', 'bbpress' ); ?></li> 31 31 </ul> 32 32 </div> … … 34 34 <div class="bbp-template-notice"> 35 35 <ul> 36 <li><?php _e( 'If you choose an existing topic, replies will be ordered by the time and date they were created.', 'bbpress' ); ?></li>36 <li><?php esc_html_e( 'If you choose an existing topic, replies will be ordered by the time and date they were created.', 'bbpress' ); ?></li> 37 37 </ul> 38 38 </div> 39 39 40 40 <fieldset class="bbp-form"> 41 <legend><?php _e( 'Move Method', 'bbpress' ); ?></legend>41 <legend><?php esc_html_e( 'Move Method', 'bbpress' ); ?></legend> 42 42 43 43 <div> 44 44 <input name="bbp_reply_move_option" id="bbp_reply_move_option_reply" type="radio" checked="checked" value="topic" /> 45 <label for="bbp_reply_move_option_reply"><?php printf( __( 'New topic in <strong>%s</strong>titled:', 'bbpress' ), bbp_get_forum_title( bbp_get_reply_forum_id( bbp_get_reply_id() ) ) ); ?></label>46 <input type="text" id="bbp_reply_move_destination_title" value="<?php printf( __( 'Moved: %s', 'bbpress' ), bbp_get_reply_title() ); ?>" size="35" name="bbp_reply_move_destination_title" />45 <label for="bbp_reply_move_option_reply"><?php printf( esc_html__( 'New topic in %s titled:', 'bbpress' ), bbp_get_forum_title( bbp_get_reply_forum_id( bbp_get_reply_id() ) ) ); ?></label> 46 <input type="text" id="bbp_reply_move_destination_title" value="<?php printf( esc_html__( 'Moved: %s', 'bbpress' ), bbp_get_reply_title() ); ?>" size="35" name="bbp_reply_move_destination_title" /> 47 47 </div> 48 48 … … 51 51 <div> 52 52 <input name="bbp_reply_move_option" id="bbp_reply_move_option_existing" type="radio" value="existing" /> 53 <label for="bbp_reply_move_option_existing"><?php _e( 'Use an existing topic in this forum:', 'bbpress' ); ?></label>53 <label for="bbp_reply_move_option_existing"><?php esc_html_e( 'Use an existing topic in this forum:', 'bbpress' ); ?></label> 54 54 55 55 <?php … … 71 71 <div class="bbp-template-notice error" role="alert" tabindex="-1"> 72 72 <ul> 73 <li><?php _e( '<strong>WARNING:</strong>This process cannot be undone.', 'bbpress' ); ?></li>73 <li><?php esc_html_e( 'This process cannot be undone.', 'bbpress' ); ?></li> 74 74 </ul> 75 75 </div> 76 76 77 77 <div class="bbp-submit-wrapper"> 78 <button type="submit" id="bbp_move_reply_submit" name="bbp_move_reply_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>78 <button type="submit" id="bbp_move_reply_submit" name="bbp_move_reply_submit" class="button submit"><?php esc_html_e( 'Submit', 'bbpress' ); ?></button> 79 79 </div> 80 80 </div> … … 89 89 90 90 <div id="no-reply-<?php bbp_reply_id(); ?>" class="bbp-no-reply"> 91 <div class="entry-content"><?php is_user_logged_in() ? _e( 'You do not have the permissions to edit this reply!', 'bbpress' ) : _e( 'You cannot edit this reply.', 'bbpress' ); ?></div> 91 <div class="entry-content"><?php is_user_logged_in() 92 ? esc_html_e( 'You do not have the permissions to edit this reply!', 'bbpress' ) 93 : esc_html_e( 'You cannot edit this reply.', 'bbpress' ); 94 ?></div> 92 95 </div> 93 96 -
trunk/src/templates/default/bbpress/form-reply.php
r5563 r5688 35 35 <div class="bbp-template-notice"> 36 36 <ul> 37 <li><?php _e( 'This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></li>37 <li><?php esc_html_e( 'This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></li> 38 38 </ul> 39 39 </div> … … 45 45 <div class="bbp-template-notice"> 46 46 <ul> 47 <li><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></li>47 <li><?php esc_html_e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></li> 48 48 </ul> 49 49 </div> … … 66 66 67 67 <p class="form-allowed-tags"> 68 <label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />68 <label><?php esc_html_e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br /> 69 69 <code><?php bbp_allowed_tags(); ?></code> 70 70 </p> … … 77 77 78 78 <p> 79 <label for="bbp_topic_tags"><?php _e( 'Tags:', 'bbpress' ); ?></label><br />79 <label for="bbp_topic_tags"><?php esc_html_e( 'Tags:', 'bbpress' ); ?></label><br /> 80 80 <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> /> 81 81 </p> … … 95 95 <?php if ( bbp_is_reply_edit() && ( bbp_get_reply_author_id() !== bbp_get_current_user_id() ) ) : ?> 96 96 97 <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>97 <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label> 98 98 99 99 <?php else : ?> 100 100 101 <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>101 <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label> 102 102 103 103 <?php endif; ?> … … 116 116 117 117 <p class="form-reply-to"> 118 <label for="bbp_reply_to"><?php _e( 'Reply To:', 'bbpress' ); ?></label><br />118 <label for="bbp_reply_to"><?php esc_html_e( 'Reply To:', 'bbpress' ); ?></label><br /> 119 119 <?php bbp_reply_to_dropdown(); ?> 120 120 </p> … … 125 125 126 126 <p> 127 <label for="bbp_reply_status"><?php _e( 'Reply Status:', 'bbpress' ); ?></label><br />127 <label for="bbp_reply_status"><?php esc_html_e( 'Reply Status:', 'bbpress' ); ?></label><br /> 128 128 <?php bbp_form_reply_status_dropdown(); ?> 129 129 </p> … … 140 140 <legend> 141 141 <input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php bbp_form_reply_log_edit(); ?> /> 142 <label for="bbp_log_reply_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />142 <label for="bbp_log_reply_edit"><?php esc_html_e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br /> 143 143 </legend> 144 144 145 145 <div> 146 <label for="bbp_reply_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />146 <label for="bbp_reply_edit_reason"><?php printf( esc_html__( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br /> 147 147 <input type="text" value="<?php bbp_form_reply_edit_reason(); ?>" size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" /> 148 148 </div> … … 163 163 <?php bbp_cancel_reply_to_link(); ?> 164 164 165 <button type="submit" id="bbp_reply_submit" name="bbp_reply_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>165 <button type="submit" id="bbp_reply_submit" name="bbp_reply_submit" class="button submit"><?php esc_html_e( 'Submit', 'bbpress' ); ?></button> 166 166 167 167 <?php do_action( 'bbp_theme_after_reply_form_submit_button' ); ?> … … 187 187 <div class="bbp-template-notice"> 188 188 <ul> 189 <li><?php printf( __( 'The topic ‘%s’ is closed to new replies.', 'bbpress' ), bbp_get_topic_title() ); ?></li>189 <li><?php printf( esc_html__( 'The topic ‘%s’ is closed to new replies.', 'bbpress' ), bbp_get_topic_title() ); ?></li> 190 190 </ul> 191 191 </div> … … 197 197 <div class="bbp-template-notice"> 198 198 <ul> 199 <li><?php printf( __( 'The forum ‘%s’ is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></li>199 <li><?php printf( esc_html__( 'The forum ‘%s’ is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></li> 200 200 </ul> 201 201 </div> … … 207 207 <div class="bbp-template-notice"> 208 208 <ul> 209 <li><?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'You must be logged in to reply to this topic.', 'bbpress' ); ?></li> 209 <li><?php is_user_logged_in() 210 ? esc_html_e( 'You cannot reply to this topic.', 'bbpress' ) 211 : esc_html_e( 'You must be logged in to reply to this topic.', 'bbpress' ); 212 ?></li> 210 213 </ul> 211 214 </div> -
trunk/src/templates/default/bbpress/form-search.php
r5561 r5688 12 12 <form role="search" method="get" id="bbp-search-form" action="<?php bbp_search_url(); ?>"> 13 13 <div> 14 <label class="screen-reader-text hidden" for="bbp_search"><?php _e( 'Search for:', 'bbpress' ); ?></label>14 <label class="screen-reader-text hidden" for="bbp_search"><?php esc_html_e( 'Search for:', 'bbpress' ); ?></label> 15 15 <input type="hidden" name="action" value="bbp-search-request" /> 16 16 <input type="text" value="<?php echo esc_attr( bbp_get_search_terms() ); ?>" name="bbp_search" id="bbp_search" /> -
trunk/src/templates/default/bbpress/form-topic-merge.php
r5563 r5688 22 22 <fieldset class="bbp-form"> 23 23 24 <legend><?php printf( __( 'Merge topic "%s"', 'bbpress' ), bbp_get_topic_title() ); ?></legend>24 <legend><?php printf( esc_html__( 'Merge topic "%s"', 'bbpress' ), bbp_get_topic_title() ); ?></legend> 25 25 26 26 <div> … … 28 28 <div class="bbp-template-notice info"> 29 29 <ul> 30 <li><?php _e( 'Select the topic to merge this one into. The destination topic will remain the lead topic, and this one will change into a reply.', 'bbpress' ); ?></li>31 <li><?php _e( 'To keep this topic as the lead, go to the other topic and use the merge tool from there instead.', 'bbpress' ); ?></li>30 <li><?php esc_html_e( 'Select the topic to merge this one into. The destination topic will remain the lead topic, and this one will change into a reply.', 'bbpress' ); ?></li> 31 <li><?php esc_html_e( 'To keep this topic as the lead, go to the other topic and use the merge tool from there instead.', 'bbpress' ); ?></li> 32 32 </ul> 33 33 </div> … … 35 35 <div class="bbp-template-notice"> 36 36 <ul> 37 <li><?php _e( 'Replies to both topics are merged chronologically, ordered by the time and date they were published. Topics may be updated to a 1 second difference to maintain chronological order based on the merge direction.', 'bbpress' ); ?></li>37 <li><?php esc_html_e( 'Replies to both topics are merged chronologically, ordered by the time and date they were published. Topics may be updated to a 1 second difference to maintain chronological order based on the merge direction.', 'bbpress' ); ?></li> 38 38 </ul> 39 39 </div> 40 40 41 41 <fieldset class="bbp-form"> 42 <legend><?php _e( 'Destination', 'bbpress' ); ?></legend>42 <legend><?php esc_html_e( 'Destination', 'bbpress' ); ?></legend> 43 43 <div> 44 44 <?php if ( bbp_has_topics( array( 'show_stickies' => false, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'post__not_in' => array( bbp_get_topic_id() ) ) ) ) : ?> 45 45 46 <label for="bbp_destination_topic"><?php _e( 'Merge with this topic:', 'bbpress' ); ?></label>46 <label for="bbp_destination_topic"><?php esc_html_e( 'Merge with this topic:', 'bbpress' ); ?></label> 47 47 48 48 <?php … … 59 59 <?php else : ?> 60 60 61 <label><?php _e( 'There are no other topics in this forum to merge with.', 'bbpress' ); ?></label>61 <label><?php esc_html_e( 'There are no other topics in this forum to merge with.', 'bbpress' ); ?></label> 62 62 63 63 <?php endif; ?> … … 67 67 68 68 <fieldset class="bbp-form"> 69 <legend><?php _e( 'Topic Extras', 'bbpress' ); ?></legend>69 <legend><?php esc_html_e( 'Topic Extras', 'bbpress' ); ?></legend> 70 70 71 71 <div> … … 74 74 75 75 <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" /> 76 <label for="bbp_topic_subscribers"><?php _e( 'Merge topic subscribers', 'bbpress' ); ?></label><br />76 <label for="bbp_topic_subscribers"><?php esc_html_e( 'Merge topic subscribers', 'bbpress' ); ?></label><br /> 77 77 78 78 <?php endif; ?> 79 79 80 80 <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" /> 81 <label for="bbp_topic_favoriters"><?php _e( 'Merge topic favoriters', 'bbpress' ); ?></label><br />81 <label for="bbp_topic_favoriters"><?php esc_html_e( 'Merge topic favoriters', 'bbpress' ); ?></label><br /> 82 82 83 83 <?php if ( bbp_allow_topic_tags() ) : ?> 84 84 85 85 <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" /> 86 <label for="bbp_topic_tags"><?php _e( 'Merge topic tags', 'bbpress' ); ?></label><br />86 <label for="bbp_topic_tags"><?php esc_html_e( 'Merge topic tags', 'bbpress' ); ?></label><br /> 87 87 88 88 <?php endif; ?> … … 93 93 <div class="bbp-template-notice error"> 94 94 <ul> 95 <li><?php _e( '<strong>WARNING:</strong>This process cannot be undone.', 'bbpress' ); ?></li>95 <li><?php esc_html_e( 'This process cannot be undone.', 'bbpress' ); ?></li> 96 96 </ul> 97 97 </div> 98 98 99 99 <div class="bbp-submit-wrapper"> 100 <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>100 <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php esc_html_e( 'Submit', 'bbpress' ); ?></button> 101 101 </div> 102 102 </div> … … 111 111 112 112 <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic"> 113 <div class="entry-content"><?php is_user_logged_in() ? _e( 'You do not have the permissions to edit this topic!', 'bbpress' ) : _e( 'You cannot edit this topic.', 'bbpress' ); ?></div> 113 <div class="entry-content"><?php is_user_logged_in() 114 ? esc_html_e( 'You do not have the permissions to edit this topic!', 'bbpress' ) 115 : esc_html_e( 'You cannot edit this topic.', 'bbpress' ); 116 ?></div> 114 117 </div> 115 118 -
trunk/src/templates/default/bbpress/form-topic-split.php
r5563 r5688 22 22 <fieldset class="bbp-form"> 23 23 24 <legend><?php printf( __( 'Split topic "%s"', 'bbpress' ), bbp_get_topic_title() ); ?></legend>24 <legend><?php printf( esc_html__( 'Split topic "%s"', 'bbpress' ), bbp_get_topic_title() ); ?></legend> 25 25 26 26 <div> … … 28 28 <div class="bbp-template-notice info"> 29 29 <ul> 30 <li><?php _e( 'When you split a topic, you are slicing it in half starting with the reply you just selected. Choose to use that reply as a new topic with a new title, or merge those replies into an existing topic.', 'bbpress' ); ?></li>30 <li><?php esc_html_e( 'When you split a topic, you are slicing it in half starting with the reply you just selected. Choose to use that reply as a new topic with a new title, or merge those replies into an existing topic.', 'bbpress' ); ?></li> 31 31 </ul> 32 32 </div> … … 34 34 <div class="bbp-template-notice"> 35 35 <ul> 36 <li><?php _e( 'If you use the existing topic option, replies within both topics will be merged chronologically. The order of the merged replies is based on the time and date they were posted.', 'bbpress' ); ?></li>36 <li><?php esc_html_e( 'If you use the existing topic option, replies within both topics will be merged chronologically. The order of the merged replies is based on the time and date they were posted.', 'bbpress' ); ?></li> 37 37 </ul> 38 38 </div> 39 39 40 40 <fieldset class="bbp-form"> 41 <legend><?php _e( 'Split Method', 'bbpress' ); ?></legend>41 <legend><?php esc_html_e( 'Split Method', 'bbpress' ); ?></legend> 42 42 43 43 <div> 44 44 <input name="bbp_topic_split_option" id="bbp_topic_split_option_reply" type="radio" checked="checked" value="reply" /> 45 <label for="bbp_topic_split_option_reply"><?php printf( __( 'New topic in <strong>%s</strong>titled:', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id( bbp_get_topic_id() ) ) ); ?></label>46 <input type="text" id="bbp_topic_split_destination_title" value="<?php printf( __( 'Split: %s', 'bbpress' ), bbp_get_topic_title() ); ?>" size="35" name="bbp_topic_split_destination_title" />45 <label for="bbp_topic_split_option_reply"><?php printf( esc_html__( 'New topic in %s titled:', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id( bbp_get_topic_id() ) ) ); ?></label> 46 <input type="text" id="bbp_topic_split_destination_title" value="<?php printf( esc_html__( 'Split: %s', 'bbpress' ), bbp_get_topic_title() ); ?>" size="35" name="bbp_topic_split_destination_title" /> 47 47 </div> 48 48 … … 51 51 <div> 52 52 <input name="bbp_topic_split_option" id="bbp_topic_split_option_existing" type="radio" value="existing" /> 53 <label for="bbp_topic_split_option_existing"><?php _e( 'Use an existing topic in this forum:', 'bbpress' ); ?></label>53 <label for="bbp_topic_split_option_existing"><?php esc_html_e( 'Use an existing topic in this forum:', 'bbpress' ); ?></label> 54 54 55 55 <?php … … 71 71 72 72 <fieldset class="bbp-form"> 73 <legend><?php _e( 'Topic Extras', 'bbpress' ); ?></legend>73 <legend><?php esc_html_e( 'Topic Extras', 'bbpress' ); ?></legend> 74 74 75 75 <div> … … 78 78 79 79 <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" /> 80 <label for="bbp_topic_subscribers"><?php _e( 'Copy subscribers to the new topic', 'bbpress' ); ?></label><br />80 <label for="bbp_topic_subscribers"><?php esc_html_e( 'Copy subscribers to the new topic', 'bbpress' ); ?></label><br /> 81 81 82 82 <?php endif; ?> 83 83 84 84 <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" /> 85 <label for="bbp_topic_favoriters"><?php _e( 'Copy favoriters to the new topic', 'bbpress' ); ?></label><br />85 <label for="bbp_topic_favoriters"><?php esc_html_e( 'Copy favoriters to the new topic', 'bbpress' ); ?></label><br /> 86 86 87 87 <?php if ( bbp_allow_topic_tags() ) : ?> 88 88 89 89 <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" /> 90 <label for="bbp_topic_tags"><?php _e( 'Copy topic tags to the new topic', 'bbpress' ); ?></label><br />90 <label for="bbp_topic_tags"><?php esc_html_e( 'Copy topic tags to the new topic', 'bbpress' ); ?></label><br /> 91 91 92 92 <?php endif; ?> … … 97 97 <div class="bbp-template-notice error" role="alert" tabindex="-1"> 98 98 <ul> 99 <li><?php _e( '<strong>WARNING:</strong>This process cannot be undone.', 'bbpress' ); ?></li>99 <li><?php esc_html_e( 'This process cannot be undone.', 'bbpress' ); ?></li> 100 100 </ul> 101 101 </div> 102 102 103 103 <div class="bbp-submit-wrapper"> 104 <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>104 <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php esc_html_e( 'Submit', 'bbpress' ); ?></button> 105 105 </div> 106 106 </div> … … 115 115 116 116 <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic"> 117 <div class="entry-content"><?php is_user_logged_in() ? _e( 'You do not have the permissions to edit this topic!', 'bbpress' ) : _e( 'You cannot edit this topic.', 'bbpress' ); ?></div> 117 <div class="entry-content"><?php is_user_logged_in() 118 ? esc_html_e( 'You do not have the permissions to edit this topic!', 'bbpress' ) 119 : esc_html_e( 'You cannot edit this topic.', 'bbpress' ); 120 ?></div> 118 121 </div> 119 122 -
trunk/src/templates/default/bbpress/form-topic-tag.php
r5563 r5688 16 16 <fieldset class="bbp-form" id="bbp-edit-topic-tag"> 17 17 18 <legend><?php printf( __( 'Manage Tag: "%s"', 'bbpress' ), bbp_get_topic_tag_name() ); ?></legend>18 <legend><?php printf( esc_html__( 'Manage Tag: "%s"', 'bbpress' ), bbp_get_topic_tag_name() ); ?></legend> 19 19 20 20 <fieldset class="bbp-form" id="tag-rename"> 21 21 22 <legend><?php _e( 'Rename', 'bbpress' ); ?></legend>22 <legend><?php esc_html_e( 'Rename', 'bbpress' ); ?></legend> 23 23 24 24 <div class="bbp-template-notice info"> 25 25 <ul> 26 <li><?php _e( 'Leave the slug empty to have one automatically generated.', 'bbpress' ); ?></li>26 <li><?php esc_html_e( 'Leave the slug empty to have one automatically generated.', 'bbpress' ); ?></li> 27 27 </ul> 28 28 </div> … … 30 30 <div class="bbp-template-notice"> 31 31 <ul> 32 <li><?php _e( 'Changing the slug affects its permalink. Any links to the old slug will stop working.', 'bbpress' ); ?></li>32 <li><?php esc_html_e( 'Changing the slug affects its permalink. Any links to the old slug will stop working.', 'bbpress' ); ?></li> 33 33 </ul> 34 34 </div> … … 37 37 38 38 <div> 39 <label for="tag-name"><?php _e( 'Name:', 'bbpress' ); ?></label>39 <label for="tag-name"><?php esc_html_e( 'Name:', 'bbpress' ); ?></label> 40 40 <input type="text" id="tag-name" name="tag-name" size="20" maxlength="40" value="<?php echo esc_attr( bbp_get_topic_tag_name() ); ?>" /> 41 41 </div> 42 42 43 43 <div> 44 <label for="tag-slug"><?php _e( 'Slug:', 'bbpress' ); ?></label>44 <label for="tag-slug"><?php esc_html_e( 'Slug:', 'bbpress' ); ?></label> 45 45 <input type="text" id="tag-slug" name="tag-slug" size="20" maxlength="40" value="<?php echo esc_attr( apply_filters( 'editable_slug', bbp_get_topic_tag_slug() ) ); ?>" /> 46 46 </div> 47 47 48 48 <div> 49 <label for="tag-description"><?php _e( 'Description:', 'bbpress' ); ?></label>49 <label for="tag-description"><?php esc_html_e( 'Description:', 'bbpress' ); ?></label> 50 50 <input type="text" id="tag-description" name="tag-description" size="20" value="<?php echo esc_attr( bbp_get_topic_tag_description( array( 'before' => '', 'after' => '' ) ) ); ?>" /> 51 51 </div> … … 66 66 <fieldset class="bbp-form" id="tag-merge"> 67 67 68 <legend><?php _e( 'Merge', 'bbpress' ); ?></legend>68 <legend><?php esc_html_e( 'Merge', 'bbpress' ); ?></legend> 69 69 70 70 <div class="bbp-template-notice"> 71 71 <ul> 72 <li><?php _e( 'Merging tags together cannot be undone.', 'bbpress' ); ?></li>72 <li><?php esc_html_e( 'Merging tags together cannot be undone.', 'bbpress' ); ?></li> 73 73 </ul> 74 74 </div> … … 77 77 78 78 <div> 79 <label for="tag-existing-name"><?php _e( 'Existing tag:', 'bbpress' ); ?></label>79 <label for="tag-existing-name"><?php esc_html_e( 'Existing tag:', 'bbpress' ); ?></label> 80 80 <input type="text" id="tag-existing-name" name="tag-existing-name" size="22" maxlength="40" /> 81 81 </div> 82 82 83 83 <div class="bbp-submit-wrapper"> 84 <button type="submit" class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to merge the "%s" tag into the tag you specified?', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Merge', 'bbpress' ); ?></button>84 <button type="submit" class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( esc_html__( 'Are you sure you want to merge the "%s" tag into the tag you specified?', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Merge', 'bbpress' ); ?></button> 85 85 86 86 <input type="hidden" name="tag-id" value="<?php bbp_topic_tag_id(); ?>" /> … … 97 97 <fieldset class="bbp-form" id="delete-tag"> 98 98 99 <legend><?php _e( 'Delete', 'bbpress' ); ?></legend>99 <legend><?php esc_html_e( 'Delete', 'bbpress' ); ?></legend> 100 100 101 101 <div class="bbp-template-notice info"> 102 102 <ul> 103 <li><?php _e( 'This does not delete your topics. Only the tag itself is deleted.', 'bbpress' ); ?></li>103 <li><?php esc_html_e( 'This does not delete your topics. Only the tag itself is deleted.', 'bbpress' ); ?></li> 104 104 </ul> 105 105 </div> 106 106 <div class="bbp-template-notice"> 107 107 <ul> 108 <li><?php _e( 'Deleting a tag cannot be undone.', 'bbpress' ); ?></li>109 <li><?php _e( 'Any links to this tag will no longer function.', 'bbpress' ); ?></li>108 <li><?php esc_html_e( 'Deleting a tag cannot be undone.', 'bbpress' ); ?></li> 109 <li><?php esc_html_e( 'Any links to this tag will no longer function.', 'bbpress' ); ?></li> 110 110 </ul> 111 111 </div> … … 114 114 115 115 <div class="bbp-submit-wrapper"> 116 <button type="submit" class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to delete the "%s" tag? This is permanent and cannot be undone.', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Delete', 'bbpress' ); ?></button>116 <button type="submit" class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( esc_html__( 'Are you sure you want to delete the "%s" tag? This is permanent and cannot be undone.', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Delete', 'bbpress' ); ?></button> 117 117 118 118 <input type="hidden" name="tag-id" value="<?php bbp_topic_tag_id(); ?>" /> -
trunk/src/templates/default/bbpress/form-topic.php
r5563 r5688 39 39 <?php 40 40 if ( bbp_is_topic_edit() ) : 41 printf( __( 'Now Editing “%s”', 'bbpress' ), bbp_get_topic_title() );41 printf( esc_html__( 'Now Editing “%s”', 'bbpress' ), bbp_get_topic_title() ); 42 42 else : 43 43 ( bbp_is_single_forum() && bbp_get_forum_title() ) 44 ? printf( __( 'Create New Topic in “%s”', 'bbpress' ), bbp_get_forum_title() )45 : _e( 'Create New Topic', 'bbpress' );44 ? printf( esc_html__( 'Create New Topic in “%s”', 'bbpress' ), bbp_get_forum_title() ) 45 : esc_html_e( 'Create New Topic', 'bbpress' ); 46 46 endif; 47 47 ?> … … 55 55 <div class="bbp-template-notice"> 56 56 <ul> 57 <li><?php _e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></li>57 <li><?php esc_html_e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></li> 58 58 </ul> 59 59 </div> … … 65 65 <div class="bbp-template-notice"> 66 66 <ul> 67 <li><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></li>67 <li><?php esc_html_e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></li> 68 68 </ul> 69 69 </div> … … 80 80 81 81 <p> 82 <label for="bbp_topic_title"><?php printf( __( 'Topic Title (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br />82 <label for="bbp_topic_title"><?php printf( esc_html__( 'Topic Title (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br /> 83 83 <input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" size="40" name="bbp_topic_title" maxlength="<?php bbp_title_max_length(); ?>" /> 84 84 </p> … … 95 95 96 96 <p class="form-allowed-tags"> 97 <label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />97 <label><?php printf( esc_html__( 'You may use these %s tags and attributes:', 'bbpress' ), '<abbr title="HyperText Markup Language">HTML</abbr>' ); ?></label><br /> 98 98 <code><?php bbp_allowed_tags(); ?></code> 99 99 </p> … … 106 106 107 107 <p> 108 <label for="bbp_topic_tags"><?php _e( 'Topic Tags:', 'bbpress' ); ?></label><br />108 <label for="bbp_topic_tags"><?php esc_html_e( 'Topic Tags:', 'bbpress' ); ?></label><br /> 109 109 <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> /> 110 110 </p> … … 119 119 120 120 <p> 121 <label for="bbp_forum_id"><?php _e( 'Forum:', 'bbpress' ); ?></label><br />121 <label for="bbp_forum_id"><?php esc_html_e( 'Forum:', 'bbpress' ); ?></label><br /> 122 122 <?php 123 123 bbp_dropdown( array( 124 'show_none' => __( '(No Forum)', 'bbpress' ),124 'show_none' => esc_html__( '(No Forum)', 'bbpress' ), 125 125 'selected' => bbp_get_form_topic_forum() 126 126 ) ); … … 138 138 <p> 139 139 140 <label for="bbp_stick_topic"><?php _e( 'Topic Type:', 'bbpress' ); ?></label><br />140 <label for="bbp_stick_topic"><?php esc_html_e( 'Topic Type:', 'bbpress' ); ?></label><br /> 141 141 142 142 <?php bbp_form_topic_type_dropdown(); ?> … … 150 150 <p> 151 151 152 <label for="bbp_topic_status"><?php _e( 'Topic Status:', 'bbpress' ); ?></label><br />152 <label for="bbp_topic_status"><?php esc_html_e( 'Topic Status:', 'bbpress' ); ?></label><br /> 153 153 154 154 <?php bbp_form_topic_status_dropdown(); ?> … … 169 169 <?php if ( bbp_is_topic_edit() && ( bbp_get_topic_author_id() !== bbp_get_current_user_id() ) ) : ?> 170 170 171 <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>171 <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label> 172 172 173 173 <?php else : ?> 174 174 175 <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>175 <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label> 176 176 177 177 <?php endif; ?> … … 189 189 <legend> 190 190 <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> /> 191 <label for="bbp_log_topic_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />191 <label for="bbp_log_topic_edit"><?php esc_html_e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br /> 192 192 </legend> 193 193 194 194 <div> 195 <label for="bbp_topic_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />195 <label for="bbp_topic_edit_reason"><?php printf( esc_html__( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br /> 196 196 <input type="text" value="<?php bbp_form_topic_edit_reason(); ?>" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" /> 197 197 </div> … … 208 208 <?php do_action( 'bbp_theme_before_topic_form_submit_button' ); ?> 209 209 210 <button type="submit" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>210 <button type="submit" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php esc_html_e( 'Submit', 'bbpress' ); ?></button> 211 211 212 212 <?php do_action( 'bbp_theme_after_topic_form_submit_button' ); ?> … … 232 232 <div class="bbp-template-notice"> 233 233 <ul> 234 <li><?php printf( __( 'The forum ‘%s’ is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title() ); ?></li>234 <li><?php printf( esc_html__( 'The forum ‘%s’ is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title() ); ?></li> 235 235 </ul> 236 236 </div> … … 242 242 <div class="bbp-template-notice"> 243 243 <ul> 244 <li><?php is_user_logged_in() ? _e( 'You cannot create new topics.', 'bbpress' ) : _e( 'You must be logged in to create new topics.', 'bbpress' ); ?></li> 244 <li><?php is_user_logged_in() 245 ? esc_html_e( 'You cannot create new topics.', 'bbpress' ) 246 : esc_html_e( 'You must be logged in to create new topics.', 'bbpress' ); 247 ?></li> 245 248 </ul> 246 249 </div> -
trunk/src/templates/default/bbpress/form-user-edit.php
r5660 r5688 12 12 <form id="bbp-your-profile" action="<?php bbp_user_profile_edit_url( bbp_get_displayed_user_id() ); ?>" method="post" enctype="multipart/form-data"> 13 13 14 <h2 class="entry-title"><?php _e( 'Name', 'bbpress' ) ?></h2>14 <h2 class="entry-title"><?php esc_html_e( 'Name', 'bbpress' ) ?></h2> 15 15 16 16 <?php do_action( 'bbp_user_edit_before' ); ?> 17 17 18 18 <fieldset class="bbp-form"> 19 <legend><?php _e( 'Name', 'bbpress' ) ?></legend>19 <legend><?php esc_html_e( 'Name', 'bbpress' ) ?></legend> 20 20 21 21 <?php do_action( 'bbp_user_edit_before_name' ); ?> 22 22 23 23 <div> 24 <label for="first_name"><?php _e( 'First Name', 'bbpress' ) ?></label>24 <label for="first_name"><?php esc_html_e( 'First Name', 'bbpress' ) ?></label> 25 25 <input type="text" name="first_name" id="first_name" value="<?php bbp_displayed_user_field( 'first_name', 'edit' ); ?>" class="regular-text" /> 26 26 </div> 27 27 28 28 <div> 29 <label for="last_name"><?php _e( 'Last Name', 'bbpress' ) ?></label>29 <label for="last_name"><?php esc_html_e( 'Last Name', 'bbpress' ) ?></label> 30 30 <input type="text" name="last_name" id="last_name" value="<?php bbp_displayed_user_field( 'last_name', 'edit' ); ?>" class="regular-text" /> 31 31 </div> 32 32 33 33 <div> 34 <label for="nickname"><?php _e( 'Nickname', 'bbpress' ); ?></label>34 <label for="nickname"><?php esc_html_e( 'Nickname', 'bbpress' ); ?></label> 35 35 <input type="text" name="nickname" id="nickname" value="<?php bbp_displayed_user_field( 'nickname', 'edit' ); ?>" class="regular-text" /> 36 36 </div> 37 37 38 38 <div> 39 <label for="display_name"><?php _e( 'Display Name', 'bbpress' ) ?></label>39 <label for="display_name"><?php esc_html_e( 'Display Name', 'bbpress' ) ?></label> 40 40 41 41 <?php bbp_edit_user_display_name(); ?> … … 47 47 </fieldset> 48 48 49 <h2 class="entry-title"><?php _e( 'Contact Info', 'bbpress' ) ?></h2>49 <h2 class="entry-title"><?php esc_html_e( 'Contact Info', 'bbpress' ) ?></h2> 50 50 51 51 <fieldset class="bbp-form"> 52 <legend><?php _e( 'Contact Info', 'bbpress' ) ?></legend>52 <legend><?php esc_html_e( 'Contact Info', 'bbpress' ) ?></legend> 53 53 54 54 <?php do_action( 'bbp_user_edit_before_contact' ); ?> 55 55 56 56 <div> 57 <label for="url"><?php _e( 'Website', 'bbpress' ) ?></label>57 <label for="url"><?php esc_html_e( 'Website', 'bbpress' ) ?></label> 58 58 <input type="text" name="url" id="url" value="<?php bbp_displayed_user_field( 'user_url', 'edit' ); ?>" class="regular-text code" /> 59 59 </div> … … 72 72 </fieldset> 73 73 74 <h2 class="entry-title"><?php bbp_is_user_home_edit() ? _e( 'About Yourself', 'bbpress' ) : _e( 'About the user', 'bbpress' ); ?></h2> 74 <h2 class="entry-title"><?php bbp_is_user_home_edit() 75 ? esc_html_e( 'About Yourself', 'bbpress' ) 76 : esc_html_e( 'About the user', 'bbpress' ); 77 ?></h2> 75 78 76 79 <fieldset class="bbp-form"> 77 <legend><?php bbp_is_user_home_edit() ? _e( 'About Yourself', 'bbpress' ) : _e( 'About the user', 'bbpress' ); ?></legend> 80 <legend><?php bbp_is_user_home_edit() 81 ? esc_html_e( 'About Yourself', 'bbpress' ) 82 : esc_html_e( 'About the user', 'bbpress' ); 83 ?></legend> 78 84 79 85 <?php do_action( 'bbp_user_edit_before_about' ); ?> 80 86 81 87 <div> 82 <label for="description"><?php _e( 'Biographical Info', 'bbpress' ); ?></label>88 <label for="description"><?php esc_html_e( 'Biographical Info', 'bbpress' ); ?></label> 83 89 <textarea name="description" id="description" rows="5" cols="30"><?php bbp_displayed_user_field( 'description', 'edit' ); ?></textarea> 84 90 </div> … … 88 94 </fieldset> 89 95 90 <h2 class="entry-title"><?php _e( 'Account', 'bbpress' ) ?></h2>96 <h2 class="entry-title"><?php esc_html_e( 'Account', 'bbpress' ) ?></h2> 91 97 92 98 <fieldset class="bbp-form"> 93 <legend><?php _e( 'Account', 'bbpress' ) ?></legend>99 <legend><?php esc_html_e( 'Account', 'bbpress' ) ?></legend> 94 100 95 101 <?php do_action( 'bbp_user_edit_before_account' ); ?> 96 102 97 103 <div> 98 <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?></label>104 <label for="user_login"><?php esc_html_e( 'Username', 'bbpress' ); ?></label> 99 105 <input type="text" name="user_login" id="user_login" value="<?php bbp_displayed_user_field( 'user_login', 'edit' ); ?>" disabled="disabled" class="regular-text" /> 100 106 </div> 101 107 102 108 <div> 103 <label for="email"><?php _e( 'Email', 'bbpress' ); ?></label>109 <label for="email"><?php esc_html_e( 'Email', 'bbpress' ); ?></label> 104 110 <input type="text" name="email" id="email" value="<?php bbp_displayed_user_field( 'user_email', 'edit' ); ?>" class="regular-text" /> 105 111 </div> 106 112 107 113 <div id="password"> 108 <label for="pass1"><?php _e( 'New Password', 'bbpress' ); ?></label>114 <label for="pass1"><?php esc_html_e( 'New Password', 'bbpress' ); ?></label> 109 115 <fieldset class="bbp-form password"> 110 116 <input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> 111 <span class="description"><?php _e( 'If you would like to change the password type a new one. Otherwise leave this blank.', 'bbpress' ); ?></span>117 <span class="description"><?php esc_html_e( 'If you would like to change the password type a new one. Otherwise leave this blank.', 'bbpress' ); ?></span> 112 118 113 119 <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> 114 <span class="description"><?php _e( 'Type your new password again.', 'bbpress' ); ?></span><br />120 <span class="description"><?php esc_html_e( 'Type your new password again.', 'bbpress' ); ?></span><br /> 115 121 116 122 <div id="pass-strength-result"></div> 117 <span class="description indicator-hint"><?php _e( 'Your password should be at least ten characters long. Use upper and lower case letters, numbers, and symbols to make it even stronger.', 'bbpress' ); ?></span>123 <span class="description indicator-hint"><?php esc_html_e( 'Your password should be at least ten characters long. Use upper and lower case letters, numbers, and symbols to make it even stronger.', 'bbpress' ); ?></span> 118 124 </fieldset> 119 125 </div> … … 125 131 <?php if ( current_user_can( 'edit_users' ) && ! bbp_is_user_home_edit() ) : ?> 126 132 127 <h2 class="entry-title"><?php _e( 'User Role', 'bbpress' ) ?></h2>133 <h2 class="entry-title"><?php esc_html_e( 'User Role', 'bbpress' ) ?></h2> 128 134 129 135 <fieldset class="bbp-form"> 130 <legend><?php _e( 'User Role', 'bbpress' ); ?></legend>136 <legend><?php esc_html_e( 'User Role', 'bbpress' ); ?></legend> 131 137 132 138 <?php do_action( 'bbp_user_edit_before_role' ); ?> … … 135 141 136 142 <div> 137 <label for="super_admin"><?php _e( 'Network Role', 'bbpress' ); ?></label>143 <label for="super_admin"><?php esc_html_e( 'Network Role', 'bbpress' ); ?></label> 138 144 <label> 139 145 <input class="checkbox" type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( bbp_get_displayed_user_id() ) ); ?> /> 140 <?php _e( 'Grant this user super admin privileges for the Network.', 'bbpress' ); ?>146 <?php esc_html_e( 'Grant this user super admin privileges for the Network.', 'bbpress' ); ?> 141 147 </label> 142 148 </div> … … 155 161 156 162 <fieldset class="submit"> 157 <legend><?php _e( 'Save Changes', 'bbpress' ); ?></legend>163 <legend><?php esc_html_e( 'Save Changes', 'bbpress' ); ?></legend> 158 164 <div> 159 165 160 166 <?php bbp_edit_user_form_fields(); ?> 161 167 162 <button type="submit" id="bbp_user_edit_submit" name="bbp_user_edit_submit" class="button submit user-submit"><?php bbp_is_user_home_edit() ? _e( 'Update Profile', 'bbpress' ) : _e( 'Update User', 'bbpress' ); ?></button> 168 <button type="submit" id="bbp_user_edit_submit" name="bbp_user_edit_submit" class="button submit user-submit"><?php bbp_is_user_home_edit() 169 ? esc_html_e( 'Update Profile', 'bbpress' ) 170 : esc_html_e( 'Update User', 'bbpress' ); 171 ?></button> 163 172 </div> 164 173 </fieldset> -
trunk/src/templates/default/bbpress/form-user-login.php
r5561 r5688 12 12 <form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form"> 13 13 <fieldset class="bbp-form"> 14 <legend><?php _e( 'Log In', 'bbpress' ); ?></legend>14 <legend><?php esc_html_e( 'Log In', 'bbpress' ); ?></legend> 15 15 16 16 <div class="bbp-username"> 17 <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?>: </label>17 <label for="user_login"><?php esc_html_e( 'Username', 'bbpress' ); ?>: </label> 18 18 <input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" id="user_login" /> 19 19 </div> 20 20 21 21 <div class="bbp-password"> 22 <label for="user_pass"><?php _e( 'Password', 'bbpress' ); ?>: </label>22 <label for="user_pass"><?php esc_html_e( 'Password', 'bbpress' ); ?>: </label> 23 23 <input type="password" name="pwd" value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" /> 24 24 </div> … … 26 26 <div class="bbp-remember-me"> 27 27 <input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ) ); ?> id="rememberme" /> 28 <label for="rememberme"><?php _e( 'Keep me signed in', 'bbpress' ); ?></label>28 <label for="rememberme"><?php esc_html_e( 'Keep me signed in', 'bbpress' ); ?></label> 29 29 </div> 30 30 … … 33 33 <div class="bbp-submit-wrapper"> 34 34 35 <button type="submit" name="user-submit" class="button submit user-submit"><?php _e( 'Log In', 'bbpress' ); ?></button>35 <button type="submit" name="user-submit" class="button submit user-submit"><?php esc_html_e( 'Log In', 'bbpress' ); ?></button> 36 36 37 37 <?php bbp_user_login_fields(); ?> -
trunk/src/templates/default/bbpress/form-user-lost-pass.php
r5561 r5688 12 12 <form method="post" action="<?php bbp_wp_login_action( array( 'action' => 'lostpassword', 'context' => 'login_post' ) ); ?>" class="bbp-login-form"> 13 13 <fieldset class="bbp-form"> 14 <legend><?php _e( 'Lost Password', 'bbpress' ); ?></legend>14 <legend><?php esc_html_e( 'Lost Password', 'bbpress' ); ?></legend> 15 15 16 16 <div class="bbp-username"> 17 17 <p> 18 <label for="user_login" class="hide"><?php _e( 'Username or Email', 'bbpress' ); ?>: </label>18 <label for="user_login" class="hide"><?php esc_html_e( 'Username or Email', 'bbpress' ); ?>: </label> 19 19 <input type="text" name="user_login" value="" size="20" id="user_login" /> 20 20 </p> … … 25 25 <div class="bbp-submit-wrapper"> 26 26 27 <button type="submit" name="user-submit" class="button submit user-submit"><?php _e( 'Reset My Password', 'bbpress' ); ?></button>27 <button type="submit" name="user-submit" class="button submit user-submit"><?php esc_html_e( 'Reset My Password', 'bbpress' ); ?></button> 28 28 29 29 <?php bbp_user_lost_pass_fields(); ?> -
trunk/src/templates/default/bbpress/form-user-register.php
r5563 r5688 12 12 <form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form"> 13 13 <fieldset class="bbp-form"> 14 <legend><?php _e( 'Create an Account', 'bbpress' ); ?></legend>14 <legend><?php esc_html_e( 'Create an Account', 'bbpress' ); ?></legend> 15 15 16 16 <?php do_action( 'bbp_template_before_register_fields' ); ?> … … 18 18 <div class="bbp-template-notice"> 19 19 <ul> 20 <li><?php _e( 'Your username must be unique, and cannot be changed later.', 'bbpress' ); ?></li>21 <li><?php _e( 'We use your email address to email you a secure password and verify your account.', 'bbpress' ); ?></li>20 <li><?php esc_html_e( 'Your username must be unique, and cannot be changed later.', 'bbpress' ); ?></li> 21 <li><?php esc_html_e( 'We use your email address to email you a secure password and verify your account.', 'bbpress' ); ?></li> 22 22 </ul> 23 23 </div> 24 24 25 25 <div class="bbp-username"> 26 <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?>: </label>26 <label for="user_login"><?php esc_html_e( 'Username', 'bbpress' ); ?>: </label> 27 27 <input type="text" name="user_login" value="<?php bbp_sanitize_val( 'user_login' ); ?>" size="20" id="user_login" /> 28 28 </div> 29 29 30 30 <div class="bbp-email"> 31 <label for="user_email"><?php _e( 'Email', 'bbpress' ); ?>: </label>31 <label for="user_email"><?php esc_html_e( 'Email', 'bbpress' ); ?>: </label> 32 32 <input type="text" name="user_email" value="<?php bbp_sanitize_val( 'user_email' ); ?>" size="20" id="user_email" /> 33 33 </div> … … 37 37 <div class="bbp-submit-wrapper"> 38 38 39 <button type="submit" name="user-submit" class="button submit user-submit"><?php _e( 'Register', 'bbpress' ); ?></button>39 <button type="submit" name="user-submit" class="button submit user-submit"><?php esc_html_e( 'Register', 'bbpress' ); ?></button> 40 40 41 41 <?php bbp_user_register_fields(); ?> -
trunk/src/templates/default/bbpress/form-user-roles.php
r4800 r5688 11 11 12 12 <div> 13 <label for="role"><?php _e( 'Blog Role', 'bbpress' ) ?></label>13 <label for="role"><?php esc_html_e( 'Blog Role', 'bbpress' ) ?></label> 14 14 15 15 <?php bbp_edit_user_blog_role(); ?> … … 18 18 19 19 <div> 20 <label for="forum-role"><?php _e( 'Forum Role', 'bbpress' ) ?></label>20 <label for="forum-role"><?php esc_html_e( 'Forum Role', 'bbpress' ) ?></label> 21 21 22 22 <?php bbp_edit_user_forums_role(); ?> -
trunk/src/templates/default/bbpress/loop-forums.php
r4733 r5688 17 17 18 18 <ul class="forum-titles"> 19 <li class="bbp-forum-info"><?php _e( 'Forum', 'bbpress' ); ?></li> 20 <li class="bbp-forum-topic-count"><?php _e( 'Topics', 'bbpress' ); ?></li> 21 <li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? _e( 'Replies', 'bbpress' ) : _e( 'Posts', 'bbpress' ); ?></li> 22 <li class="bbp-forum-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></li> 19 <li class="bbp-forum-info"><?php esc_html_e( 'Forum', 'bbpress' ); ?></li> 20 <li class="bbp-forum-topic-count"><?php esc_html_e( 'Topics', 'bbpress' ); ?></li> 21 <li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() 22 ? esc_html_e( 'Replies', 'bbpress' ) 23 : esc_html_e( 'Posts', 'bbpress' ); 24 ?></li> 25 <li class="bbp-forum-freshness"><?php esc_html_e( 'Freshness', 'bbpress' ); ?></li> 23 26 </ul> 24 27 -
trunk/src/templates/default/bbpress/loop-replies.php
r5403 r5688 16 16 <li class="bbp-header"> 17 17 18 <div class="bbp-reply-author"><?php 18 <div class="bbp-reply-author"><?php esc_html_e( 'Author', 'bbpress' ); ?></div><!-- .bbp-reply-author --> 19 19 20 20 <div class="bbp-reply-content"> 21 21 22 <?php if ( ! bbp_show_lead_topic() ) : ?>22 <?php if ( ! bbp_show_lead_topic() ) : ?> 23 23 24 <?php _e( 'Posts', 'bbpress' ); ?>24 <?php esc_html_e( 'Posts', 'bbpress' ); ?> 25 25 26 26 <?php else : ?> 27 27 28 <?php _e( 'Replies', 'bbpress' ); ?>28 <?php esc_html_e( 'Replies', 'bbpress' ); ?> 29 29 30 30 <?php endif; ?> … … 54 54 <li class="bbp-footer"> 55 55 56 <div class="bbp-reply-author"><?php 56 <div class="bbp-reply-author"><?php esc_html_e( 'Author', 'bbpress' ); ?></div> 57 57 58 58 <div class="bbp-reply-content"> 59 59 60 <?php if ( ! bbp_show_lead_topic() ) : ?>60 <?php if ( ! bbp_show_lead_topic() ) : ?> 61 61 62 <?php _e( 'Posts', 'bbpress' ); ?>62 <?php esc_html_e( 'Posts', 'bbpress' ); ?> 63 63 64 64 <?php else : ?> 65 65 66 <?php _e( 'Replies', 'bbpress' ); ?>66 <?php esc_html_e( 'Replies', 'bbpress' ); ?> 67 67 68 68 <?php endif; ?> -
trunk/src/templates/default/bbpress/loop-search-forum.php
r5075 r5688 14 14 <div class="bbp-meta"> 15 15 16 <span class="bbp-forum-post-date"><?php printf( __( 'Last updated %s', 'bbpress' ), bbp_get_forum_last_active_time() ); ?></span>16 <span class="bbp-forum-post-date"><?php printf( esc_html__( 'Last updated %s', 'bbpress' ), bbp_get_forum_last_active_time() ); ?></span> 17 17 18 18 <a href="<?php bbp_forum_permalink(); ?>" class="bbp-forum-permalink">#<?php bbp_forum_id(); ?></a> … … 24 24 <?php do_action( 'bbp_theme_before_forum_title' ); ?> 25 25 26 <h3><?php _e( 'Forum: ', 'bbpress' ); ?><a href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a></h3>26 <h3><?php esc_html_e( 'Forum: ', 'bbpress' ); ?><a href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a></h3> 27 27 28 28 <?php do_action( 'bbp_theme_after_forum_title' ); ?> -
trunk/src/templates/default/bbpress/loop-search-reply.php
r5031 r5688 22 22 <div class="bbp-reply-title"> 23 23 24 <h3><?php _e( 'In reply to: ', 'bbpress' ); ?>24 <h3><?php esc_html_e( 'In reply to: ', 'bbpress' ); ?> 25 25 <a class="bbp-topic-permalink" href="<?php bbp_topic_permalink( bbp_get_reply_topic_id() ); ?>"><?php bbp_topic_title( bbp_get_reply_topic_id() ); ?></a></h3> 26 26 -
trunk/src/templates/default/bbpress/loop-search-topic.php
r5031 r5688 24 24 <?php do_action( 'bbp_theme_before_topic_title' ); ?> 25 25 26 <h3><?php _e( 'Topic: ', 'bbpress' ); ?>26 <h3><?php esc_html_e( 'Topic: ', 'bbpress' ); ?> 27 27 <a href="<?php bbp_topic_permalink(); ?>"><?php bbp_topic_title(); ?></a></h3> 28 28 … … 31 31 <?php if ( function_exists( 'bbp_is_forum_group_forum' ) && bbp_is_forum_group_forum( bbp_get_topic_forum_id() ) ) : ?> 32 32 33 <?php _e( 'in group forum ', 'bbpress' ); ?>33 <?php esc_html_e( 'in group forum ', 'bbpress' ); ?> 34 34 35 35 <?php else : ?> 36 36 37 <?php _e( 'in forum ', 'bbpress' ); ?>37 <?php esc_html_e( 'in forum ', 'bbpress' ); ?> 38 38 39 39 <?php endif; ?> -
trunk/src/templates/default/bbpress/loop-search.php
r4579 r5688 16 16 <li class="bbp-header"> 17 17 18 <div class="bbp-search-author"><?php 18 <div class="bbp-search-author"><?php esc_html_e( 'Author', 'bbpress' ); ?></div><!-- .bbp-reply-author --> 19 19 20 20 <div class="bbp-search-content"> 21 21 22 <?php _e( 'Search Results', 'bbpress' ); ?>22 <?php esc_html_e( 'Search Results', 'bbpress' ); ?> 23 23 24 24 </div><!-- .bbp-search-content --> … … 38 38 <li class="bbp-footer"> 39 39 40 <div class="bbp-search-author"><?php 40 <div class="bbp-search-author"><?php esc_html_e( 'Author', 'bbpress' ); ?></div> 41 41 42 42 <div class="bbp-search-content"> 43 43 44 <?php _e( 'Search Results', 'bbpress' ); ?>44 <?php esc_html_e( 'Search Results', 'bbpress' ); ?> 45 45 46 46 </div><!-- .bbp-search-content --> -
trunk/src/templates/default/bbpress/loop-single-reply.php
r5031 r5688 19 19 20 20 <span class="bbp-header"> 21 <?php _e( 'in reply to: ', 'bbpress' ); ?>21 <?php esc_html_e( 'in reply to: ', 'bbpress' ); ?> 22 22 <a class="bbp-topic-permalink" href="<?php bbp_topic_permalink( bbp_get_reply_topic_id() ); ?>"><?php bbp_topic_title( bbp_get_reply_topic_id() ); ?></a> 23 23 </span> -
trunk/src/templates/default/bbpress/loop-single-topic.php
r5156 r5688 58 58 <?php do_action( 'bbp_theme_before_topic_started_by' ); ?> 59 59 60 <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>60 <span class="bbp-topic-started-by"><?php printf( esc_html__( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span> 61 61 62 62 <?php do_action( 'bbp_theme_after_topic_started_by' ); ?> … … 66 66 <?php do_action( 'bbp_theme_before_topic_started_in' ); ?> 67 67 68 <span class="bbp-topic-started-in"><?php printf( __( 'in: <a href="%1$s">%2$s</a>', 'bbpress' ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() )); ?></span>68 <span class="bbp-topic-started-in"><?php printf( esc_html__( 'in: %2$s', 'bbpress' ), '<a href="' . bbp_get_forum_permalink( bbp_get_topic_forum_id() ) . '">' . bbp_get_forum_title( bbp_get_topic_forum_id() ) . '</a>' ); ?></span> 69 69 70 70 <?php do_action( 'bbp_theme_after_topic_started_in' ); ?> -
trunk/src/templates/default/bbpress/loop-topics.php
r4733 r5688 17 17 18 18 <ul class="forum-titles"> 19 <li class="bbp-topic-title"><?php _e( 'Topic', 'bbpress' ); ?></li> 20 <li class="bbp-topic-voice-count"><?php _e( 'Voices', 'bbpress' ); ?></li> 21 <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? _e( 'Replies', 'bbpress' ) : _e( 'Posts', 'bbpress' ); ?></li> 22 <li class="bbp-topic-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></li> 19 <li class="bbp-topic-title"><?php esc_html_e( 'Topic', 'bbpress' ); ?></li> 20 <li class="bbp-topic-voice-count"><?php esc_html_e( 'Voices', 'bbpress' ); ?></li> 21 <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() 22 ? esc_html_e( 'Replies', 'bbpress' ) 23 : esc_html_e( 'Posts', 'bbpress' ); 24 ?></li> 25 <li class="bbp-topic-freshness"><?php esc_html_e( 'Freshness', 'bbpress' ); ?></li> 23 26 </ul> 24 27 -
trunk/src/templates/default/bbpress/user-details.php
r4982 r5688 27 27 <li class="<?php if ( bbp_is_single_user_profile() ) :?>current<?php endif; ?>"> 28 28 <span class="vcard bbp-user-profile-link"> 29 <a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="<?php printf( esc_attr__( "%s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>" rel="me"><?php _e( 'Profile', 'bbpress' ); ?></a>29 <a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="<?php printf( esc_attr__( "%s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>" rel="me"><?php esc_html_e( 'Profile', 'bbpress' ); ?></a> 30 30 </span> 31 31 </li> … … 33 33 <li class="<?php if ( bbp_is_single_user_topics() ) :?>current<?php endif; ?>"> 34 34 <span class='bbp-user-topics-created-link'> 35 <a href="<?php bbp_user_topics_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Topics Started", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Topics Started', 'bbpress' ); ?></a>35 <a href="<?php bbp_user_topics_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Topics Started", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Topics Started', 'bbpress' ); ?></a> 36 36 </span> 37 37 </li> … … 39 39 <li class="<?php if ( bbp_is_single_user_replies() ) :?>current<?php endif; ?>"> 40 40 <span class='bbp-user-replies-created-link'> 41 <a href="<?php bbp_user_replies_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Replies Created", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Replies Created', 'bbpress' ); ?></a>41 <a href="<?php bbp_user_replies_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Replies Created", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Replies Created', 'bbpress' ); ?></a> 42 42 </span> 43 43 </li> … … 46 46 <li class="<?php if ( bbp_is_favorites() ) :?>current<?php endif; ?>"> 47 47 <span class="bbp-user-favorites-link"> 48 <a href="<?php bbp_favorites_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Favorites", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Favorites', 'bbpress' ); ?></a>48 <a href="<?php bbp_favorites_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Favorites", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Favorites', 'bbpress' ); ?></a> 49 49 </span> 50 50 </li> … … 56 56 <li class="<?php if ( bbp_is_subscriptions() ) :?>current<?php endif; ?>"> 57 57 <span class="bbp-user-subscriptions-link"> 58 <a href="<?php bbp_subscriptions_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Subscriptions", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Subscriptions', 'bbpress' ); ?></a>58 <a href="<?php bbp_subscriptions_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Subscriptions", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Subscriptions', 'bbpress' ); ?></a> 59 59 </span> 60 60 </li> … … 63 63 <li class="<?php if ( bbp_is_single_user_edit() ) :?>current<?php endif; ?>"> 64 64 <span class="bbp-user-edit-link"> 65 <a href="<?php bbp_user_profile_edit_url(); ?>" title="<?php printf( esc_attr__( "Edit %s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Edit', 'bbpress' ); ?></a>65 <a href="<?php bbp_user_profile_edit_url(); ?>" title="<?php printf( esc_attr__( "Edit %s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Edit', 'bbpress' ); ?></a> 66 66 </span> 67 67 </li> -
trunk/src/templates/default/bbpress/user-favorites.php
r4733 r5688 13 13 14 14 <div id="bbp-user-favorites" class="bbp-user-favorites"> 15 <h2 class="entry-title"><?php _e( 'Favorite Forum Topics', 'bbpress' ); ?></h2>15 <h2 class="entry-title"><?php esc_html_e( 'Favorite Forum Topics', 'bbpress' ); ?></h2> 16 16 <div class="bbp-user-section"> 17 17 … … 26 26 <?php else : ?> 27 27 28 <p><?php bbp_is_user_home() ? _e( 'You currently have no favorite topics.', 'bbpress' ) : _e( 'This user has no favorite topics.', 'bbpress' ); ?></p> 28 <p><?php bbp_is_user_home() 29 ? esc_html_e( 'You currently have no favorite topics.', 'bbpress' ) 30 : esc_html_e( 'This user has no favorite topics.', 'bbpress' ); 31 ?></p> 29 32 30 33 <?php endif; ?> -
trunk/src/templates/default/bbpress/user-profile.php
r4733 r5688 13 13 14 14 <div id="bbp-user-profile" class="bbp-user-profile"> 15 <h2 class="entry-title"><?php _e( 'Profile', 'bbpress' ); ?></h2>15 <h2 class="entry-title"><?php esc_html_e( 'Profile', 'bbpress' ); ?></h2> 16 16 <div class="bbp-user-section"> 17 17 … … 22 22 <?php endif; ?> 23 23 24 <p class="bbp-user-forum-role"><?php printf( __( 'Forum Role: %s', 'bbpress' ), bbp_get_user_display_role() ); ?></p>25 <p class="bbp-user-topic-count"><?php printf( __( 'Topics Started: %s', 'bbpress' ), bbp_get_user_topic_count_raw() ); ?></p>26 <p class="bbp-user-reply-count"><?php printf( __( 'Replies Created: %s', 'bbpress' ), bbp_get_user_reply_count_raw() ); ?></p>24 <p class="bbp-user-forum-role"><?php printf( esc_html__( 'Forum Role: %s', 'bbpress' ), bbp_get_user_display_role() ); ?></p> 25 <p class="bbp-user-topic-count"><?php printf( esc_html__( 'Topics Started: %s', 'bbpress' ), bbp_get_user_topic_count_raw() ); ?></p> 26 <p class="bbp-user-reply-count"><?php printf( esc_html__( 'Replies Created: %s', 'bbpress' ), bbp_get_user_reply_count_raw() ); ?></p> 27 27 </div> 28 28 </div><!-- #bbp-author-topics-started --> -
trunk/src/templates/default/bbpress/user-replies-created.php
r4733 r5688 13 13 14 14 <div id="bbp-user-replies-created" class="bbp-user-replies-created"> 15 <h2 class="entry-title"><?php _e( 'Forum Replies Created', 'bbpress' ); ?></h2>15 <h2 class="entry-title"><?php esc_html_e( 'Forum Replies Created', 'bbpress' ); ?></h2> 16 16 <div class="bbp-user-section"> 17 17 … … 26 26 <?php else : ?> 27 27 28 <p><?php bbp_is_user_home() ? _e( 'You have not replied to any topics.', 'bbpress' ) : _e( 'This user has not replied to any topics.', 'bbpress' ); ?></p> 28 <p><?php bbp_is_user_home() 29 ? esc_html_e( 'You have not replied to any topics.', 'bbpress' ) 30 : esc_html_e( 'This user has not replied to any topics.', 'bbpress' ); 31 ?></p> 29 32 30 33 <?php endif; ?> -
trunk/src/templates/default/bbpress/user-subscriptions.php
r5159 r5688 17 17 18 18 <div id="bbp-user-subscriptions" class="bbp-user-subscriptions"> 19 <h2 class="entry-title"><?php _e( 'Subscribed Forums', 'bbpress' ); ?></h2>19 <h2 class="entry-title"><?php esc_html_e( 'Subscribed Forums', 'bbpress' ); ?></h2> 20 20 <div class="bbp-user-section"> 21 21 … … 26 26 <?php else : ?> 27 27 28 <p><?php bbp_is_user_home() ? _e( 'You are not currently subscribed to any forums.', 'bbpress' ) : _e( 'This user is not currently subscribed to any forums.', 'bbpress' ); ?></p> 28 <p><?php bbp_is_user_home() 29 ? esc_html_e( 'You are not currently subscribed to any forums.', 'bbpress' ) 30 : esc_html_e( 'This user is not currently subscribed to any forums.', 'bbpress' ); 31 ?></p> 29 32 30 33 <?php endif; ?> … … 32 35 </div> 33 36 34 <h2 class="entry-title"><?php _e( 'Subscribed Topics', 'bbpress' ); ?></h2>37 <h2 class="entry-title"><?php esc_html_e( 'Subscribed Topics', 'bbpress' ); ?></h2> 35 38 <div class="bbp-user-section"> 36 39 … … 45 48 <?php else : ?> 46 49 47 <p><?php bbp_is_user_home() ? _e( 'You are not currently subscribed to any topics.', 'bbpress' ) : _e( 'This user is not currently subscribed to any topics.', 'bbpress' ); ?></p> 50 <p><?php bbp_is_user_home() 51 ? esc_html_e( 'You are not currently subscribed to any topics.', 'bbpress' ) 52 : esc_html_e( 'This user is not currently subscribed to any topics.', 'bbpress' ); 53 ?></p> 48 54 49 55 <?php endif; ?> -
trunk/src/templates/default/bbpress/user-topics-created.php
r4733 r5688 13 13 14 14 <div id="bbp-user-topics-started" class="bbp-user-topics-started"> 15 <h2 class="entry-title"><?php _e( 'Forum Topics Started', 'bbpress' ); ?></h2>15 <h2 class="entry-title"><?php esc_html_e( 'Forum Topics Started', 'bbpress' ); ?></h2> 16 16 <div class="bbp-user-section"> 17 17 … … 26 26 <?php else : ?> 27 27 28 <p><?php bbp_is_user_home() ? _e( 'You have not created any topics.', 'bbpress' ) : _e( 'This user has not created any topics.', 'bbpress' ); ?></p> 28 <p><?php bbp_is_user_home() 29 ? esc_html_e( 'You have not created any topics.', 'bbpress' ) 30 : esc_html_e( 'This user has not created any topics.', 'bbpress' ); 31 ?></p> 29 32 30 33 <?php endif; ?> -
trunk/src/templates/default/extras/page-forum-statistics.php
r4803 r5688 20 20 <div class="entry-content"> 21 21 22 <?php get_the_content() ? the_content() : _e( '<p>Here are the statistics and popular topics of our forums.</p>', 'bbpress'); ?>22 <?php get_the_content() ? the_content() : wpautop( esc_html__( 'Here are the statistics and popular topics of our forums.', 'bbpress' ) ); ?> 23 23 24 24 <div id="bbpress-forums"> … … 32 32 <?php if ( bbp_view_query( 'popular' ) ) : ?> 33 33 34 <h2 class="entry-title"><?php _e( 'Popular Topics', 'bbpress' ); ?></h2>34 <h2 class="entry-title"><?php esc_html_e( 'Popular Topics', 'bbpress' ); ?></h2> 35 35 36 36 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> -
trunk/src/templates/default/extras/page-topic-tags.php
r4733 r5688 20 20 <div class="entry-content"> 21 21 22 <?php get_the_content() ? the_content() : _e( '<p>This is a collection of tags that are currently popular on our forums.</p>', 'bbpress'); ?>22 <?php get_the_content() ? the_content() : wpautop( esc_html__( 'This is a collection of tags that are currently popular on our forums.', 'bbpress' ) ); ?> 23 23 24 24 <div id="bbpress-forums"> -
trunk/src/templates/default/extras/taxonomy-topic-tag-edit.php
r4733 r5688 15 15 16 16 <div id="topic-tag" class="bbp-topic-tag"> 17 <h1 class="entry-title"><?php printf( __( 'Topic Tag: %s', 'bbpress' ), '<span>' . bbp_get_topic_tag_name() . '</span>' ); ?></h1>17 <h1 class="entry-title"><?php printf( esc_html__( 'Topic Tag: %s', 'bbpress' ), '<span>' . bbp_get_topic_tag_name() . '</span>' ); ?></h1> 18 18 19 19 <div class="entry-content"> -
trunk/src/templates/default/extras/taxonomy-topic-tag.php
r4733 r5688 15 15 16 16 <div id="topic-tag" class="bbp-topic-tag"> 17 <h1 class="entry-title"><?php printf( __( 'Topic Tag: %s', 'bbpress' ), '<span>' . bbp_get_topic_tag_name() . '</span>' ); ?></h1>17 <h1 class="entry-title"><?php printf( esc_html__( 'Topic Tag: %s', 'bbpress' ), '<span>' . bbp_get_topic_tag_name() . '</span>' ); ?></h1> 18 18 <div class="entry-content"> 19 19
Note: See TracChangeset
for help on using the changeset viewer.