Skip to:
Content

BuddyPress.org

Ticket #6908: 6908.2.patch

File 6908.2.patch, 2.1 KB (added by ramiy, 10 years ago)
  • src/bp-core/admin/bp-core-admin-functions.php

     
    302302
    303303        if ( !empty( $orphaned_components ) ) {
    304304                $admin_url = bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings' ), 'admin.php' ) );
    305                 $notice    = sprintf( __( 'The following active BuddyPress Components do not have associated WordPress Pages: %2$s. <a href="%1$s">Repair</a>', 'buddypress' ), esc_url( $admin_url ), '<strong>' . implode( '</strong>, <strong>', $orphaned_components ) . '</strong>' );
     305                $notice    = sprintf(
     306                                                '%1$s <a href="%2$s">%3$s</a>',
     307                                                sprintf(
     308                                                        __( 'The following active BuddyPress Components do not have associated WordPress Pages: %s.', 'buddypress' ),
     309                                                        '<strong>' . implode( '</strong>, <strong>', $orphaned_components ) . '</strong>.',
     310                                                ),
     311                                                esc_url( $admin_url ),
     312                                                __( 'Repair', 'buddypress' )
     313                                        );
    306314
    307315                bp_core_add_admin_notice( $notice );
    308316        }
     
    324332        // If there are duplicates, post a message about them.
    325333        if ( !empty( $dupe_names ) ) {
    326334                $admin_url = bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings' ), 'admin.php' ) );
    327                 $notice    = sprintf( __( 'Each BuddyPress Component needs its own WordPress page. The following WordPress Pages have more than one component associated with them: %2$s. <a href="%1$s">Repair</a>', 'buddypress' ), esc_url( $admin_url ), '<strong>' . implode( '</strong>, <strong>', $dupe_names ) . '</strong>' );
     335                $notice    = sprintf(
     336                                                '%1$s <a href="%2$s">%3$s</a>',
     337                                                sprintf(
     338                                                        __( 'Each BuddyPress Component needs its own WordPress page. The following WordPress Pages have more than one component associated with them: %s.', 'buddypress' ),
     339                                                        '<strong>' . implode( '</strong>, <strong>', $dupe_names ) . '</strong>.',
     340                                                ),
     341                                                esc_url( $admin_url ),
     342                                                __( 'Repair', 'buddypress' )
     343                                        );
    328344
    329345                bp_core_add_admin_notice( $notice );
    330346        }