PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | admin/class-database-proxy.php +10 -7 28.5 → trunk View file →
@@ -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