Make WordPress Core


Ignore:
Timestamp:
02/08/2025 03:58:11 PM (13 months ago)
Author:
audrasjb
Message:

General: Error messages improvements in /wp-includes files.

This changeset improves a bunch of error messages, notably replacing the good old cryptic "Something went wrong" message with more helpful information.

Props peterwilsoncc, netweb, karmatosed, JoshuaWold, mrtortai, audrasjb, sukhendu2002, joedolson.
Fixes #43622.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-mail.php

    r59064 r59790  
    4040
    4141if ( $last_checked ) {
    42     wp_die( __( 'Slow down cowboy, no need to check for new mails so often!' ) );
     42    wp_die(
     43        sprintf(
     44            // translators: %s human readable rate limit.
     45            __( 'Email checks are rate limited to once every %s.' ),
     46            human_time_diff( time() - WP_MAIL_INTERVAL, time() )
     47        ),
     48        __( 'Slow down, no need to check for new mails so often!' ),
     49        429
     50    );
    4351}
    4452
Note: See TracChangeset for help on using the changeset viewer.