Jake Spurlock
21273c3c49
Formatting: Prevent wp_slash from returning non-strings as strings.
...
If a bool/float/int is passed into wp_slash it will be coerced into a string.
This changes the behavior to only slash strings. At the same time, handles recursion a little nicer by calling array_map for arrays.
Fixes #42195 , #24106 .
Props johnbillion, andizer, jrf, ryotasakamoto, SergeyBiryukov, donmhico, TobiasBg, markoheijnen, ryan, nacin, devesine, whyisjake.
git-svn-id: https://develop.svn.wordpress.org/trunk@48433 602fd350-edb4-49c9-b593-d223f7449a82
2020-07-11 00:11:57 +00:00
..
2020-04-20 08:37:31 +00:00
2020-01-29 00:43:23 +00:00
2020-01-29 00:43:23 +00:00
2018-01-08 10:35:13 +00:00
2017-11-30 23:09:33 +00:00
2017-11-30 23:09:33 +00:00
2019-08-23 11:02:51 +00:00
2020-06-15 18:02:14 +00:00
2020-01-29 00:43:23 +00:00
2017-11-30 23:09:33 +00:00
2020-01-29 00:43:23 +00:00
2017-11-30 23:09:33 +00:00
2020-01-29 00:43:23 +00:00
2020-06-17 15:22:49 +00:00
2019-04-24 21:38:21 +00:00
2020-01-29 00:43:23 +00:00
2017-11-30 23:09:33 +00:00
2019-06-28 06:43:27 +00:00
2017-11-30 23:09:33 +00:00
2017-11-30 23:09:33 +00:00
2020-01-29 00:43:23 +00:00
2020-01-29 00:43:23 +00:00
2017-11-30 23:09:33 +00:00
2020-01-29 00:43:23 +00:00
2018-08-17 01:50:26 +00:00
2017-11-30 23:09:33 +00:00
2019-12-18 00:26:23 +00:00
2020-01-29 00:43:23 +00:00
2020-04-29 17:23:30 +00:00
2020-01-29 00:43:23 +00:00
2015-04-20 05:41:37 +00:00
2017-11-30 23:09:33 +00:00
2020-01-29 00:43:23 +00:00
2017-11-30 23:09:33 +00:00
2017-11-30 23:09:33 +00:00
2013-08-29 18:39:34 +00:00
2017-11-30 23:09:33 +00:00
2020-01-29 00:43:23 +00:00
2017-11-30 23:09:33 +00:00
2020-01-29 00:43:23 +00:00
2020-07-11 00:11:57 +00:00
2017-11-30 23:09:33 +00:00
2020-01-29 00:43:23 +00:00
2020-01-29 00:43:23 +00:00
2017-11-30 23:09:33 +00:00
2017-11-30 23:09:33 +00:00
2020-02-06 06:31:22 +00:00
2017-11-30 23:09:33 +00:00
2019-09-04 18:40:13 +00:00
2019-09-30 01:29:10 +00:00
2017-11-30 23:09:33 +00:00
2017-11-30 23:09:33 +00:00
2020-07-11 00:11:57 +00:00
2020-01-29 00:43:23 +00:00
2020-01-29 00:43:23 +00:00
2020-01-29 00:43:23 +00:00
2020-02-06 06:31:22 +00:00
2017-11-30 23:09:33 +00:00
2020-01-29 00:43:23 +00:00
2017-11-30 23:09:33 +00:00