Ticket #1653 (closed defect (bug): fixed)

Opened 3 years ago

Last modified 2 years ago

PHP Warning: Empty Delimiter in strpos()

Reported by: RanchNachos Assigned to: markjaquith
Priority: normal Milestone:
Component: Administration Version: 1.5.2
Severity: minor Keywords: bg|has-patch bg|commit
Cc:

Description

from the /wp-admin/error_log:

PHP Warning: strpos(): Empty delimiter. in ~/public_html/wp-includes/classes.php on line 710

Attachments

patch__classes.php.diff (0.5 kB) - added by markjaquith on 09/05/05 06:59:26.
Patch for WP 1.6

Change History

09/05/05 00:12:54 changed by RanchNachos

  • milestone set to 1.6.

09/05/05 06:59:26 changed by markjaquith

  • attachment patch__classes.php.diff added.

Patch for WP 1.6

09/05/05 07:01:26 changed by markjaquith

  • keywords set to bg|has-patch bg|commit.
  • owner changed from anonymous to markjaquith.
  • status changed from new to assigned.

You probably have a space in your list of words.

See, WP trims it before doing strpos(), but not before checking empty().

Patch uploaded that should fix it in WP 1.6, by checking empty( trim($word) )

09/19/05 02:17:43 changed by ryan

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [2891]) Trim spaw words before checking for empty. Props markjaquith. fixes #1653

11/30/06 19:41:47 changed by

  • milestone deleted.

Milestone 2.0 deleted