From ab0e38a771199038918cb13e2fab1e64b3d0bba2 Mon Sep 17 00:00:00 2001 From: George Nicolaou Date: Fri, 19 Jun 2026 02:01:23 +0300 Subject: [PATCH] Docs: Correct grammar in wpdb::insert(), replace(), and _insert_replace_helper() docblocks. Change 'each of the value' to 'each of the values' for consistency with wpdb::update() and wpdb::delete(). Props George Nicolaou. Fixes #65470. --- src/wp-includes/class-wpdb.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/class-wpdb.php b/src/wp-includes/class-wpdb.php index babd45a885f1c..e8a3587d1d126 100644 --- a/src/wp-includes/class-wpdb.php +++ b/src/wp-includes/class-wpdb.php @@ -2494,7 +2494,7 @@ public function remove_placeholder_escape( $query ) { * Both `$data` columns and `$data` values should be "raw" (neither should be SQL escaped). * Sending a null value will cause the column to be set to NULL - the corresponding * format is ignored in this case. - * @param string[]|string $format Optional. An array of formats to be mapped to each of the value in `$data`. + * @param string[]|string $format Optional. An array of formats to be mapped to each of the values in `$data`. * If string, that format will be used for all of the values in `$data`. * A format is one of '%d', '%f', '%s' (integer, float, string). * If omitted, all values in `$data` will be treated as strings unless otherwise @@ -2547,7 +2547,7 @@ public function insert( $table, $data, $format = null ) { * A primary key or unique index is required to perform a replace operation. * Sending a null value will cause the column to be set to NULL - the corresponding * format is ignored in this case. - * @param string[]|string $format Optional. An array of formats to be mapped to each of the value in `$data`. + * @param string[]|string $format Optional. An array of formats to be mapped to each of the values in `$data`. * If string, that format will be used for all of the values in `$data`. * A format is one of '%d', '%f', '%s' (integer, float, string). * If omitted, all values in `$data` will be treated as strings unless otherwise @@ -2574,7 +2574,7 @@ public function replace( $table, $data, $format = null ) { * Both `$data` columns and `$data` values should be "raw" (neither should be SQL escaped). * Sending a null value will cause the column to be set to NULL - the corresponding * format is ignored in this case. - * @param string[]|string $format Optional. An array of formats to be mapped to each of the value in `$data`. + * @param string[]|string $format Optional. An array of formats to be mapped to each of the values in `$data`. * If string, that format will be used for all of the values in `$data`. * A format is one of '%d', '%f', '%s' (integer, float, string). * If omitted, all values in `$data` will be treated as strings unless otherwise