mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Escape links by default. Props alexkingorg. see #13051
git-svn-id: https://develop.svn.wordpress.org/trunk@14347 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -184,9 +184,9 @@ function get_search_form($echo = true) {
|
||||
*/
|
||||
function wp_loginout($redirect = '', $echo = true) {
|
||||
if ( ! is_user_logged_in() )
|
||||
$link = '<a href="' . esc_url( wp_login_url($redirect) ) . '">' . __('Log in') . '</a>';
|
||||
$link = '<a href="' . wp_login_url($redirect) . '">' . __('Log in') . '</a>';
|
||||
else
|
||||
$link = '<a href="' . esc_url( wp_logout_url($redirect) ) . '">' . __('Log out') . '</a>';
|
||||
$link = '<a href="' . wp_logout_url($redirect) . '">' . __('Log out') . '</a>';
|
||||
|
||||
if ( $echo )
|
||||
echo apply_filters('loginout', $link);
|
||||
@@ -2111,9 +2111,9 @@ function wp_admin_css( $file = 'wp-admin', $force_echo = false ) {
|
||||
return;
|
||||
}
|
||||
|
||||
echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . esc_url( wp_admin_css_uri( $file ) ) . "' type='text/css' />\n", $file );
|
||||
echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . wp_admin_css_uri( $file ) . "' type='text/css' />\n", $file );
|
||||
if ( 'rtl' == get_bloginfo( 'text_direction' ) )
|
||||
echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . esc_url( wp_admin_css_uri( "$file-rtl" ) ) . "' type='text/css' />\n", "$file-rtl" );
|
||||
echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . wp_admin_css_uri( "$file-rtl" ) . "' type='text/css' />\n", "$file-rtl" );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user