Skip to:
Content

BuddyPress.org

Ticket #6908: 6908.patch

File 6908.patch, 2.0 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 %2$s <a href="%3$s">%4$s</a>',
     307                                                __( 'The following active BuddyPress Components do not have associated WordPress Pages:', 'buddypress' ),
     308                                                '<strong>' . implode( '</strong>, <strong>', $orphaned_components ) . '</strong>.',
     309                                                esc_url( $admin_url ),
     310                                                __( 'Repair', 'buddypress' )
     311                                        );
    306312
    307313                bp_core_add_admin_notice( $notice );
    308314        }
     
    324330        // If there are duplicates, post a message about them.
    325331        if ( !empty( $dupe_names ) ) {
    326332                $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>' );
     333                $notice    = sprintf(
     334                                                '%1$s %2$s <a href="%3$s">%4$s</a>',
     335                                                __( 'Each BuddyPress Component needs its own WordPress page. The following WordPress Pages have more than one component associated with them:', 'buddypress' ),
     336                                                '<strong>' . implode( '</strong>, <strong>', $dupe_names ) . '</strong>.',
     337                                                esc_url( $admin_url ),
     338                                                __( 'Repair', 'buddypress' )
     339                                        );
    328340
    329341                bp_core_add_admin_notice( $notice );
    330342        }