Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/09/2016 10:53:16 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Roles: Fix infinite loops from load order changes in WordPress 4.7.

  • Do not translate "role names" which are actually role IDs
  • Add dummy function so literal role names are part of the pomo dictionary
  • Introduce common/locale.php for future localization code
  • Introduce bbp_translate_user_role() to help with outputting literal role names in the proper language

See #3017. 2.5 branch (for 2.5.11)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/includes/admin/settings.php

    r5366 r6120  
    522522        <?php foreach ( bbp_get_dynamic_roles() as $role => $details ) : ?>
    523523
    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>
    525525
    526526        <?php endforeach; ?>
Note: See TracChangeset for help on using the changeset viewer.