TGMPA / TGM-Plugin-Activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
http://tgmpluginactivation.com/
GNU General Public License v2.0
1.75k stars 431 forks source link

Why is TGM not compatible with sanitize_textarea_field? #800

Closed pierreamgabriel closed 3 years ago

pierreamgabriel commented 3 years ago

I updated my plugin to use the proper sanitization function for text areas, but it won't activate. TGM shows the following message when I try to install the plugin:

"The remote plugin package consists of more than one file, but the files are not packaged in a folder. Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines."

If I remove the sanitize_textarea_field() function from the code and it works fine.