WordPress at a glance
function is not described

wp_xmlrpc_server::escape() public WP 1.5.2

Escape string or array of strings for database.

{} It's a method of the class: wp_xmlrpc_server{}

No Hooks.

Return

String/null. Returns with string is passed, alters by-reference when array is passed.

Usage

$wp_xmlrpc_server = new wp_xmlrpc_server();
$wp_xmlrpc_server->escape( $data );
$data(string/array) (required) (passed by reference — &)
Escape single string or array of strings.

Changelog

Since 1.5.2 Introduced.

Code of wp_xmlrpc_server::escape() WP 5.5.1

<?php
public function escape( &$data ) {
	if ( ! is_array( $data ) ) {
		return wp_slash( $data );
	}

	foreach ( $data as &$v ) {
		if ( is_array( $v ) ) {
			$this->escape( $v );
		} elseif ( ! is_object( $v ) ) {
			$v = wp_slash( $v );
		}
	}
}