Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #58420, comment 5


Ignore:
Timestamp:
05/29/2023 01:13:44 PM (3 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58420, comment 5

    initial v1  
    1313Looking at [attachment:"58420-2.patch"], unless I'm missing something, the usage of `die()` is intentional in pretty much all of these instances, as the output is already handled in a different way and we only need to terminate the script.
    1414
    15 Usig `wp_die()` there would cause unexpected output, additional overhead, or lead to "headers already sent" warnings when called after `wp_redirect()`. It also does not display any helpful error messages by itself, as the message is empty by default.
     15Using `wp_die()` there would cause unexpected output, additional overhead, or lead to "headers already sent" warnings when called after `wp_redirect()`. It also does not display any helpful error messages by itself, as the message is empty by default.