| @@ -119,18 +119,21 @@ | ||
| 119 | 119 | * Upserts data in the database. |
| 120 | 120 | * |
| 121 | 121 | * Performs an insert into and if key is duplicate it will update the existing record. |
| 122 | 122 | * |
| 123 | - * @param array $data Data to update on the table. | |
| 124 | - * @param array|null $where Unused. Where condition as key => value array. | |
| 125 | - * @param array|string|null $format Optional. Data prepare format. | |
| 126 | - * @param array|string|null $where_format Optional. Where prepare format. | |
| 123 | + * @param array $data Data to update on the table. | |
| 124 | + * @param array|null $where Deprecated since 28.6. Unused since the query was rewritten in 7.7.0. | |
| 125 | + * @param array|string|null $format Deprecated since 28.6. Unused since the query was rewritten in 7.7.0. | |
| 127 | 126 | * |
| 128 | 127 | * @return int|false False when the upsert request is invalid, int on number of rows changed. |
| 129 | 128 | */ |
| 130 | - public function upsert( array $data, ?array $where = null, $format = null, $where_format = null ) { | |
| 131 | - if ( $where_format !== null ) { | |
| 132 | - _deprecated_argument( __METHOD__, '7.7.0', 'The where_format argument is deprecated' ); | |
| 129 | + public function upsert( array $data, ?array $where = null, $format = null ) { | |
| 130 | + if ( $where !== null ) { | |
| 131 | + _deprecated_argument( __METHOD__, 'Yoast SEO 28.6', 'The where argument is deprecated' ); | |
| 132 | + } | |
| 133 | + | |
| 134 | + if ( $format !== null ) { | |
| 135 | + _deprecated_argument( __METHOD__, 'Yoast SEO 28.6', 'The format argument is deprecated' ); | |
| 133 | 136 | } |
| 134 | 137 | |
| 135 | 138 | $this->pre_execution(); |
| 136 | 139 | |