WordPress.org

Make WordPress Core

Ticket #9024: 9024 r10642.diff

File 9024 r10642.diff, 542 bytes (added by jamescollins, 5 years ago)

Improved patch against r10642

  • wp-admin/user-edit.php

     
    365365        } 
    366366?> 
    367367 
    368 <?php if (count($profileuser->caps) > count($profileuser->roles)): ?> 
     368<?php if (count($profileuser->caps) > count($profileuser->roles) && apply_filters('additional_capabilities_display', true)): ?> 
    369369<br class="clear" /> 
    370370        <table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform"> 
    371371                <tr>