Deprecation warning in latest version
-
The latest version of the Share Widget plugin (1.3.0) still contains a minor bug that causes WordPress to throw a deprecation warning in the dashboard-settings sub-menu. Of course, the warning only appears if WordPress is in ‘Debug’ mode, i.e., if the line
define('WP_DEBUG', true);
has been added to the wp-config.php file.Eventually it may cause more than a warning, but it is very simple to fix. Here is a screenshot of the deprecation warning.
The code causing the warning is at line 178 in share-widget.php:
add_options_page(__(‘Share-Widget Options’, ‘share-widget’), __(‘Share-Widget’, ‘share-widget’), 8, __FILE__, ‘sharewidget_plugin_options’);
Simply change the 8 to ‘manage_options’ (including the quotes) so the line becomes:
add_options_page(__(‘Share-Widget Options’, ‘share-widget’), __(‘Share-Widget’, ‘share-widget’), ‘manage_options’, __FILE__, ‘sharewidget_plugin_options’);
- The topic ‘Deprecation warning in latest version’ is closed to new replies.