Changeset 10681
- Timestamp:
- 03/23/2016 03:17:32 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-functions.php
r10623 r10681 303 303 if ( !empty( $orphaned_components ) ) { 304 304 $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>', array_map( 'esc_html', $orphaned_components ) ) . '</strong>' 310 ), 311 esc_url( $admin_url ), 312 __( 'Repair', 'buddypress' ) 313 ); 306 314 307 315 bp_core_add_admin_notice( $notice ); … … 325 333 if ( !empty( $dupe_names ) ) { 326 334 $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>', array_map( 'esc_html', $dupe_names ) ) . '</strong>' 340 ), 341 esc_url( $admin_url ), 342 __( 'Repair', 'buddypress' ) 343 ); 328 344 329 345 bp_core_add_admin_notice( $notice );
Note: See TracChangeset
for help on using the changeset viewer.