Make WordPress Core

Ticket #52600: 52600_2.patch

File 52600_2.patch, 1.1 KB (added by david.kryzaniak, 4 years ago)

fixed spacing

  • wp-includes/functions.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/wp-includes/functions.php b/wp-includes/functions.php
    a b  
    32733273 */
    32743274function wp_nonce_ays( $action ) {
    32753275        if ( 'log-out' === $action ) {
    3276                 $html = sprintf(
     3276                $title = $html = sprintf(
    32773277                        /* translators: %s: Site title. */
    32783278                        __( 'You are attempting to log out of %s' ),
    32793279                        get_bloginfo( 'name' )
     
    32853285                        __( 'Do you really want to <a href="%s">log out</a>?' ),
    32863286                        wp_logout_url( $redirect_to )
    32873287                );
     3288                $response_code = 200;
    32883289        } else {
    32893290                $html = __( 'The link you followed has expired.' );
    32903291                if ( wp_get_referer() ) {
     
    32953296                                __( 'Please try again.' )
    32963297                        );
    32973298                }
     3299                $title = __( 'Something went wrong.' );
     3300                $response_code = 403;
    32983301        }
    32993302
    3300         wp_die( $html, __( 'Something went wrong.' ), 403 );
     3303        wp_die( $html, $title, $response_code );
    33013304}
    33023305
    33033306/**