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

NameSpace Compatibility #199

Merged
merged 7 commits into from Dec 11, 2023
Merged

NameSpace Compatibility #199

merged 7 commits into from Dec 11, 2023

Conversation

Ipstenu
Copy link
Contributor

@Ipstenu Ipstenu commented Dec 8, 2023

Required as soon as namespace conversion in plugin is done (see LezWatch/lwtv-plugin#393 )

There are no real changes to the theme, just to the wrappers.

Where we used to do this:

( new LWTV_CPTs_Related_Posts() )->related_archive_header( $tag_id );

We can now do this:

lwtv_plugin()->get_related_archive_header( $tag_id );

Now you don't have to know what class/namespace is what!

Also made better use of checks to ensure functions are available when called (thank you Intellephense!) and we don't allow malformed data to attempt to run.

@Ipstenu Ipstenu merged commit de605d8 into production Dec 11, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant