Make WordPress Core

Changes between Version 4 and Version 5 of Ticket #57791, comment 8


Ignore:
Timestamp:
02/24/2023 08:23:10 AM (14 months ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57791, comment 8

    v4 v5  
    5454However, this means that separate admin notices are output, so we might want to consider either a `(bool) $output = true` parameter for `wp_admin_notice()`, or put the main logic in a separate `wp_get_admin_notice()` function.
    5555
    56 We could then take the conditions for `'updated' === $details['type']` and the `in_array()` check into `wp_admin_notice()` for consistency throughout Core.
     56We could then take the conditions for `'updated' === $details['type']` and the `in_array()` check into `wp_admin_notice()`/`wp_get_admin_notice()` for consistency throughout Core.
    5757
    5858