wpdb::_do_query()privateWP 3.9.0

Internal function to perform the mysqli_query() call.

Method of the class: wpdb{}

No Hooks.

Return

null. Ничего (null).

Usage

// private - for code of main (parent) class only
$result = $this->_do_query( $query );
$query(string) (required)
The query to run.

Notes

Changelog

Since 3.9.0 Introduced.

wpdb::_do_query() code WP 6.4.1

private function _do_query( $query ) {
	if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
		$this->timer_start();
	}

	if ( ! empty( $this->dbh ) ) {
		$this->result = mysqli_query( $this->dbh, $query );
	}

	++$this->num_queries;

	if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
		$this->log_query(
			$query,
			$this->timer_stop(),
			$this->get_caller(),
			$this->time_start,
			array()
		);
	}
}