WordPress.org

Make WordPress Core

Ticket #9024: 9024.diff

File 9024.diff, 612 bytes (added by jamescollins, 9 years ago)

Corrected patch against r10485

  • wp-admin/user-edit.php

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