Changeset 6120
- Timestamp:
- 11/09/2016 10:53:16 PM (8 years ago)
- Location:
- branches/2.5
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/bbpress.php
r6064 r6120 301 301 require( $this->includes_dir . 'common/functions.php' ); 302 302 require( $this->includes_dir . 'common/formatting.php' ); 303 require( $this->includes_dir . 'common/locale.php' ); 303 304 require( $this->includes_dir . 'common/template.php' ); 304 305 require( $this->includes_dir . 'common/widgets.php' ); -
branches/2.5/includes/admin/settings.php
r5366 r6120 522 522 <?php foreach ( bbp_get_dynamic_roles() as $role => $details ) : ?> 523 523 524 <option <?php selected( $default_role, $role ); ?> value="<?php echo esc_attr( $role ); ?>"><?php echo translate_user_role( $details['name'] ); ?></option>524 <option <?php selected( $default_role, $role ); ?> value="<?php echo esc_attr( $role ); ?>"><?php echo bbp_translate_user_role( $details['name'] ); ?></option> 525 525 526 526 <?php endforeach; ?> -
branches/2.5/includes/admin/users.php
r5629 r6120 104 104 <?php foreach ( $dynamic_roles as $role => $details ) : ?> 105 105 106 <option <?php selected( $user_role, $role ); ?> value="<?php echo esc_attr( $role ); ?>"><?php echo translate_user_role( $details['name'] ); ?></option>106 <option <?php selected( $user_role, $role ); ?> value="<?php echo esc_attr( $role ); ?>"><?php echo bbp_translate_user_role( $details['name'] ); ?></option> 107 107 108 108 <?php endforeach; ?> … … 140 140 <option value=''><?php esc_html_e( 'Change forum role to…', 'bbpress' ) ?></option> 141 141 <?php foreach ( $dynamic_roles as $role => $details ) : ?> 142 <option value="<?php echo esc_attr( $role ); ?>"><?php echo translate_user_role( $details['name'] ); ?></option>142 <option value="<?php echo esc_attr( $role ); ?>"><?php echo bbp_translate_user_role( $details['name'] ); ?></option> 143 143 <?php endforeach; ?> 144 144 </select><?php submit_button( __( 'Change', 'bbpress' ), 'secondary', 'bbp-change-role', false ); … … 244 244 if ( ! empty( $user_role ) ) { 245 245 $roles = bbp_get_dynamic_roles(); 246 $retval = translate_user_role( $roles[$user_role]['name'] );246 $retval = bbp_translate_user_role( $roles[$user_role]['name'] ); 247 247 } 248 248 } -
branches/2.5/includes/core/capabilities.php
r5064 r6120 378 378 // Keymaster 379 379 bbp_get_keymaster_role() => array( 380 'name' => __( 'Keymaster', 'bbpress' ),380 'name' => 'Keymaster', 381 381 'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() ) 382 382 ), … … 384 384 // Moderator 385 385 bbp_get_moderator_role() => array( 386 'name' => __( 'Moderator', 'bbpress' ),386 'name' => 'Moderator', 387 387 'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) 388 388 ), … … 390 390 // Participant 391 391 bbp_get_participant_role() => array( 392 'name' => __( 'Participant', 'bbpress' ),392 'name' => 'Participant', 393 393 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) 394 394 ), … … 396 396 // Spectator 397 397 bbp_get_spectator_role() => array( 398 'name' => __( 'Spectator', 'bbpress' ),398 'name' => 'Spectator', 399 399 'capabilities' => bbp_get_caps_for_role( bbp_get_spectator_role() ) 400 400 ), … … 402 402 // Blocked 403 403 bbp_get_blocked_role() => array( 404 'name' => __( 'Blocked', 'bbpress' ),404 'name' => 'Blocked', 405 405 'capabilities' => bbp_get_caps_for_role( bbp_get_blocked_role() ) 406 406 ) -
branches/2.5/includes/core/sub-actions.php
r5023 r6120 137 137 * 138 138 * @since bbPress (r2695) 139 * @uses did_action() To make sure the user isn't loaded out of order140 139 * @uses do_action() Calls 'bbp_setup_current_user' 141 140 */ 142 141 function bbp_setup_current_user() { 143 144 // If the current user is being setup before the "init" action has fired,145 // strange (and difficult to debug) role/capability issues will occur.146 if ( ! did_action( 'after_setup_theme' ) ) {147 _doing_it_wrong( __FUNCTION__, __( 'The current user is being initialized without using $wp->init().', 'bbpress' ), '2.3' );148 }149 150 142 do_action( 'bbp_setup_current_user' ); 151 143 } -
branches/2.5/includes/users/template.php
r6063 r6120 1257 1257 <?php foreach ( $blog_roles as $role => $details ) : ?> 1258 1258 1259 <option <?php selected( $user_role, $role ); ?> value="<?php echo esc_attr( $role ); ?>"><?php echo translate_user_role( $details['name'] ); ?></option>1259 <option <?php selected( $user_role, $role ); ?> value="<?php echo esc_attr( $role ); ?>"><?php echo bbp_translate_user_role( $details['name'] ); ?></option> 1260 1260 1261 1261 <?php endforeach; ?> … … 1292 1292 <?php foreach ( $dynamic_roles as $role => $details ) : ?> 1293 1293 1294 <option <?php selected( $user_role, $role ); ?> value="<?php echo esc_attr( $role ); ?>"><?php echo translate_user_role( $details['name'] ); ?></option>1294 <option <?php selected( $user_role, $role ); ?> value="<?php echo esc_attr( $role ); ?>"><?php echo bbp_translate_user_role( $details['name'] ); ?></option> 1295 1295 1296 1296 <?php endforeach; ?>
Note: See TracChangeset
for help on using the changeset viewer.