Small corrections to plugin
-
Thanks for this plugin, which nicely filled a need on a site we just did recently.
If you are ever going to issue an update, you might want to include the following 2 changes:
1. Updating the plugin to use the latest version of the runtime, from here: https://www.gstatic.com/swiffy/v7.1/runtime.js instead of the version 5 currently used
2. When running with WP_DEBUG turned on on a server running the newer version of PHP, the plugin generates errors about “Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.” Changing the line
add_plugins_page("Ayuda HTML5 Swiffy Insert", "HTML5 Swiffy Insert", 10, "plugin_ayuda_wordpress", "pagina_html5_swiffy_insert");
to
add_plugins_page("Ayuda HTML5 Swiffy Insert", "HTML5 Swiffy Insert", "activate_plugins", "plugin_ayuda_wordpress", "pagina_html5_swiffy_insert");
making the reference to capabilities follow current recommendations fixes the problem.
Thanks!
Barry
- The topic ‘Small corrections to plugin’ is closed to new replies.