Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #46866, comment 22


Ignore:
Timestamp:
10/09/2020 02:17:03 PM (4 years ago)
Author:
Mista-Flo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #46866, comment 22

    initial v1  
    1111`get_edit_post_link( $attachment->post_parent, 'raw' );` is actually doing capability check, returns an empty string if the user does not have the cap. Then in the template, we have the `<# if ( data.uploadedToLink ) { #>`.
    1212
    13 So I think it was extra capabilities that are not useful anymore, we can clean the code, what do you think?
     13So I think it was extra capability checks that are not useful anymore, we can clean the code, what do you think?