Make WordPress Core

Changeset 58581


Ignore:
Timestamp:
06/26/2024 03:21:26 PM (2 years 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.

Location:
trunk/src/wp-admin
Files:
2 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(
  • trunk/src/wp-admin/user-edit.php

    r58280 r58581  
    215215                if ( isset( $_GET['updated'] ) ) :
    216216                        if ( IS_PROFILE_PAGE ) :
    217                                 $message = '<strong>' . __( 'Profile updated.' ) . '</strong>';
     217                                $message = '<p><strong>' . __( 'Profile updated.' ) . '</strong></p>';
    218218                        else :
    219                                 $message = '<strong>' . __( 'User updated.' ) . '</strong>';
     219                                $message = '<p><strong>' . __( 'User updated.' ) . '</strong></p>';
    220220                        endif;
    221221                        if ( $wp_http_referer && ! str_contains( $wp_http_referer, 'user-new.php' ) && ! IS_PROFILE_PAGE ) :
    222                                 $message .= '<a href="' . esc_url( wp_validate_redirect( sanitize_url( $wp_http_referer ), self_admin_url( 'users.php' ) ) ) . '">' . __( '&larr; Go to Users' ) . '</a>';
     222                                $message .= sprintf(
     223                                        '<p><a href="%1$s">%2$s</a></p>',
     224                                        esc_url( wp_validate_redirect( sanitize_url( $wp_http_referer ), self_admin_url( 'users.php' ) ) ),
     225                                        __( '&larr; Go to Users' )
     226                                );
    223227                        endif;
    224228                        wp_admin_notice(
     
    228232                                        'dismissible'        => true,
    229233                                        'additional_classes' => array( 'updated' ),
     234                                        'paragraph_wrap'     => false,
    230235                                )
    231236                        );
Note: See TracChangeset for help on using the changeset viewer.