Make WordPress Core


Ignore:
Timestamp:
06/26/2024 03:21:26 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Users: Restore spacing between the messages on Edit User screen.

Includes restoring paragraph tags for “User updated” and “← Go to Users” messages, so that the arrow is not on the same line as the previous message.

Follow-up to [56570].

Props Presskopp, narenin, swissspidy, SergeyBiryukov.
Fixes #61506.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tag-form.php

    r58069 r58581  
    7878    $message = '<p><strong>' . $message . '</strong></p>';
    7979    if ( $wp_http_referer ) {
    80         $message .= '<p><a href="' . esc_url( wp_validate_redirect( sanitize_url( $wp_http_referer ), admin_url( 'term.php?taxonomy=' . $taxonomy ) ) ) . '">' . esc_html( $tax->labels->back_to_items ) . '</a></p>';
     80        $message .= sprintf(
     81            '<p><a href="%1$s">%2$s</a></p>',
     82            esc_url( wp_validate_redirect( sanitize_url( $wp_http_referer ), admin_url( 'term.php?taxonomy=' . $taxonomy ) ) ),
     83            esc_html( $tax->labels->back_to_items )
     84        );
    8185    }
    8286    wp_admin_notice(
Note: See TracChangeset for help on using the changeset viewer.