felixarntz/global-admin

View on GitHub
wp-global-admin/wp-includes/admin-bar.php

Summary

Maintainability
A
1 hr
Test Coverage

Method _ga_adjust_admin_bar_my_sites_menu has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function _ga_adjust_admin_bar_my_sites_menu( $admin_bar ) {
    if ( ! is_user_logged_in() || ! current_user_can( 'manage_global' ) ) {
        return;
    }

Severity: Minor
Found in wp-global-admin/wp-includes/admin-bar.php - About 1 hr to fix

    A gettext call containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.
    Open

        $blogname = sprintf( __( 'Global Admin: %s' ), esc_html( get_global_option( 'global_name' ) ) );

    There are no issues that match your filters.

    Category
    Status