diff --git a/wp-includes/class-walker-page.php b/wp-includes/class-walker-page.php index 3ade8b00df..50990298f1 100644 --- a/wp-includes/class-walker-page.php +++ b/wp-includes/class-walker-page.php @@ -183,7 +183,7 @@ class Walker_Page extends Walker { $attributes = ''; foreach ( $atts as $attr => $value ) { if ( ! empty( $value ) ) { - $value = esc_attr( $value ); + $value = ( 'href' === $attr ) ? esc_url( $value ) : esc_attr( $value ); $attributes .= ' ' . $attr . '="' . $value . '"'; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index d249203618..b22d3d3499 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-alpha-44957'; +$wp_version = '5.2-alpha-44958'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.