Description-
In GFCPTAddon::init(), _FILE_
is used instead of the magic constant __FILE__
. The fix is simple: replace _FILE_
with __FILE__
.
Symptoms-
With notices enabled in PHP, the incorrect constant results in the message:
Notice: Use of undefined constant _FILE_ - assumed '_FILE_' in [...]/wp-content/plugins/gravity-forms-custom-post-types/gfcptaddon.php on line 62
Environment-
Product: Gravity Forms + Custom Post Types
Version: 3
Server: Apache 2.2.21
Wordpress 3.2.1 (should affect any version)
PHP 5.3.8 (should affect any version since at least 4)