Sanitizes the “plugin” parameter to be a proper plugin file with “.php” appended.
Parameters
$filestringrequired- The plugin file parameter.
Source
public function sanitize_plugin_param( $file ) {
return plugin_basename( sanitize_text_field( $file . '.php' ) );
}
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.