WordPress.org

Make WordPress Core

Ticket #42404: 42404.3.patch

File 42404.3.patch, 578 bytes (added by antonioeatgoat, 4 years ago)

Small fix for the 'delete_plugin' capability.

  • src/wp-includes/capabilities.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    436436                        } elseif ( 'upload_plugins' === $cap ) {
    437437                                $caps[] = 'install_plugins';
    438438                        } else {
    439                                 $caps[] = $cap;
     439                                $caps[] = ( $cap == 'delete_plugin' ) ? 'delete_plugins' : $cap;
    440440                        }
    441441                        break;
    442442                case 'install_languages':