Lewiscowles1986 / WordPressSVGPlugin

WordPress SVG Plugin
GNU General Public License v3.0
42 stars 4 forks source link

Direct File Access #27

Closed Lewiscowles1986 closed 6 years ago

Lewiscowles1986 commented 6 years ago

Because the file index.php both defines a class and instantiates that class in one file, direct URL access results in an error.

WordPress by design puts all theme and plugin files in a public folder.

Would be good to clean up the plugin to allow direct file access without PHP errors and warnings.