Fix required for Deprecation warning
-
The plugin throws a warning on modern versions of php:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WP_Categories_to_Tags has a deprecated constructor in /path/to/wordpress/wp-content/plugins/wpcat2tag-importer/wpcat2tag-importer.php on line 31
The fix is trivial, on line 483 in wpcat2tag-importer.php change:
function WP_Categories_to_Tags() { // Do nothing. }
to:
function __construct() { // Do nothing. }
or, better yet, simply delete lines 483-485, since they very clearly “do nothing”. ??
- The topic ‘Fix required for Deprecation warning’ is closed to new replies.