Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #58157, comment 12


Ignore:
Timestamp:
05/11/2023 11:49:27 AM (3 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58157, comment 12

    v1 v2  
    22> I think that the last solution would be the best one in this case, right?
    33
    4 On one hand, yes, since the `$display_name` parameter is documented as `string|null` in `the_author` filter, and `ent2ncr()` is hooked to that filter by default, so it should be able to handle the `null` value as well.
     4On one hand, yes, since the `$display_name` parameter is documented as `string|null` in `the_author` filter, and `ent2ncr()` is hooked to that filter by default, it should be able to handle the `null` value as well.
    55
    66One the other hand, the current behavior is inconsistent: