~tigefa/tigefa/wordpress

Viewing all changes in revision 43637.

  • Committer: SergeyBiryukov
  • Date: 2021-04-20 14:49:08 UTC
  • Revision ID: svn-v4:1a063a9b-81f0-0310-95a4-ce76da25c4cd:trunk:50381
Code Modernization: Bring consistency to preparing some fields on Network Settings screen:

* `illegal_names`
* `limited_email_domains`
* `banned_email_domains`

If any of these options have a falsey value, treat it as an empty string. This addresses a PHP 8.1+ deprecation notice when passing a `null` value to `str_replace()`.

Additionally, avoid unnecessary type casting for better performance.

Props hellofromTonya, jrf, SergeyBiryukov.
See #51423.
Built from https://develop.svn.wordpress.org/trunk@50772

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: