Skip to content

Commit b4cd90f

Browse files
Merge pull request #1603 from xwp/1594-function-wpseo_metaboxtranslate_meta_boxes-is-deprecated-since-version-yoast-seo-235-with-no-alternative-available
Use Yoast deprecated method conditionally
2 parents 97fd93e + 18c3df7 commit b4cd90f

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"wpackagist-plugin/jetpack": "13.6",
3737
"wpackagist-plugin/two-factor": "0.9.1",
3838
"wpackagist-plugin/user-switching": "1.8.0",
39-
"wpackagist-plugin/wordpress-seo": "23.1",
39+
"wpackagist-plugin/wordpress-seo": "23.6",
4040
"wpackagist-plugin/wp-crontrol": "1.17.0",
4141
"wpackagist-theme/twentytwentythree": "^1.0",
4242
"xwp/wait-for": "^0.0.1",

composer.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

connectors/class-connector-wordpress-seo.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,9 @@ public function callback_deleted_post_meta( $meta_id, $object_id, $meta_key, $me
385385
private function meta( $object_id, $meta_key, $meta_value ) {
386386
$prefix = \WPSEO_Meta::$meta_prefix;
387387

388-
\WPSEO_Metabox::translate_meta_boxes();
388+
if ( defined( 'WPSEO_VERSION' ) && version_compare( WPSEO_VERSION, '23.5', '<' ) ) {
389+
\WPSEO_Metabox::translate_meta_boxes();
390+
}
389391

390392
if ( 0 !== strpos( $meta_key, $prefix ) ) {
391393
return;

0 commit comments

Comments
 (0)