[wp-trac] [WordPress Trac] #48046: Add array cast before count() in class-wp-xml-server.php
WordPress Trac
noreply at wordpress.org
Mon Sep 16 07:45:04 UTC 2019
#48046: Add array cast before count() in class-wp-xml-server.php
--------------------------+---------------------
Reporter: bitcomplex | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.3
Component: XML-RPC | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: docs
--------------------------+---------------------
Comment (by bitcomplex):
Replying to [comment:1 SergeyBiryukov]:
> Hi @bitcomplex, welcome to WordPress Trac! Thanks for the report.
>
> It looks like the function documentation is incorrect, it should always
receive an array. I haven't found any instances in core where it receives
a string. This appears to be the case since the introduction in [20636].
>
> Have you run into an issue where it receives a string? I think we should
just correct the documenation here.
Yes, we've run into it. Screenshot from Sentry:
[https://drive.google.com/file/d/1zGzjj3VDCxIoTi5RyEoCUjaICyaGxzld/view?usp=sharing]
Thanks for your quick reply!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48046#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list