Ticket #24689: 24689.patch
File 24689.patch, 1008 bytes (added by , 11 years ago) |
---|
-
wp-includes/functions.php
2110 2110 if ( isset( $r['back_link'] ) && $r['back_link'] ) { 2111 2111 $back_text = $have_gettext? __('« Back') : '« Back'; 2112 2112 $message .= "\n<p><a href='javascript:history.back()'>$back_text</a></p>"; 2113 } 2113 } else { 2114 if ( is_user_logged_in() ) { 2115 $back_text = '← Go to Dashboard '; 2116 $back_href = '/wp-admin/'; 2117 } else { 2118 $back_text = '← Take Me Home'; 2119 $back_href = '/'; 2120 } 2121 $message .= "\n<p><a class='button button-large' href='" . $back_href . "' title='" . $back_text . "'>" . ($have_gettext ? __($back_text) : $back_text) . "</a></p>"; 2122 } 2114 2123 2115 2124 if ( ! did_action( 'admin_head' ) ) : 2116 2125 if ( !headers_sent() ) {