Changeset 10815 for trunk/src/bp-core/admin/bp-core-admin-tools.php
- Timestamp:
- 05/27/2016 05:21:20 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-tools.php
r10583 r10815 474 474 return array( 0, __( 'Emails have been successfully reinstalled.', 'buddypress' ) ); 475 475 } 476 477 /** 478 * Add notice on the "Tools > BuddyPress" page if more sites need recording. 479 * 480 * This notice only shows up in the network admin dashboard. 481 * 482 * @since 2.6.0 483 */ 484 function bp_core_admin_notice_repopulate_blogs_resume() { 485 $screen = get_current_screen(); 486 if ( 'tools_page_bp-tools-network' !== $screen->id ) { 487 return; 488 } 489 490 if ( '' === bp_get_option( '_bp_record_blogs_offset' ) ) { 491 return; 492 } 493 494 echo '<div class="error"><p>' . __( 'It looks like you have more sites to record. Resume recording by checking the "Repopulate site tracking records" option.', 'buddypress' ) . '</p></div>'; 495 } 496 add_action( 'network_admin_notices', 'bp_core_admin_notice_repopulate_blogs_resume' );
Note: See TracChangeset
for help on using the changeset viewer.