wordpress-develop/tests/phpunit/tests/formatting
Gary Pendergast d2f41560d3 Formatting: Loosen the type checking in _sanitize_text_fields().
[44618] added strict type checking to `_sanitize_text_fields()`, which has caused some compat issues with plugins.

We can loosen the type checking to only reject objects and arrays, and cast other types to string.

Props Nick_theGeek, pento.
Fixes #41450.



git-svn-id: https://develop.svn.wordpress.org/trunk@44731 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-07 23:34:22 +00:00
..
Autop.php Tests: Correct erroneous @covers and @use tags. 2018-02-01 16:08:04 +00:00
balanceTags.php Code is Poetry. 2017-11-30 23:09:33 +00:00
BlogInfo.php I18N: Introduce unit tests for the Japanese language in order to facilitate future improvements. 2018-06-16 12:44:46 +00:00
CapitalPDangit.php Formatting: Fix capital_P_dangit() not capital P-ing, dangit. 2018-01-08 10:35:13 +00:00
CleanPre.php Code is Poetry. 2017-11-30 23:09:33 +00:00
ConvertInvalidEntries.php Code is Poetry. 2017-11-30 23:09:33 +00:00
date.php Code is Poetry. 2017-11-30 23:09:33 +00:00
Emoji.php Emoji: Upgrade Twemoji to 11.2.0. 2019-01-18 01:41:41 +00:00
ent2ncr.php Code is Poetry. 2017-11-30 23:09:33 +00:00
EscAttr.php Code is Poetry. 2017-11-30 23:09:33 +00:00
EscHtml.php Code is Poetry. 2017-11-30 23:09:33 +00:00
EscTextarea.php Code is Poetry. 2017-11-30 23:09:33 +00:00
EscUrl.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
GetUrlInContent.php Code is Poetry. 2017-11-30 23:09:33 +00:00
HtmlExcerpt.php Code is Poetry. 2017-11-30 23:09:33 +00:00
HumanTimeDiff.php Date/Time: Add unit tests for the human_time_diff function. 2017-07-07 17:07:40 +00:00
IsEmail.php Code is Poetry. 2017-11-30 23:09:33 +00:00
isoDescrambler.php Code is Poetry. 2017-11-30 23:09:33 +00:00
JSEscape.php Code is Poetry. 2017-11-30 23:09:33 +00:00
LikeEscape.php Code is Poetry. 2017-11-30 23:09:33 +00:00
LinksAddTarget.php Code is Poetry. 2017-11-30 23:09:33 +00:00
MakeClickable.php Code is Poetry. 2017-11-30 23:09:33 +00:00
MapDeep.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
NormalizeWhitespace.php Code is Poetry. 2017-11-30 23:09:33 +00:00
redirect.php Tests: Add missing parent::tearDown(). 2019-01-14 21:33:56 +00:00
RemoveAccents.php Code is Poetry. 2017-11-30 23:09:33 +00:00
SanitizeFileName.php Code is Poetry. 2017-11-30 23:09:33 +00:00
SanitizeMimeType.php Code is Poetry. 2017-11-30 23:09:33 +00:00
SanitizeOrderby.php Clean up some edge cases in sanitize_sql_orderby(). 2015-04-20 05:41:37 +00:00
SanitizePost.php Code is Poetry. 2017-11-30 23:09:33 +00:00
SanitizeTextField.php Formatting: Loosen the type checking in _sanitize_text_fields(). 2019-02-07 23:34:22 +00:00
SanitizeTitle.php Code is Poetry. 2017-11-30 23:09:33 +00:00
SanitizeTitleWithDashes.php Code is Poetry. 2017-11-30 23:09:33 +00:00
SanitizeTrackbackUrls.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
SanitizeUser.php Code is Poetry. 2017-11-30 23:09:33 +00:00
SeemsUtf8.php Repair the seems_utf8() tests that use Big5 encoding. 2014-11-22 20:56:23 +00:00
Slashit.php Code is Poetry. 2017-11-30 23:09:33 +00:00
Smilies.php Code is Poetry. 2017-11-30 23:09:33 +00:00
StripSlashesDeep.php Code is Poetry. 2017-11-30 23:09:33 +00:00
UrlencodeDeep.php Code is Poetry. 2017-11-30 23:09:33 +00:00
UrlEncodedToEntities.php Code is Poetry. 2017-11-30 23:09:33 +00:00
URLShorten.php Code is Poetry. 2017-11-30 23:09:33 +00:00
Utf8UriEncode.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WPBasename.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WpHtmlEditPre.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WpHtmlSplit.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WPMakeLinkRelative.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WPRelNoFollow.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WpReplaceInHtmlTags.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WpRichEditPre.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WPSpecialchars.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WPStripAllTags.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WPTargetedLinkRel.php Customize: Remove wp_targeted_link_rel pre-save filter from change-sets. 2019-01-29 21:28:57 +00:00
WPTexturize.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WpTrimExcerpt.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WPTrimWords.php Code is Poetry. 2017-11-30 23:09:33 +00:00
Zeroise.php Code is Poetry. 2017-11-30 23:09:33 +00:00