wp-global-admin/wp-includes/admin-bar.php
Method _ga_adjust_admin_bar_my_sites_menu
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _ga_adjust_admin_bar_my_sites_menu( $admin_bar ) {
if ( ! is_user_logged_in() || ! current_user_can( 'manage_global' ) ) {
return;
}
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
Open
$blogname = sprintf( __( 'Global Admin: %s' ), esc_html( get_global_option( 'global_name' ) ) );
- Exclude checks