Changeset 55949 for trunk/src/wp-admin/includes/meta-boxes.php
- Timestamp:
- 06/20/2023 03:45:23 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/meta-boxes.php
r55414 r55949 470 470 if ( current_user_can( 'delete_post', $post->ID ) ) { 471 471 if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { 472 echo "<a class='submitdelete deletion' href='" . get_delete_post_link( $post->ID ) . "'>" . __( 'Move to Trash' ) . '</a>'; 472 printf( 473 '<a class="submitdelete deletion" href="%1$s">%2$s</a>', 474 get_delete_post_link( $post->ID ), 475 __( 'Move to Trash' ) 476 ); 473 477 } else { 474 $delete_ays = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : ''; 475 echo "<a class='submitdelete deletion'$delete_ays href='" . get_delete_post_link( $post->ID, '', true ) . "'>" . __( 'Delete permanently' ) . '</a>'; 478 $show_confirmation = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : ''; 479 480 printf( 481 '<a class="submitdelete deletion"%1$s href="%2$s">%3$s</a>', 482 $show_confirmation, 483 get_delete_post_link( $post->ID, '', true ), 484 __( 'Delete permanently' ) 485 ); 476 486 } 477 487 }
Note: See TracChangeset
for help on using the changeset viewer.