PluginProbe
ActivityPub / 5.7.0
ActivityPub v5.7.0
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | integration/class-wpml.php +3 -3 9.2.05.7.0 View file →
@@ -23,9 +23,9 @@
23 23 /**
24 24 * Fetch the post locale from the WPML post data.
25 25 *
26 26 * @param string $lang The language code.
27 - * @param mixed $post The post object.
27 + * @param int $post The post object.
28 28 *
29 29 * @return string The modified language code.
30 30 */
31 31 public static function get_wpml_post_locale( $lang, $post ) {
@@ -32,11 +32,11 @@
32 32 if ( ! $post instanceof \WP_Post ) {
33 33 return $lang;
34 34 }
35 35
36 - $language_details = \apply_filters( 'wpml_post_language_details', null, $post->ID );
36 + $language_details = apply_filters( 'wpml_post_language_details', null, $post->ID );
37 37
38 - if ( \is_array( $language_details ) && isset( $language_details['language_code'] ) ) {
38 + if ( is_array( $language_details ) && isset( $language_details['language_code'] ) ) {
39 39 $lang = $language_details['language_code'];
40 40 }
41 41
42 42 return $lang;