Skip to content

Commit

Permalink
Merge pull request #1603 from xwp/1594-function-wpseo_metaboxtranslat…
Browse files Browse the repository at this point in the history
…e_meta_boxes-is-deprecated-since-version-yoast-seo-235-with-no-alternative-available

Use Yoast deprecated method conditionally
  • Loading branch information
marcinkrzeminski authored Oct 10, 2024
2 parents 97fd93e + 18c3df7 commit b4cd90f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"wpackagist-plugin/jetpack": "13.6",
"wpackagist-plugin/two-factor": "0.9.1",
"wpackagist-plugin/user-switching": "1.8.0",
"wpackagist-plugin/wordpress-seo": "23.1",
"wpackagist-plugin/wordpress-seo": "23.6",
"wpackagist-plugin/wp-crontrol": "1.17.0",
"wpackagist-theme/twentytwentythree": "^1.0",
"xwp/wait-for": "^0.0.1",
Expand Down
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion connectors/class-connector-wordpress-seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,9 @@ public function callback_deleted_post_meta( $meta_id, $object_id, $meta_key, $me
private function meta( $object_id, $meta_key, $meta_value ) {
$prefix = \WPSEO_Meta::$meta_prefix;

\WPSEO_Metabox::translate_meta_boxes();
if ( defined( 'WPSEO_VERSION' ) && version_compare( WPSEO_VERSION, '23.5', '<' ) ) {
\WPSEO_Metabox::translate_meta_boxes();
}

if ( 0 !== strpos( $meta_key, $prefix ) ) {
return;
Expand Down

0 comments on commit b4cd90f

Please sign in to comment.