mirror of
git://develop.git.wordpress.org/
synced 2025-02-06 15:41:08 +01:00
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
This commit is contained in:
parent
aa325d4005
commit
cd5955bceb
@ -472,7 +472,7 @@ function attachment_submit_meta_box( $post ) {
|
||||
echo "<a class='submitdelete deletion' href='" . get_delete_post_link( $post->ID ) . "'>" . __( 'Move to Trash' ) . '</a>';
|
||||
} else {
|
||||
$delete_ays = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : '';
|
||||
echo "<a class='submitdelete deletion'$delete_ays href='" . get_delete_post_link( $post->ID, null, true ) . "'>" . __( 'Delete permanently' ) . '</a>';
|
||||
echo "<a class='submitdelete deletion'$delete_ays href='" . get_delete_post_link( $post->ID, '', true ) . "'>" . __( 'Delete permanently' ) . '</a>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user