Make WordPress Core

Ticket #40950: wp_terms_checklist-cap_check.patch

File wp_terms_checklist-cap_check.patch, 525 bytes (added by anigel, 5 years ago)

Patch

  • src/wp-admin/includes/template.php

     
    111111        $args = array( 'taxonomy' => $taxonomy );
    112112
    113113        $tax = get_taxonomy( $taxonomy );
    114         $args['disabled'] = ! current_user_can( $tax->cap->assign_terms );
     114        $args['disabled'] = ! current_user_can( $tax->cap->assign_terms, $post_id );
    115115
    116116        $args['list_only'] = ! empty( $r['list_only'] );
    117117