WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#36813 closed defect (bug) (invalid)

wrong written php code: !defined(MDBC_POOL_MODE)

Reported by: katazina Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.5.2
Component: General Keywords:
Focuses: Cc:
PR Number:

Description

in /wp-content/plugins/multidb-cache-hash/db-module.php:1536

there is: !defined(MDBC_POOL_MODE)
it should be given as string: !defined('MDBC_POOL_MODE')

if (
   (!defined(MDBC_POOL_MODE) || MDBC_POOL_MODE == MDBC_REPLICATE )
   && (preg_match("/^\\s*(create|insert|delete|update|replace|alter)\\b/si", $query))
) {

Change History (3)

#1 @Clorith
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi,

This would be a problem with a plugin called "multidb-cache-hash", and not WordPress Core.

You should report this to the plugin authors instead.

#2 @swissspidy
3 years ago

  • Component changed from Database to General

#3 @katazina
3 years ago

Oh, sorry!
I missed that.

Note: See TracTickets for help on using tickets.