Changeset 11745
- Timestamp:
- 04/05/2022 05:15:11 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/inc/template-tags.php
r10800 r11745 408 408 $close_link = false; 409 409 410 if ( ! current_user_can( 'plugin_ admin_edit', $post ) || 'publish' != $post->post_status) {410 if ( ! current_user_can( 'plugin_self_close', $post ) ) { 411 411 return; 412 412 } … … 440 440 $post = get_post(); 441 441 442 if ( 443 ! current_user_can( 'plugin_admin_edit', $post ) || 444 'publish' != $post->post_status 445 ) { 442 if ( ! current_user_can( 'plugin_admin_edit', $post ) ) { 446 443 return; 447 444 } … … 449 446 echo '<h4>' . esc_html__( 'Transfer This Plugin', 'wporg-plugins' ) . '</h4>'; 450 447 451 if ( get_current_user_id() != $post->post_author) {448 if ( ! current_user_can( 'plugin_self_transfer', $post ) ) { 452 449 $owner = get_user_by( 'id', $post->post_author ); 453 450 /* translators: %s: Name of plugin owner */ … … 496 493 $post = get_post(); 497 494 498 if ( 499 ! current_user_can( 'plugin_admin_edit', $post ) || 500 'publish' != $post->post_status 501 ) { 495 if ( ! current_user_can( 'plugin_manage_releases', $post ) ) { 502 496 return; 503 497 }
Note: See TracChangeset
for help on using the changeset viewer.