bp_admin_repair_blog_records()

Recalculate user-to-blog relationships and useful blog meta data.


Description Description


Return Return

(array)


Top ↑

Source Source

File: bp-core/admin/bp-core-admin-tools.php

299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
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 ) );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.