Make WordPress Core


Ignore:
Timestamp:
01/16/2019 06:04:51 AM (8 years ago)
Author:
pento
Message:

Formatting: Add type checking to _sanitize_text_fields().

When a non-string value is passed, return an empty string.

Props Mte90.
Fixes #41450.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/SanitizeTextField.php

    r42343 r44618  
    9494                                'Nested octects',
    9595                        ),
     96                        array(
     97                                array(),
     98                                '',
     99                        ),
    96100                );
    97101        }
Note: See TracChangeset for help on using the changeset viewer.