problema get_body AMP get 0.7
-
This is the problem that appears:
Warning: AMP_Base_Sanitizer::get_body_node is obsolated since version AMP_Base_Sanitizer::$root_element! Use 0.7 in your plane. in /home/escolaedti/public_html/wp-includes/functions.php on line 3839
Warning: AMP_Base_Sanitizer::get_body_node is obsolated since version AMP_Base_Sanitizer::$root_element! Use 0.7 in your plane. in /home/escolaedti/public_html/wp-includes/functions.php on line 3839
so talking with AMP developer he told me:
”
We deprecated the get_body_node method in 0.7 since it is redundant with just getting the root_element: https://github.com/Automattic/amp-wp/blob/7439d2ab5eebd0ee071749a849fda946a2eff4be/includes/sanitizers/class-amp-base-sanitizer.php#L159-L168That being said, if there are existing plugins that are using this method that are important than we could remove the deprecated call but leave the @deprecated annotation.”
“The Yoast Glue plugin does call this method: https://github.com/Yoast/yoastseo-amp/blob/7741e60302b7c06dcc336fb02ee0f1db50ba48ac/classes/blacklist-sanitizer.php#L30
But, that blacklist sanitizer really should not be used anymore since the plugin now includes a whitelist sanitizer.”
“See also https://github.com/Yoast/yoastseo-amp/issues/92#issuecomment-387973824”
and:
“Uninstalling Yoast Glue would make the notice go away, yes. But it would be better if the Yoast Glue plugin was updated to eliminate the error.”
so how can I fix ?
- The topic ‘problema get_body AMP get 0.7’ is closed to new replies.