wordpress-seo icon indicating copy to clipboard operation
wordpress-seo copied to clipboard

"Warning: strpos(): Empty needle ..." message shown in wp due to empty table prefix

Open bragma opened this issue 8 years ago • 2 comments

Hi, this line is causing and "Empty needle" warning if no table prefix is specified. Shouldn't it be something like:

if ( strlen($table_prefix) && strpos( $this->table_name, $table_prefix ) === 0 ) {
...
}

Thanks!

bragma avatar May 02 '18 15:05 bragma

Please inform the customer of conversation # 356873 when this conversation has been closed.

mmikhan avatar May 03 '18 18:05 mmikhan

Please inform the customer of conversation # 356612 when this conversation has been closed.

devnihil avatar May 03 '18 19:05 devnihil