Plugin Directory

Changeset 3262285


Ignore:
Timestamp:
03/26/2025 03:50:50 PM (12 months ago)
Author:
getqurio
Message:

Button and Campaign fixes

Location:
qurio
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • qurio/tags/1.2.1/admin/class-qurio-admin.php

    r3242074 r3262285  
    522522            // If no campaign exists, display a "Create Campaign" button
    523523            $link_url = QURIO_APP_URL . '/campaign/new/step2?post_id=' . $post_id;
    524             echo esc_html($this->qurio_render_create_campaign_button($post_id, esc_url($link_url)));
     524            echo  $this->qurio_render_create_campaign_button($post_id, esc_url($link_url));
    525525        }
    526526    }
  • qurio/tags/1.2.1/public/class-qurio-public.php

    r3242074 r3262285  
    172172
    173173        // Verify campaign details match current post and are valid
    174         return ($campaign_data['postId'] == $post_id
    175             && $campaign_data['displayPosition'] === $expected_style
    176             && $campaign_data['status'] === 'published');
     174        return (
     175            isset($campaign_data['postId'], $campaign_data['displayPosition'], $campaign_data['status']) &&
     176            $campaign_data['postId'] == $post_id &&
     177            $campaign_data['displayPosition'] === $expected_style &&
     178            $campaign_data['status'] === 'published'
     179        );
     180
    177181    }
    178182
  • qurio/trunk/admin/class-qurio-admin.php

    r3242061 r3262285  
    522522            // If no campaign exists, display a "Create Campaign" button
    523523            $link_url = QURIO_APP_URL . '/campaign/new/step2?post_id=' . $post_id;
    524             echo esc_html($this->qurio_render_create_campaign_button($post_id, esc_url($link_url)));
     524            echo  $this->qurio_render_create_campaign_button($post_id, esc_url($link_url));
    525525        }
    526526    }
  • qurio/trunk/public/class-qurio-public.php

    r3242061 r3262285  
    172172
    173173        // Verify campaign details match current post and are valid
    174         return ($campaign_data['postId'] == $post_id
    175             && $campaign_data['displayPosition'] === $expected_style
    176             && $campaign_data['status'] === 'published');
     174        return (
     175            isset($campaign_data['postId'], $campaign_data['displayPosition'], $campaign_data['status']) &&
     176            $campaign_data['postId'] == $post_id &&
     177            $campaign_data['displayPosition'] === $expected_style &&
     178            $campaign_data['status'] === 'published'
     179        );
     180
    177181    }
    178182
Note: See TracChangeset for help on using the changeset viewer.