Skip to content

Conversation

@dwanjuki
Copy link
Contributor

@dwanjuki dwanjuki commented Dec 9, 2025

Migrating snippet to library: https://gist.github.com/ideadude/d25fb89822f60143926071feace36812

Updated pmprocm_content() to check if $queried_object and post_content property is empty, resolves warnings:

strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
Attempt to read property "post_content" on null

Also checking for existence of the Checkout Page block here. The original only checked for the pmpro_checkout shortcode.

Some WPCS changes and added recipe header.

@andrewlimaza andrewlimaza merged commit 2586c0a into strangerstudios:dev Jan 7, 2026
@andrewlimaza
Copy link
Contributor

Thanks for doing this one. 👍

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.

2 participants