bp_admin_repair_blog_records()
Recalculate user-to-blog relationships and useful blog meta data.
Description Description
Return Return
(array)
Source Source
File: bp-core/admin/bp-core-admin-tools.php
function bp_admin_repair_blog_records() {
// Description of this tool, displayed to the user.
$statement = __( 'Repopulating Blogs records… %s', 'buddypress' );
// Default to failure text.
$result = __( 'Failed!', 'buddypress' );
// Default to unrepaired.
$repair = false;
// Run function if blogs component is active.
if ( bp_is_active( 'blogs' ) ) {
$repair = bp_blogs_record_existing_blogs();
}
// Setup success/fail messaging.
if ( true === $repair ) {
$result = __( 'Complete!', 'buddypress' );
}
// All done!
return array( 0, sprintf( $statement, $result ) );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |