Skip to content

Field "Dimensions" Illegal string offset for width and height #3413

@vladanost

Description

@vladanost

Your previous code allowed that "mode" can be used as "max-width" for example which was very handy when using Dimensions field. After latest plugin update Illegal string offset warning is present.

Support Hash

http://support.redux.io/?id=jbqmgy6k7X4ytUwFcPhBr0QpvM1zcP2252mdR9ZV18XBM%2Fbjo9CHff%2F5JU5p%2FofGHgYJRE3uLajmYgdWzsRs8g%3D%3D

Steps to reproduce

Create a dimesions field by setting mode to max-width
and height to false

Expected Behavior

End css uses max-width

Actual Behavior

Illegal string offset warning plugins/redux-framework/ReduxCore/inc/fields/dimensions/field_dimensions.php on line 268 and 269

Any Error Details (PHP/JavaScript)

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions