Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict Content: Make properties public #580

Merged
merged 39 commits into from
Nov 15, 2023

Conversation

n7studios
Copy link
Contributor

@n7studios n7studios commented Nov 10, 2023

Summary

Makes some existing class properties public, and adds resource_type and resource_id public properties, instead of passing around variables between functions.

This allows AJAX calls via the login modals to be supported in this PR.

Testing

Existing tests pass.

Checklist

This provides the correct Permalink whether the form is submitted via AJAX or not (otherwise the get_url() method returns the admin-ajax.php endpoint)
# Conflicts:
#	views/frontend/restrict-content/product-code.php
#	views/frontend/restrict-content/product.php
…factor' into restrict-content-modal

# Conflicts:
#	includes/class-convertkit-output-restrict-content.php
…factor' into restrict-content-modal

# Conflicts:
#	includes/class-convertkit-output-restrict-content.php
@n7studios n7studios self-assigned this Nov 10, 2023
…factor' into restrict-content-modal

# Conflicts:
#	includes/class-convertkit-output-restrict-content.php
@n7studios n7studios requested review from a team, noelherrick and corydhmiller and removed request for a team November 13, 2023 17:06
@n7studios n7studios marked this pull request as ready for review November 13, 2023 17:06
…factor' into restrict-content-modal

# Conflicts:
#	views/frontend/restrict-content/notices.php
#	views/frontend/restrict-content/product-code.php
#	views/frontend/restrict-content/product.php
#	views/frontend/restrict-content/tag.php
@n7studios n7studios merged commit 76a5649 into main Nov 15, 2023
62 checks passed
@n7studios n7studios deleted the restrict-content-output-class-refactor branch November 20, 2023 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants