Skip to content

trim() expects parameter 1 to be string #455

@raamdev

Description

@raamdev

Some users report seeing the following warning in the WordPress Dashboard:

Warning: trim() expects parameter 1 to be string, array given in /home/..../wp-content/plugins/zencache-pro/zencache-pro.inc.php on line 967

Line 967 in zencache-pro.inc.php: https://github.com/websharks/zencache-pro/blob/000000-dev/zencache-pro/zencache-pro.inc.php#L967

@jaswsinc writes...

That is a bug. The call to array_map('trim', assumes that $_REQUEST will contain all scalar values. A new method should be added (it may already exist), called trim_deep().

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions