mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
Users: Provide a fallback for incorrect HTTP referrers.
Merge of [41398] to the 4.3 branch. git-svn-id: https://develop.svn.wordpress.org/branches/4.3@41422 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ea0311f7cb
commit
7de576a2f1
@ -194,7 +194,7 @@ include(ABSPATH . 'wp-admin/admin-header.php');
|
||||
<p><strong><?php _e('User updated.') ?></strong></p>
|
||||
<?php endif; ?>
|
||||
<?php if ( $wp_http_referer && !IS_PROFILE_PAGE ) : ?>
|
||||
<p><a href="<?php echo esc_url( $wp_http_referer ); ?>"><?php _e('← Back to Users'); ?></a></p>
|
||||
<p><a href="<?php echo esc_url( wp_validate_redirect( wp_sanitize_redirect( $wp_http_referer ), self_admin_url( 'users.php' ) ) ); ?>"><?php _e('← Back to Users'); ?></a></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user