Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/09/2016 09:51:11 PM (9 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 roles variable to main bbPress class, and store loaded roles there
  • Introduce bbp_translate_user_role() to help with outputting literal role names in the proper language

See #3017. For trunk (2.6)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/actions.php

    r6106 r6118  
    9191 *                                                    v---Load order
    9292 */
    93 add_action( 'bbp_roles_init', 'bbp_add_forums_roles', 1 );
     93add_action( 'bbp_roles_init', 'bbp_add_forums_roles', 8 );
    9494
    9595/**
Note: See TracChangeset for help on using the changeset viewer.