[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:28:18 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
--------------------------+---------------------
Changes (by SergeyBiryukov):

 * focuses:   => docs
 * component:  General => XML-RPC
 * milestone:  Awaiting Review => 5.3


Comment:

 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48046#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list