From cd239819b96ccf08ffe4184ec9910b11dd96439f Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Sun, 7 May 2017 11:46:52 +0000 Subject: [PATCH] Accessibility: Make the Get Shortlink button be a real button. Worth noting, as of WordPress 4.4, the Get Shortlink button is hidden by default but it can be restored via filters. Props Cheffheid. See #26504. Fixes #40448. git-svn-id: https://develop.svn.wordpress.org/trunk@40578 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/edit-form-advanced.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/edit-form-advanced.php b/src/wp-admin/edit-form-advanced.php index 852b88c792..50796814a6 100644 --- a/src/wp-admin/edit-form-advanced.php +++ b/src/wp-admin/edit-form-advanced.php @@ -582,7 +582,7 @@ if ( has_filter( 'pre_get_shortlink' ) || has_filter( 'get_shortlink' ) ) { $shortlink = wp_get_shortlink($post->ID, 'post'); if ( !empty( $shortlink ) && $shortlink !== $permalink && $permalink !== home_url('?page_id=' . $post->ID) ) { - $sample_permalink_html .= '' . __('Get Shortlink') . ''; + $sample_permalink_html .= ''; } }