Skip to content

get_options_data() returns an empty string instead of the passed default when the option isn't set #208

@TonyBogdanov

Description

@TonyBogdanov

From this point on:

$value[ $option ] = isset( $value[ $option ] ) ? $value[ $option ] : '';

doing an isset( $value[ $option ] ) check will always succeed, thus get_options_data() will just return an empty string instead of whatever is passed as $default when the option isn't set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions