DevinVinson / WordPress-Plugin-Boilerplate

[WordPress] A foundation for WordPress Plugin Development that aims to provide a clear and consistent guide for building your plugins.
http://wppb.io
7.67k stars 2.25k forks source link

Plugin not activating due to incorrect paths for activator #239

Closed mihalik closed 9 years ago

mihalik commented 9 years ago

I'm not familiar with PHP and this is my first time building a Wordpress plugin but I got an error using this boilerplate and it seems related to change e015b9cd7c402167aa526c20be9c53e2aa17845d.

require_once __DIR__ . 'includes/class-plugin-name-activator.php';

According to Google, __DIR__ does not return a trailing slash? So I was getting dirincludes instead of dir/includes. I changed my version back to plugin_dir_path( __FILE__ ) and everything seems good. Or maybe I'm doing something wrong.

jjeaton commented 9 years ago

There's a PR to fix this waiting to be merged #238

tommcfarlin commented 9 years ago

Fixed in #238