From cd5955bcebf46de5b31f4ffeadebcc1d591ef59a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 11 Feb 2023 13:10:22 +0000 Subject: [PATCH] Coding Standards: Pass correct value to `get_delete_post_link()` in `attachment_submit_meta_box()`. The `$deprecated` parameter of `get_delete_post_link()` is documented to accept a string, not `null`. Follow-up to [14099], [21948]. Props krunal265, jrf. Fixes #57690. git-svn-id: https://develop.svn.wordpress.org/trunk@55306 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/meta-boxes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php index b1f1008e36..c66f6657ca 100644 --- a/src/wp-admin/includes/meta-boxes.php +++ b/src/wp-admin/includes/meta-boxes.php @@ -472,7 +472,7 @@ function attachment_submit_meta_box( $post ) { echo "" . __( 'Move to Trash' ) . ''; } else { $delete_ays = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : ''; - echo "" . __( 'Delete permanently' ) . ''; + echo "" . __( 'Delete permanently' ) . ''; } } ?>