WordPress.org

Make WordPress Core

Ticket #48046: 48046.patch

File 48046.patch, 594 bytes (added by dkarfa, 2 years ago)
  • src/wp-includes/class-wp-xmlrpc-server.php

     
    732732         * @return bool if `$args` contains at least $count arguments.
    733733         */
    734734        protected function minimum_args( $args, $count ) {
    735                 if ( count( $args ) < $count ) {
     735                if ( count( (array)$args ) < $count ) {
    736736                        $this->error = new IXR_Error( 400, __( 'Insufficient arguments passed to this XML-RPC method.' ) );
    737737                        return false;
    738738                }