Replace the attribute_escape to esc_attr()
Deprecation is… status applied to features, characteristics, or practices to indicate that they should be avoided, typically because they have been superseded. In other words, attribute_escape has been replaced by esc_attr. Any time you use a deprecated function WordPress triggers the error you’re seeing. Somewhere in your codebase a deprecated function is being used. To … Read more