Small code correction
-
Hi,
I’m loving this tool – it’s helping me fix errors I could not locate and teaching more about WP Action cycle.. thanks!
However, I have a small change request.
in db.php could you please consider to include a check on the CONSTANTS that you are defining – for example:
/**
* @since 0.71
*/
if ( !defined( ‘EZSQL_VERSION’ ) ) {
define( ‘EZSQL_VERSION’, ‘WP1.25’ );
}/**
* @since 0.71
*/
if ( !defined( ‘OBJECT’ ) ) {
define( ‘OBJECT’, ‘OBJECT’, true );
}/**
* @since 2.5.0
*/
if ( !defined( ‘OBJECT_K’ ) ) {
define( ‘OBJECT_K’, ‘OBJECT_K’ );
}/**
* @since 0.71
*/
if ( !defined( ‘ARRAY_A’ ) ) {
define( ‘ARRAY_A’, ‘ARRAY_A’ );
}/**
* @since 0.71
*/
if ( !defined( ‘ARRAY_N’ ) ) {
define( ‘ARRAY_N’, ‘ARRAY_N’ );
}This is to avoid a clash with the same file that is included in wp=cache-reloaded-fix – I’m also writing to the author of that plugin to ask the same!
Cheers.
Q
- The topic ‘Small code correction’ is closed to new replies.