diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index ba2e187de4..0b59e36c84 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -77,7 +77,11 @@ $class = ( isset( $msg ) && 5 === $msg ) ? 'error' : 'success'; if ( $message ) { $message = '

' . $message . '

'; if ( $wp_http_referer ) { - $message .= '

' . esc_html( $tax->labels->back_to_items ) . '

'; + $message .= sprintf( + '

%2$s

', + esc_url( wp_validate_redirect( sanitize_url( $wp_http_referer ), admin_url( 'term.php?taxonomy=' . $taxonomy ) ) ), + esc_html( $tax->labels->back_to_items ) + ); } wp_admin_notice( $message, diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 0ab9aec48f..f66a54d85f 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -214,12 +214,16 @@ switch ( $action ) { if ( isset( $_GET['updated'] ) ) : if ( IS_PROFILE_PAGE ) : - $message = '' . __( 'Profile updated.' ) . ''; + $message = '

' . __( 'Profile updated.' ) . '

'; else : - $message = '' . __( 'User updated.' ) . ''; + $message = '

' . __( 'User updated.' ) . '

'; endif; if ( $wp_http_referer && ! str_contains( $wp_http_referer, 'user-new.php' ) && ! IS_PROFILE_PAGE ) : - $message .= '' . __( '← Go to Users' ) . ''; + $message .= sprintf( + '

%2$s

', + esc_url( wp_validate_redirect( sanitize_url( $wp_http_referer ), self_admin_url( 'users.php' ) ) ), + __( '← Go to Users' ) + ); endif; wp_admin_notice( $message, @@ -227,6 +231,7 @@ switch ( $action ) { 'id' => 'message', 'dismissible' => true, 'additional_classes' => array( 'updated' ), + 'paragraph_wrap' => false, ) ); endif; diff --git a/wp-includes/version.php b/wp-includes/version.php index c47b61021b..7d229473a5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58580'; +$wp_version = '6.7-alpha-58581'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.