Skip to content

Remove the $path check before rendering the iframe as it is always empty  #42

@alextselegidis

Description

@alextselegidis

in class-easyappointments-public.php

add_shortcode('easyappointments', function ($attributes) {

        $path = get_option('easyappointments_path');
        $url = get_option('easyappointments_url');

        if (empty($path) || empty($url)) {
            return ''; // There are no options set so do not proceed with the operation.
        }

$path is redundant and always is empty, and even is not used later, it should be

add_shortcode('easyappointments', function ($attributes) {

        $url = get_option('easyappointments_url');

        if (empty($url)) {
            return ''; // There are no options set so do not proceed with the operation.
        }

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions