Request for code corrections
-
Greetings,
You’ve got the makings of a nice Plugin. Updating some of the code would make it much better. Here are some examples.
Using WP 5.3 and plugin v2.0.6 on Apache and PHP v7.2
Admin -> Xtra Settings – follow errors on page load:
Warning count(): Parameter must be an array or an object that implements Countablewp-content/plugins/xtra-settings/admin-setting.php:573
xtra_get_image_quality()wp-content/plugins/xtra-settings/admin-setting.php:553
xtra_get_images()wp-content/plugins/xtra-settings/admin-setting.php:1534
xtra_html_page()Warning (Suppressed) exif_read_data(CellPhones.jpg): Incorrect APP1 Exif Identifier Code 1
wp-content/plugins/xtra-settings/admin-setting.php:572On the front-end:
Notice WP_Admin_Bar::add_node was called incorrectly. The menu ID should not be empty. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)17 times wp-includes/functions.php:4903 Plugin: xtra-settings
– I know this was reported in a previous support thread where you stated it wasn’t related to your plugin–but it appears that somehow it is.Deprecated Function create_function() is deprecated 1
wp-content/plugins/xtra-settings/xtra.php:2227
wp-settings.php
wp-settings.php:360If the plugin is disabled, all the above goes away.
To see the above I used the Plugin: Query Monitor (https://www.ads-software.com/plugins/query-monitor/)
Cheers,
- The topic ‘Request for code corrections’ is closed to new replies.