Ticket #1024: functions.bb-template.2.diff
File functions.bb-template.2.diff, 2.4 KB (added by , 17 years ago) |
---|
-
functions.bb-template.php
1630 1630 else 1631 1631 $r = __('Unregistered'); // This should never happen 1632 1632 } else 1633 $r = '<a href="' . attribute_escape( get_user_profile_link( get_post_author_id( $post_id ) ) ) . '">' . $title. '</a>';1633 $r = '<a href="' . attribute_escape( get_user_profile_link( get_post_author_id( $post_id ) ) ) . '">' . __($title) . '</a>'; 1634 1634 1635 1635 return apply_filters( 'get_post_author_title_link', $r, get_post_id( $post_id ) ); 1636 1636 } … … 2016 2016 ?> 2017 2017 <table id="admininfo"> 2018 2018 <tr class='form-field<?php if ( in_array( 'role', $error_codes ) ) echo ' form-invalid'; ?>'> 2019 <th scope="row">< ?php _e('User Type'); ?></th>2019 <th scope="row"><label for="role"><?php _e('User Type'); ?></label></th> 2020 2020 <td> 2021 <select name="role">2021 <select id="role" name="role"> 2022 2022 <?php 2023 2023 foreach( $roles as $r => $n ) { 2024 2024 if ( isset( $user->capabilities ) && is_array( $user->capabilities ) && array_key_exists( $r, $user->capabilities ) ) { … … 2028 2028 $selected[$r] = ''; 2029 2029 } 2030 2030 ?> 2031 <option value="<?php echo $r; ?>"<?php echo $selected[$r]; ?>><?php echo $n; ?></option>2031 <option value="<?php echo $r; ?>"<?php echo $selected[$r]; ?>><?php _e($n); ?></option> 2032 2032 <?php 2033 2033 } 2034 2034 ?> … … 2113 2113 ?> 2114 2114 2115 2115 <tr class="<?php echo $class; ?>"> 2116 <th scope="row">< ?php echo $title ?></th>2116 <th scope="row"><label for="<?php echo $name; ?>"><?php echo $title ?></label></th> 2117 2117 <td> 2118 2118 <?php if ( 'checkbox' == $type && isset($label[5]) ) echo "<label for='$name'>"; ?> 2119 2119 <input name="<?php echo $name; ?>" id="<?php echo $name; ?>" type="<?php echo $type; ?>"<?php echo $checked; ?> value="<?php echo $value; ?>" /> … … 2130 2130 <p><sup class="required">*</sup> <?php _e('These items are <span class="required">required</span>.') ?></p> 2131 2131 2132 2132 <?php endif; ?> 2133 <p><?php _e('Inactive users can login and look around but not do anything. 2134 Blocked users just see a simple error message when they visit the site.</p> 2135 <p><strong>Note</strong>: Blocking a user does <em>not</em> block any IP addresses.'); ?></p> 2133 <p><?php _e('Inactive users can login and look around but not do anything. Blocked users just see a simple error message when they visit the site.</p><p><strong>Note</strong>: Blocking a user does <em>not</em> block any IP addresses.'); ?></p> 2136 2134 <?php 2137 2135 } 2138 2136