Misc suggestions to improve code
-
1. you may safely remove the php closing tag ?> at the end of a source code file (it’s always encouraged to do so, google it), to reduce probability of empty blank space after that which may be sent to output buffer and break some website features. I notice you had it removed from 2 sources but left it in other 2 sources of the plugin.
2. always use absolute paths to include/require stuff.
NO: require ‘fbcs-admin.php’;
YES: require dirname( __FILE__ ) . ‘/fbcs-admin.php’;
YES: require __DIR__ . ‘/fbcs-admin.php’;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Misc suggestions to improve code’ is closed to new replies.