Skip to:
Content

BuddyPress.org

Changeset 10674


Ignore:
Timestamp:
03/23/2016 02:27:04 PM (6 years ago)
Author:
boonebgorges
Message:

Avoid markup in translatable string when building Sites navigation item.

Props ramiy.
Fixes #6899.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/classes/class-bp-blogs-component.php

    r10652 r10674  
    180180        $count    = (int) bp_get_total_blog_count_for_user();
    181181        $class    = ( 0 === $count ) ? 'no-count' : 'count';
    182         $nav_text = sprintf( __( 'Sites <span class="%s">%s</span>', 'buddypress' ), esc_attr( $class ), bp_core_number_format( $count )  );
     182        $nav_text = sprintf(
     183            /* translators: %s: Site count for the current user */
     184            __( 'Sites %s', 'buddypress' ),
     185            sprintf(
     186                '<span class="%s">%s</span>',
     187                esc_attr( $class ),
     188                bp_core_number_format( $count )
     189            )
     190        );
    183191        $main_nav = array(
    184192            'name'                => $nav_text,
Note: See TracChangeset for help on using the changeset viewer.